seroff

VIP TAB 1.0 By ConnorMcLeod

Dec 14th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. #define SCOREATTRIB_VIP (1<<2)
  5.  
  6. public plugin_init(){
  7. register_plugin("VIP TAB", "1.0","ConnorMcLeod");
  8. register_message(get_user_msgid("ScoreAttrib"), "Hook_ScoreAttrib")
  9. }
  10.  
  11. public Hook_ScoreAttrib(osef2talife, osef3talife, osef4talife){
  12. new id = get_msg_arg_int(1)
  13. if(~get_user_flags(id) & ADMIN_LEVEL_H) // replace this with the appropriate check on id
  14. return
  15. /* if( !get_msg_arg_int(2) ) // player is alive
  16. {
  17. set_pdata_int(id, OFFSET_INTERNALMODEL, CS_CT_VIP)
  18. dllfunc(DLLFunc_ClientUserInfoChanged, id)
  19. }*/ // this actually sets the vip skin, but you don't want it
  20. set_msg_arg_int(2, ARG_BYTE, SCOREATTRIB_VIP)
  21. }
Advertisement
Add Comment
Please, Sign In to add comment