Skripta koju koristim: GarHouse FS
Detaljan opis problema: U modu imam /spawnchange ali samo ako imam kucu kupljenu VAN GarHouse FS-a, zato hocu da ikad ima kucu kupljenu u GarHouse FSu da moze da menja spawn change
Dio skripte: 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;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://balkan-samp.com/forum/index.php?topic=26733.0