SA-MP Forums Archive
how to - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to (/showthread.php?tid=154390)



how to - iStarzz - 13.06.2010

How can i see if i am a rcon admin what players are typing for commands?


Re: how to - TTJJ - 13.06.2010

Hi FuTure`

You could try this:

Код:
//OnPlayerCommandText
for(new i=0; i<MAX_PLAYERS; i++)
{

  if(IsPlayerAdmin(i))
  {
    new str[256], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(str,sizeof(str),"%s sent command: %s",name,cmdtext);
    SendClientMessage(i,COLOUR,str);
  }

}
Give it a try.

Cheers,

TJ


Re: how to - iStarzz - 13.06.2010

ty