Raised This Month: $ Target: $400
 0% 

DeathMsg shows suicide [Solved]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-21-2007 , 08:28   Re: DeathMsg shows suicide
Reply With Quote #2

Well... I solved the problem with this method. I'm not sure it's bugfree... but I guess so...

PHP Code:
    targetHealth get_user_health(targetid) - damage
    
    
    
if(targetHealth <= 0) {
     
user_silentkill(targetid)
     
message_begin(MSG_ALLgmsgDeathMsg, {0,0,0}, 0)
     
write_byte(id)
     
write_byte(targetid)
     
write_byte(0)
     
write_string("shockwave")
     
message_end()
     
     
set_user_frags(idget_user_frags(id) + 1)
    } else {
     
set_user_health(targetidtargetHealth)
    } 
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry 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:22.


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