Help with /fakecmd command +Rep
#2

Try this:
Quote:

CMD:fakecmd(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 5) {
new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(isnull(tmp) || isnull(tmp2)) return SendClientMessage(playerid, red, "USAGE: /fakecmd [playerid] [command]");
new player1 = strval(tmp);
if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
CallRemoteFunction("OnPlayerCommandPerformed", "is", player1, tmp2);
return SendClientMessage(playerid,blue,"Fake command sent");
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
#endif

It is from my script but.. Maybe it work!
Reply


Messages In This Thread
<remove> - by freeze98 - 31.08.2014, 20:22
Re: Help with /fakecmd command +Rep - by LeroyII - 31.08.2014, 20:52
Re: Help with /fakecmd command +Rep - by StreetGT - 31.08.2014, 21:07
Re: Help with /fakecmd command +Rep - by Abagail - 31.08.2014, 21:44
<remove> - by freeze98 - 01.09.2014, 09:11
Re: Help with /fakecmd command +Rep - by DavidBilla - 01.09.2014, 12:29
Re: Help with /fakecmd command +Rep - by freeze98 - 01.09.2014, 18:39

Forum Jump:


Users browsing this thread: 2 Guest(s)