This 100% works :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define SCOREATTRIB_VIP (1<<2)
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("ScoreAttrib"), "Hook_ScoreAttrib")
}
public Hook_ScoreAttrib(osef2talife, osef3talife, osef4talife)
{
new id = get_msg_arg_int(1)
if(!g_bIsAdmin[id]) // 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)
}
__________________