SA-MP Forums Archive
[Pedido] Criar comando /admins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Criar comando /admins (/showthread.php?tid=379758)



Criar comando /admins - Owtsiixx_Twd - 22.09.2012

comando /admins para ver os admins online se alguem suber agradeзo


Re: Criar comando /admins - Don_Speed - 22.09.2012

pawn Код:
CMD:admins(playerid,params[])
{
   for(new i=0; i<MAX_PLAYERS; i++)
   {
      if(PlayerInfo[i][pAdmin] == 1)
      {
        // ...
      }
    }
    return true;
}



Re: Criar comando /admins - FenixBorn - 22.09.2012

Tenta aew

pawn Код:
if(!strcmp(cmdtext, "/admins", true))
{
if(IsPlayerConnected(playerid))

for(new i=0; i<MAX_PLAYERS; i++)
   {
      if(PlayerInfo[i][pAdmin] <= 1)
   {
//coloque como quer q apareзa aqui
}
}
return 1;
}