Advertisement
Guest User

Untitled

a guest
Jul 8th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. YCMD:admins(playerid, params[])
  2. {
  3. new string[128], count;
  4. format(string, sizeof(string), "---------------- Admini Green-Play Conectati ----------------");
  5. SendClientMessage(playerid, COLOR_GOLD, string);
  6. if(PlayerInfo[playerid][pAdmin] < 5) {
  7. for(new j=1;j<=9;j++) {
  8. foreach(Player,i) {
  9. if(PlayerInfo[i][pAdmin] == j && GetPVarInt(i, "Cover") == 0) {
  10. format(string, sizeof(string), "%s %s (%d)", GetAdminRank(i), GetName(i),i);
  11. SendClientMessage(playerid, COLOR_GOLD, string);
  12. count++;
  13. }
  14. }
  15. }
  16. }
  17. else {
  18. for(new j=1;j<=9;j++) {
  19. foreach(Player,i) {
  20. if(PlayerInfo[i][pAdmin] == j) {
  21. 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));
  22. 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);
  23. else format(string, sizeof(string), "%s %s (%d) - AFK %d min. (%d sec.)", GetAdminRank(i), PlayerInfo[i][pUsername],i, AFKSeconds/60, AFKSeconds);
  24. SendClientMessage(playerid, COLOR_WHITE, string);
  25. count++;
  26. }
  27. }
  28. }
  29. }
  30. format(string, sizeof(string), "{ADFF5C}* Sunt %d admini conectati in acest moment.", count);
  31. SendClientMessage(playerid, COLOR_GOLD, string);
  32. SendClientMessage(playerid, COLOR_GOLD, "--------------------------------------------------------");
  33. SendClientMessage(playerid, COLOR_WHITE, "Daca ai o nelamurire legata de server tasteaza /n sau /report!");
  34. SendClientMessage(playerid, COLOR_GOLD, "--------------------------------------------------------");
  35. return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement