28.02.2010, 18:45
HI !
I have a command
How to transform the GUI ?
I have a command
Код:
if (strcmp(cmd, "/admins", true)==0) { //new string2[256]; new adminsonline = 0; for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i) && IsPlayerAdminByLuby(i))adminsonline++; } if (adminsonline == 0){ SendClientMessage2(playerid, CINFO, "Brak Adminуw online. Aby wezwać Admina napisz na GG: 6485591."); } else if (adminsonline == 1){ for (new i = 0; i < MAX_PLAYERS; i++) if(HideAdmins[i] == 1)return SendClientMessage(playerid, CINFO, "Brak Adminуw online. Aby wezwać Admina napisz na GG: 6485591"); format(string2, sizeof(string2), "Zalogowany jest 1 Admin."); SendClientMessage2(playerid, CINFO, string2); } else if (adminsonline > 1){ format(string2, sizeof(string2), "Zalogowani Administratorzy:"); SendClientMessage2(playerid, CINFO, string2); } for (new i = 0; i < MAX_PLAYERS; i++) { if (HideAdmins[i] == 0){ if (IsPlayerConnected(i) && IsPlayerAdminByLuby(i)) { format(string2, sizeof(string2), "%s (ID: %d)", PlayerName(i), i); SendClientMessage2(playerid, CNORMAL, string2); } } } return 1; }