Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:admins(playerid, params[])
- {
- new string[128], count;
- format(string, sizeof(string), "---------------- Admini Green-Play Conectati ----------------");
- SendClientMessage(playerid, COLOR_GOLD, string);
- if(PlayerInfo[playerid][pAdmin] < 5) {
- for(new j=1;j<=9;j++) {
- foreach(Player,i) {
- if(PlayerInfo[i][pAdmin] == j && GetPVarInt(i, "Cover") == 0) {
- format(string, sizeof(string), "%s %s (%d)", GetAdminRank(i), GetName(i),i);
- SendClientMessage(playerid, COLOR_GOLD, string);
- count++;
- }
- }
- }
- }
- else {
- for(new j=1;j<=9;j++) {
- foreach(Player,i) {
- if(PlayerInfo[i][pAdmin] == j) {
- if(GetPVarInt(i, "Cover") == 1) format(string, sizeof(string), "%s %s (%d) - AFK %d min. (%d sec.) - Cover: %s", GetAdminRank(i), PlayerInfo[i][pUsername],i, AFKSeconds/60, AFKSeconds, GetName(i));
- else if(Spectate[i] != 255) format(string, sizeof(string), "%s %s (%d) - spectator pe %s (%d)", GetAdminRank(i), PlayerInfo[i][pUsername],i, GetName(Spectate), Spectate);
- else format(string, sizeof(string), "%s %s (%d) - AFK %d min. (%d sec.)", GetAdminRank(i), PlayerInfo[i][pUsername],i, AFKSeconds/60, AFKSeconds);
- SendClientMessage(playerid, COLOR_WHITE, string);
- count++;
- }
- }
- }
- }
- format(string, sizeof(string), "{ADFF5C}* Sunt %d admini conectati in acest moment.", count);
- SendClientMessage(playerid, COLOR_GOLD, string);
- SendClientMessage(playerid, COLOR_GOLD, "--------------------------------------------------------");
- SendClientMessage(playerid, COLOR_WHITE, "Daca ai o nelamurire legata de server tasteaza /n sau /report!");
- SendClientMessage(playerid, COLOR_GOLD, "--------------------------------------------------------");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement