ZCMD Problem
#1

PHP Code:
CMD:fcm(playeridparams[]) { return cmd_fakecmd(playeridparams); }
CMD:fakecmd(playerid,params[])
{
if(
GetPVarInt(playerid,"AdminLvl") < 18) return 0;
new 
id,cmd[64];
if(
sscanf(params"ds[64]",id,cmd)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /FakeCmd <Playerid> <Text>");
else if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,".аййгй щвей");
else if(
GetPVarInt(playerid,"AdminLvl") <GetPVarInt(id,"AdminLvl") && GetPVarInt(id,"AdminLvl") <= 20) return SendClientMessage(playerid,COLOR_RED,".айрк йлем мдщъощ бфчегд же тм агойп шод отмййк");
else
{
OnPlayerCommandReceived(id, (cmd));
}
return 
true;

I do /fakecmd 0 /help
and It does not do the command
Reply


Messages In This Thread
ZCMD Problem - by NeyMar96 - 30.07.2011, 12:15
Re: ZCMD Problem - by =WoR=Varth - 30.07.2011, 17:16
Re: ZCMD Problem - by NeyMar96 - 30.07.2011, 20:00
Re: ZCMD Problem - by NeyMar96 - 31.07.2011, 08:29
Re: ZCMD Problem - by iggy1 - 31.07.2011, 08:31

Forum Jump:


Users browsing this thread: 1 Guest(s)