30.07.2011, 17:16
You mean you want to force player to use a command?
Untested
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;
}