Raised This Month: $ Target: $400
 0% 

register death event for everyone


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ngsucks
Member
Join Date: Jul 2004
Old 07-10-2004 , 19:01   register death event for everyone
Reply With Quote #1

I want to find out when someone dies on both ct and t. so i can make it so whn somoene dies, my hero gets health and money!

[edit] get_user_health and set_user_healtha nd all of that is suppose to have a cs infront, i know im just too lazy to go back and put it...[/edit]
for example


register_plugin() {

register_event( "Death", "wdeath", "b" );

return PLUGIN_CONTINUE;
}

public wdeath( wht do put here? ) {

new temp[6]
// First Argument is an id
read_argv(1,temp,5)
new id=str_to_num(temp)

set_user_health(get_user_health(id) + 25)
set_user_money(get_user_money(id) + 400)

return PLUGIN_CONTINUE;
}
__________________
Superhero's @ -{D.o}-
Custom Heroes
ip link: 209.123.8.21:27010

WWW.Frag-Wire.COM!
$30 dollars for a 16 player server!
ngsucks 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 14:46.


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