08.08.2011, 10:12
Problem Solved
![Cheesy](images/smilies/biggrin.png)
new bool:InSpawn[MAX_PLAYERS];
public OnPlayerRequestClass(playerid, classid)
{
InSpawn[playerid] = true;
return 1;
}
public OnPlayerSpawn(playerid)
{
InSpawn[playerid] = false;
return 1;
}
if(InSpawn[playerid] == true) return SendClientMessage(playerid, 0x999999AA, "You can't use this command while being on class selection.");
use a variable:
pawn Код:
pawn Код:
|