Pequeno Problema
#1

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;
}
Reply


Messages In This Thread
Pequeno Problema - by CanTLoGin - 29.08.2011, 13:46
Re: Pequeno Problema - by [BEP]AcerPilot - 29.08.2011, 14:01
Re: Pequeno Problema - by CanTLoGin - 29.08.2011, 14:05
Re: Pequeno Problema - by [BEP]AcerPilot - 29.08.2011, 14:09
Re: Pequeno Problema - by Lipe_Stronda - 29.08.2011, 14:09
Re: Pequeno Problema - by CanTLoGin - 29.08.2011, 14:27
Re: Pequeno Problema - by trollv - 29.08.2011, 14:28
Re: Pequeno Problema - by StrondA_ - 29.08.2011, 14:28
Re: Pequeno Problema - by CanTLoGin - 29.08.2011, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)