SA-MP Forums Archive
How to see all admins commands? - 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: How to see all admins commands? (/showthread.php?tid=461342)



How to see all admins commands? - UlanHafiz - 01.09.2013

I need help with how to see admins commands!


Re: How to see all admins commands? - IceBilizard - 01.09.2013

One way
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp(cmd, "/admincommands", true))
  {
     if(IsPlayerAdmin(playerid))
     {
          SendClientMessage(playerid,COLOR_WHITE,"/slap /kick /warn /ban"); //Add more
          return 1;
     }
     return 0;
}
2nd wany for zcmd
pawn Код:
CMD:admincommands(playerid,params[])
{
     if(IsPlayerAdmin(playerid))
     {
          SendClientMessage(playerid,COLOR_WHITE,"/slap /kick /warn /ban"); //Add more
          return 1;
     }
     return 1;
}