Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fakemeta>
- #define SCOREATTRIB_VIP (1<<2)
- public plugin_init(){
- register_plugin("VIP TAB", "1.0","ConnorMcLeod");
- register_message(get_user_msgid("ScoreAttrib"), "Hook_ScoreAttrib")
- }
- public Hook_ScoreAttrib(osef2talife, osef3talife, osef4talife){
- new id = get_msg_arg_int(1)
- if(~get_user_flags(id) & ADMIN_LEVEL_H) // replace this with the appropriate check on id
- return
- /* if( !get_msg_arg_int(2) ) // player is alive
- {
- set_pdata_int(id, OFFSET_INTERNALMODEL, CS_CT_VIP)
- dllfunc(DLLFunc_ClientUserInfoChanged, id)
- }*/ // this actually sets the vip skin, but you don't want it
- set_msg_arg_int(2, ARG_BYTE, SCOREATTRIB_VIP)
- }
Advertisement
Add Comment
Please, Sign In to add comment