29.08.2011, 13:46
Eu tenho o Cmd /Sair.. Mas ele da pra digitar mesmo se o player nгo estiver numa Arena. Como faz pra ele poder digitar sу se estiver lб ?
pawn Код:
if(strcmp(cmdtext,"/sair",true)==0)
{
BlockCMD[playerid] = false;
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerWeapon(playerid, 28, 99999);
GivePlayerWeapon(playerid, 26, 99999);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,0);
GameTextForPlayer(playerid,"",4000,6);
SetPlayerInterior(playerid,0);
new rand = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1],RandomSpawns[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[rand][3]);
SetPlayerInterior(playerid,0);
SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000);
SetPlayerInterior(playerid,0);
return 1;
}