Raised This Month: $ Target: $400
 0% 

Help count frags + reward


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DavidJr
Senior Member
Join Date: Apr 2012
Old 12-25-2013 , 10:11   Re: Help count frags + reward
Reply With Quote #2

You hook DeathMsg incorrect.

PHP Code:
register_event("DeathMsg""event_DeathMsg""a"
PHP Code:
public event_DeathMsg()
{
    new 
iKiller read_data(1//this is the killer
    
new iVictim read_data(2//this is the victim
    
    
if (get_user_frags(iKiller) > 2)
    {
        
set_user_health(iKiller300
        
set_user_armor(iKiller200
        
        new 
name[33
        
get_user_name(iKillername32
        
        
set_hudmessage(20000, -1.00.2506.05.0
        
show_hudmessage(0"%s: RAGE !!! Sa il omoare cineva !!!"name 
        
        
client_cmd(0"spk ^"%a^""sounds[random_num(0,sizeof(sounds))]) 
    
        
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, id
        
write_short(1<<10
        
write_short(1<<10
        
write_short(0x0000
        
write_byte(200
        
write_byte(0
        
write_byte(0
        
write_byte(75
        
message_end() 
    }

__________________
What are you looking for here?
DavidJr 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 20:41.


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