ZCMD Problem
#2

You mean you want to force player to use a command?
pawn Code:
CMD:fakecmd(playerid,params[])
{
if(GetPVarInt(playerid,"AdminLvl") < 18) return 0;
new id,cmd[64],asd[24];
if(sscanf(params, "ds[64]s[24]",id,cmd,asd)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /FakeCmd <Playerid> <Command> <Params>");
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
{
cmd_cmd(id,asd);
}
return 1;
}
Untested
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)