Raised This Month: $ Target: $400
 0% 

EventDeathMsg error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
asd13
Member
Join Date: Apr 2009
Old 07-10-2010 , 19:01   EventDeathMsg error
Reply With Quote #1

PHP Code:
L 07/11/2010 00:01:13: [CSTRIKEPlayer out of range (0)
L 07/11/2010 00:01:13: [AMXXDisplaying debug trace (plugin "vip_money.amxx")
L 07/11/2010 00:01:13: [AMXXRun time error 10native error (native "cs_get_user_money")
L 07/11/2010 00:01:13: [AMXX]    [0kvip_money.sma::EventDeathMsg (line 21
PHP Code:
#include < amxmodx >
#include < cstrike >

const VipFlags ADMIN_LEVEL_H;

new 
iMoney;
new 
iMoney_Hs;
new 
iMoney_Kill;

public 
plugin_init( ) {
    
register_plugin"PLUGIN""VERSION""AUTHOR" );
    
register_event"DeathMsg""EventDeathMsg""a" );
    
    
iMoney_Hs    register_cvar"amx_money_hs",    "800" );
    
iMoney_Kill    register_cvar"amx_money_kill",    "500" );
}


public 
EventDeathMsg( ) {
    if( 
get_user_flagsread_data) ) & VipFlags ) {
        if( 
cs_get_user_moneyread_data) ) >= 16000 ) {
            return 
PLUGIN_HANDLED;
        } 
        
        if( 
read_data) )
            
iMoney get_pcvar_numiMoney_Hs );
        else
            
iMoney get_pcvar_numiMoney_Kill );
        
        
cs_set_user_moneyread_data), cs_get_user_moneyread_data) ) -300 iMoney );
    }
    return 
PLUGIN_HANDLED;

asd13 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 07:03.


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