04.10.2011, 16:20
Now i have this in my script
now it goes but is always displayed as ID 0 as admin
Код:
dcmd_admins(playerid,params[]) { #pragma unused params if(IsPlayerConnected(playerid)) { SendClientMessage(playerid,COLOR_YELLOW, "Administrators at work"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Admin[i][AdminLevel] > 1336) { new sendername[MAX_PLAYER_NAME], strink[128]; GetPlayerName(i, sendername, sizeof(sendername)); format(strink, sizeof strink, " Administrator: %s", sendername); SendClientMessage(playerid, COLOR_RED, strink); } } } } return 1; }