Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. @name Admin Helper
  2. @persist Timer F String:string Lock
  3. Timer++
  4. interval(1000)
  5. # Finds the players (obv?)
  6. findByClass("player")
  7. A = findToArray()
  8. ## End Player Finders
  9.  
  10.  
  11.  
  12. # Admin finder / Printer
  13. if(first() | Timer == 180){
  14. Timer = 0
  15. for(HC = 1,A:count()){
  16. B = A[HC,entity]
  17.  
  18. if(B:isAdmin() | B:isSuperAdmin()){String = String+B:name()+", "}
  19. }
  20. concmd("ulx tsay Admins online: "+String)
  21. String = " "
  22. }
  23. ## End Admin finder / Printer
  24. #- Admin Disguiser (Doesnt wanna be printed)
  25. if(lastSaid()=="/disguise" & Lock == 0){
  26. if(lastSpoke():isAdmin()){
  27. print("Going UnderCover: "+lastSpoke():name())
  28. }
  29. Lock = 1
  30. findExcludePlayer(lastSpoke())
  31. } else{Lock = 0}
  32. ## end admin disguiser.
  33.  
  34.  
  35.  
  36. # Random Messages to print
  37. if(Timer == 90){
  38. concmd("ulx tsay Type the @ symbol then your message to contact an admin")
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement