Raised This Month: $32 Target: $400
 8% 

sh_client_death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
timian
Member
Join Date: Oct 2006
Location: Denmark
Old 04-04-2010 , 13:44   sh_client_death
Reply With Quote #1

if(killer get HS and it isn't a TK)
do somthing

will somone make it for me? or tell me somthing about sh_client_death. specialy i got a gib problem! i don't know how to get player id on this...
timian is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 04-04-2010 , 13:59   Re: sh_client_death
Reply With Quote #2

Check this. Hope it helps

http://forums.alliedmods.net/showthread.php?t=122114
__________________
The Art of War is offline
timian
Member
Join Date: Oct 2006
Location: Denmark
Old 04-04-2010 , 14:18   Re: sh_client_death
Reply With Quote #3

i see that topic, tried to make my hero but with a lot of errors :/
timian is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 04-04-2010 , 14:25   Re: sh_client_death
Reply With Quote #4

If you want to know how to use sh_client_death, check the superheromod.inc file in "include" in the folder where you have your local compiler
__________________
The Art of War is offline
timian
Member
Join Date: Oct 2006
Location: Denmark
Old 04-04-2010 , 14:31   Re: sh_client_death
Reply With Quote #5

also do don't give me any useful information :p
timian is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 04-04-2010 , 15:16   Re: sh_client_death
Reply With Quote #6

Something like this

Code:
public sh_client_death(iVictim, iKiller, IsHS) {     if(cs_get_user_team(iVictim) != cs_get_user_team(iKiller) && IsHS)     {         // your code     } }
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
timian
Member
Join Date: Oct 2006
Location: Denmark
Old 04-04-2010 , 16:00   Re: sh_client_death
Reply With Quote #7

it worked! but why did you add i before killer and so on??
timian is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 04-04-2010 , 16:03   Re: sh_client_death
Reply With Quote #8

Quote:
Originally Posted by timian View Post
it worked! but why did you add i before killer and so on??
Because they're integers.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
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 18:16.


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