SA-MP Forums Archive
Read cmds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Read cmds (/showthread.php?tid=477151)



Read cmds - fiter12 - 22.11.2013

hello

I need one Filterscript with it, i can see all cmds used by player and pms too but when i log in as rcon. (like on Jake admin system, I have my owner admin and pm system).

if you can't make it tell me how to add it on gm.

Thanks


Re: Read cmds - Konstantinos - 22.11.2013

It's very easy!

You format a string that you send to the player who will recieve the PM and you format another string that you send to the player who typed the command, right?

All you need to do is: format a last string with the name of the player who typed the command, the player who will recieve the PM and the message. You can now loop through the players and if that player is a RCON admin, send the formatted message.


Re: Read cmds - fiter12 - 22.11.2013

make it in pawno language.


Re: Read cmds - fiter12 - 26.11.2013

nobady knows how to make it?
i need one cmd with it i can read players cmds in real time (when i log in as rcon then i can see all cmds used by players like EX: Player x used /admins.)

Thanks
i wish some one post my script

Thanks again


AW: Read cmds - BigETI - 26.11.2013

https://sampforum.blast.hk/showthread.php?tid=447813


Re: Read cmds - fiter12 - 01.12.2013

some one tell me how to make or how to add


Re: Read cmds - Areax - 01.12.2013

If you are using ZCMD, then try this.

pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    for(new i = 0; i < MAX_PLAYERS; i ++)
    if(IsPlayerAdmin(i))
    {
    if(IsPlayerConnected(i))
    {
    new string[50];
    format(string, sizeof(string), "*[INFO]: %s has typed %s.*", GetName(playerid), cmdtext);
    SendClientMessage(i, -1, string);
    }
    }
    return 1;
}