30.07.2011, 12:15
PHP Code:
CMD:fcm(playerid, params[]) { return cmd_fakecmd(playerid, params); }
CMD:fakecmd(playerid,params[])
{
if(GetPVarInt(playerid,"AdminLvl") < 18) return 0;
new id,cmd[64];
if(sscanf(params, "ds[64]",id,cmd)) return SendClientMessage(playerid, COLOR_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;
}
and It does not do the command