Raised This Month: $ Target: $400
 0% 

cz deathmsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-07-2005 , 15:08   cz deathmsg
Reply With Quote #1

how can i make a deathmsg in CZ? .. and locate the death event of CZ??
the one of 1.6 doesnt work
haimmaik is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-07-2005 , 15:11  
Reply With Quote #2

Code:
register_event("DeathMsg", "Event_DeathMsg", "a");
That should work just fine.. Show me your code.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-07-2005 , 15:18  
Reply With Quote #3

it doesnt work....
it workes on cs1.6 and doesnt work on cz
here is the exact line:

Code:
register_event("DeathMsg","unpredator","a")

and here is the function:

Code:
 public unpredator()  {     new id=read_data(2)     if(ispredator[id]!=0)     {         ispredator[id]=0         plasma[id]=0         client_cmd(id,"unbind mouse3")         if(get_user_health(id)>100)         {             set_user_health(id,get_user_health(id)-100)         }         cs_set_user_armor(id,cs_get_user_armor(id,CS_ARMOR_VESTHELM)-500,CS_ARMOR_VESTHELM)         set_user_gravity(id,1.0)         set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)         set_user_footsteps(id,0)         set_user_maxspeed(id,350.0)         client_cmd(id,"cl_forwardspeed 400")         client_cmd(id,"cl_backspeed 400")         client_cmd(id,"cl_sidespeed 400")         client_cmd(id,"spk predator/depredator")         cs_reset_user_model(id)         message_begin(MSG_ONE, 98, {0,0,0}, id)         write_short(1<<0)   // fade lasts this long duration         write_short(1<<0)   // fade lasts this long hold time         write_short(1<<2)   // fade type HOLD         write_byte(100) // fade red         write_byte(0)   // fade green         write_byte(0)   // fade blue         write_byte(0)   // fade alpha         message_end()         set_hudmessage(0,30,200,-1.0,0.75,0,3.0,10.0,0.15,0.5,1)         show_hudmessage(id,"You are no longer a predator")                 if(ispredator[id]==0)         {         new HUD[51]         format(HUD,50,"")         message_begin(MSG_ONE, msgtext, {0,0,0}, id)           write_byte(0)           write_string(HUD)           message_end()         }     }  }
haimmaik is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-07-2005 , 15:21  
Reply With Quote #4

Show me the function you've hooked it to.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-07-2005 , 15:22  
Reply With Quote #5

i added it up...
haimmaik is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-07-2005 , 15:27  
Reply With Quote #6

Right after this part:
Code:
new id=read_data(2)
Put a small debug message like so:
Code:
client_print(id, 3, "*** You died! ***");
And it should come up in chat.

If it does, let me see the rest of your code.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-07-2005 , 17:13  
Reply With Quote #7

it doesnt...
read data 2 sux? Oo
haimmaik is offline
Reply


Thread Tools
Display Modes

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 23:43.


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