Disable Commands OnPlayerRequestClass?
#3

Quote:
Originally Posted by Sascha
Посмотреть сообщение
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.");
Thanks It Work!
Reply


Messages In This Thread
SOLVED! - by lyrics - 08.08.2011, 10:12
Re: Disable Commands OnPlayerRequestClass? - by Sascha - 08.08.2011, 10:16
Re: Disable Commands OnPlayerRequestClass? - by lyrics - 08.08.2011, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)