Raised This Month: $ Target: $400
 0% 

EventDeathMsg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 10-09-2014 , 17:55   Re: EventDeathMsg
Reply With Quote #7

Quote:
Originally Posted by RateX View Post
Have you actually did what I told you? Because if you did, you would have solved the cash problem by now.
Please stop responding if you did not understand and did not you read my post.

I added myself, but I do not get a message that I have killed the terrorist
PHP Code:
public EventDeathMsgclient )
{
    static 
killervictimcash;
    
    
killer read_data);
    
victim read_data);
    
    if ( !
is_user_connectedvictim ) )
        return 
0;
    
    static 
CsTeams:teams];
    
    if ( 
is_user_connectedkiller ) )
        
teams] = cs_get_user_teamkiller );
    
    
teams] = cs_get_user_teamvictim );
    
    if ( 
teams] == teams] || teams] != CS_TEAM_T || teams] != CS_TEAM_CT )
        return 
0;    
    
    if ( 
is_user_connectedkiller ) && teams] == CS_TEAM_T )
    {
        
cash 100;
        
        
user_give_cashkillercash );
        
        
ColorChat0NORMAL"^x03 %s^x01 has killed^x03 %s^x01 Builder and gain^x04 %i^x01 CP."GetUserNamekiller ), GetUserNamevictim ), cash );
    }
    
    if ( 
is_user_connectedkiller ) && teams] == CS_TEAM_CT )
    {
        
cash 50;
            
        
user_give_cashkillercash );
            
        
ColorChatclientNORMAL"You killed^x03 %s^x01 Zombie and gain^x04 %i^x01 CP."GetUserNamevictim ), cash );
    }

    return 
0;

Snitch is offline
Send a message via Skype™ to Snitch
 



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