Skripta : CLRP edit
Problem : ne mogu da napravim da igrac moze da bira spawn!! Zahvala svima na bilo kavoj pomoci 😉
Dio skripte :
if(strcmp(cmd, "/promjenispawn", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo != 255)
{
if(Spectate != 255 && PlayerInfo < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Sada specate nekog, ne mozete sada promijeniti spawn !");
return 1;
}
if(SpawnChange)
{
SendClientMessage(playerid, COLOR_GREY, " Sada cete se spawnovati na vasem normalnom mjestu !");
SpawnChange = 0;
/*if(IsAnInstructor(playerid))
{
if(SchoolSpawn == 0)
{
SchoolSpawn = 1;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Flying School !");
}
else if(SchoolSpawn == 1)
{
SchoolSpawn = 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 = 1;
}
}
else
{
/*if(IsAnInstructor(playerid))
{
if(SchoolSpawn == 0)
{
SchoolSpawn = 1;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Flying School !");
}
else if(SchoolSpawn == 1)
{
SchoolSpawn = 0;
SendClientMessage(playerid, COLOR_GREY, " You will now spawn at the Driving School !");
}
}
else
{*/
SendClientMessage(playerid, COLOR_GREY, " Ne posedujete kupljenu/iznajmljenu kucu !");
return 1;
//}
}
}
return 1;
}
Slika : /
