Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #define TASK_ID 6910
- new g_iScoreAttrib
- public plugin_init()
- {
- register_plugin("Admins are VIPs", "1.0", "OciXCrom")
- new szMapName[32]
- get_mapname(szMapName, charsmax(szMapName))
- if(containi(szMapName, "as_") == -1)
- pause("ad")
- register_event("ResetHUD", "ResetHUD", "be")
- g_iScoreAttrib = get_user_msgid("ScoreAttrib")
- }
- public ResetHUD(id)
- set_task(0.5, "VIP", id + TASK_ID)
- public VIP(id)
- {
- id -= TASK_ID
- if(get_user_flags(id) & ADMIN_RESERVATION && get_user_team(id) == 2)
- {
- message_begin(MSG_ALL, g_iScoreAttrib)
- write_byte(id)
- write_byte(4)
- message_end()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement