Raised This Month: $ Target: $400
 0% 

EventDeathMsg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 10-11-2014 , 01:13   Re: EventDeathMsg
Reply With Quote #8

Try this, it would work.

PHP Code:
public EventDeathMsg() 

    static 
killervictimhscash
     
    
killer read_data); 
    
victim read_data); 
     
    
hs read_data); 
     
    if ( !
is_user_connectedkiller ) || !is_user_connectedvictim ) ) 
        return 
0

    if ( 
is_user_connectedkiller ) ) 
    {
        switch( 
get_user_teamkiller ) )
        {
            case 
cash hs 100 100;
            case 
cash hs 50 50;
        }
        
//cash = hs ? 100 : 100; 
         
        
user_give_cashkillercash ); 
         
        
ColorChat0NORMAL"%s^x03 %s^x01 has killed^x03 %s^x01 and gain^x04 %i^x01 Cash."g_szChatPrefixGetUserNamekiller ), GetUserNamevictim ), cash ); 
    } 

    return 
0

__________________
All my work is here

Last edited by xxxperts; 10-11-2014 at 06:23. Reason: updating the code :/
xxxperts 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 17:39.


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