SA-MP Forums Archive
OnPlayerCommandPerformed - 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: OnPlayerCommandPerformed (/showthread.php?tid=445644)



OnPlayerCommandPerformed - Blackazur - 22.06.2013

~fixed~


Re: OnPlayerCommandPerformed - CaRa - 22.06.2013

Код:
  if(pInfo[playerid][pLogged] == 1)
    {
	  new str[128];
	  format(str, sizeof(str),"» {B4B5B7}[CMD][%d]%s: {91F21B}%s",playerid,PlayerName(playerid),cmdtext);
	  SendMessageToAllAdmins(str,-1);
     }



AW: OnPlayerCommandPerformed - Blackazur - 22.06.2013

But i want that admins can see just the cmds which normal players typed not which cmds admins typed. Can someone help me?


Re: OnPlayerCommandPerformed - [..MonTaNa..] - 22.06.2013

pawn Код:
if(IsCnRAdmin(playerid)) // change it
{
    new string[128];
    format(string, sizeof string, "%s Has Used The Command /yourcmdhere.", PlayerName(playerid));
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
Place this in the commands you want to.