use a variable:
pawn Код:
new bool:InSpawn[MAX_PLAYERS];
public OnPlayerRequestClass(playerid, classid)
{
InSpawn[playerid] = true;
return 1;
}
public OnPlayerSpawn(playerid)
{
InSpawn[playerid] = false;
return 1;
}
and on your commands just add this to the top:
pawn Код:
if(InSpawn[playerid] == true) return SendClientMessage(playerid, 0x999999AA, "You can't use this command while being on class selection.");