10.12.2014, 18:24
Код:
CMD:remiums ( playerid ) { new c = 0, str[128]; if ( PlayerInfo[playerid][LoggedIn] == 0 ) return SendClientMessage( playerid, -1, ""RED"ERROR: "GREY"You must be logged in!"); for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (PlayerInfo[i][VIP] >= 1) { c++; if (c==1) { format(str, sizeof(str), ""REDORANGE"Premium member(s)/donators online:\n{%06x}%s(%d)\n", (GetPlayerColor(i) >>> , GetName(i), i); } if (c >=2) { format(str, sizeof(str), "\n%s{%06x}%s(%d)", str, (GetPlayerColor(i) >>> , GetName(i), i); } } } } if (c == 0) return SendClientMessage(playerid, -1, ""STEELBLUE"SERVER: There are no donators/premiums online."); ShowPlayerDialog(playerid, DIALOG_VIPS, DIALOG_STYLE_MSGBOX, ""RED"Premium/Donators Online:", str, "OK", ""); return 1; }