Skripta koju koristim:FactionGame
Detaljan opis problema:Ovako mozel tko pomoci kako da stavim kad kuca netko spawnchange da se spawna u bazi svojoj na FG ima samo da se spawna u kuci
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
if(strcmp(cmd, "/spawnchange", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pPhousekey] != 255)
{
if(Spectate[playerid] != 255 && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Sada posmatrate nekog, ne mozete sada promijeniti spawn !");
return 1;
}
if(SpawnChange[playerid])
{
SendClientMessage(playerid, COLOR_GREY, " Sada cete se spawnovati na vasem normalnom mjestu !");
SpawnChange[playerid] = 0;
/*if(IsAnInstructor(playerid))
{
if(SchoolSpawn[playerid] == 0)
{
SchoolSpawn[playerid] = 1;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Flying School !");
}
else if(SchoolSpawn[playerid] == 1)
{
SchoolSpawn[playerid] = 0;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Driving School !");
}
}*/
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spawnovacete se u vasoj kupljenoj/iznajmljenoj kuci !");
SpawnChange[playerid] = 1;
}
}
else
{
/*if(IsAnInstructor(playerid))
{
if(SchoolSpawn[playerid] == 0)
{
SchoolSpawn[playerid] = 1;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Flying School !");
}
else if(SchoolSpawn[playerid] == 1)
{
SchoolSpawn[playerid] = 0;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Driving School !");
}
}
else
{*/
SendClientMessage(playerid, COLOR_GREY, " Ne posjedujete kupljenu/iznajmljenu kucu !");
return 1;
//}
}
}
return 1;
}
OvakoIzgleda na FactionGAme