Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define TASK_ID 6910
  5.  
  6. new g_iScoreAttrib
  7.  
  8. public plugin_init()
  9. {
  10. register_plugin("Admins are VIPs", "1.0", "OciXCrom")
  11.  
  12. new szMapName[32]
  13. get_mapname(szMapName, charsmax(szMapName))
  14.  
  15. if(containi(szMapName, "as_") == -1)
  16. pause("ad")
  17.  
  18. register_event("ResetHUD", "ResetHUD", "be")
  19. g_iScoreAttrib = get_user_msgid("ScoreAttrib")
  20. }
  21.  
  22. public ResetHUD(id)
  23. set_task(0.5, "VIP", id + TASK_ID)
  24.  
  25. public VIP(id)
  26. {
  27. id -= TASK_ID
  28.  
  29. if(get_user_flags(id) & ADMIN_RESERVATION && get_user_team(id) == 2)
  30. {
  31. message_begin(MSG_ALL, g_iScoreAttrib)
  32. write_byte(id)
  33. write_byte(4)
  34. message_end()
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement