Quote:
|
Originally Posted by Nakash
Quote:
|
Originally Posted by Gijs (TSG-Hosting.de)
pawn Код:
if (strcmp(cmd, "/admins", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GRAD1, "Admins Online:"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "[Level:%d] %s (ID:%d)", PlayerInfo[i][pAdmin],sendername,playerid);
SendClientMessage(playerid, COLOR_GREEN, string);
} } } } return 1; }
Try that
|
thanks! it works now hehe,but the id still 1 ;p maybe i'll change playerid to I?
|
yes if you do that then it will work
Gijs