Admin hard commands!
#9

Quote:

dcmd_fakecmd(playerid,params[])
{
if(AccInfo[playerid][Level] >= 5)
{
new tmp[256], tmp2[256], Index;
tmp = strtok(params,Index);
tmp2 = strtok(params,Index);

if(!strlen(tmp) || !strlen(tmp2)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /fakecmd [PlayerID] [Command]") &&
SendClientMessage(playerid, orange, "Function: Will sending a false Command used per Specified player");

new player1 = strval(tmp);
if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
{
SendCommandToAdmins(playerid,"FakeCmd");
CallRemoteFunction("OnPlayerCommandText", "is", player1, tmp2);
return SendClientMessage(playerid,blue,"|- Fake command sent! -|");
}
else return ErrorMessages(playerid, 2);
}
else return ErrorMessages(playerid, 1);
}

This code i got from LuxAdmin script, it wont work since no defines or anything
Its idea for how to make it
Reply


Messages In This Thread
Admin hard commands! - by ironmen - 17.07.2015, 12:53
Re: Admin hard commands! - by jamesmith12 - 17.07.2015, 13:20
Re: Admin hard commands! - by BladeFire - 17.07.2015, 13:26
AW: Admin hard commands! - by Kaliber - 17.07.2015, 13:37
Re: Admin hard commands! - by ironmen - 17.07.2015, 14:19
Re: AW: Admin hard commands! - by Alex Magaсa - 17.07.2015, 14:22
Re: Admin hard commands! - by SpikeSpigel - 17.07.2015, 14:29
Re: Admin hard commands! - by PrinceKumar - 17.07.2015, 14:53
Re: Admin hard commands! - by karemmahmed22 - 17.07.2015, 15:08
Re: Admin hard commands! - by Moudix - 17.07.2015, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)