Raised This Month: $ Target: $400
 0% 

Problem with ScoreAttrib


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-12-2009 , 00:30   Re: Problem with ScoreAttrib
Reply With Quote #8

This 100% works :

PHP Code:
#include <amxmodx>
#include <fakemeta>


#define SCOREATTRIB_VIP            (1<<2)

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_message(get_user_msgid("ScoreAttrib"), "Hook_ScoreAttrib")
}

public 
Hook_ScoreAttrib(osef2talifeosef3talifeosef4talife)
{
    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(2ARG_BYTESCOREATTRIB_VIP)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode