Raised This Month: $ Target: $400
 0% 

Detect Dead Body


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Frozen Usp
Member
Join Date: Sep 2007
Location: Sweden
Old 12-16-2007 , 07:43   Detect Dead Body
Reply With Quote #1

Hi!

How do you make a code that detect and target a dead body near you?


Ex.

Mr.X is Aiming at Mr.Ys dead body and push down "v" to target the body.



Thanks! - Fz
Frozen Usp is offline
Send a message via MSN to Frozen Usp
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-16-2007 , 07:46   Re: Detect Dead Body
Reply With Quote #2

Hook the event DeathMsg or/and ClCorpse (depending of what you want to do) and store coordinates data till the next round.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Frozen Usp
Member
Join Date: Sep 2007
Location: Sweden
Old 12-16-2007 , 07:52   Re: Detect Dead Body
Reply With Quote #3

The thing is i only whant the coordinates as long as the guy is aiming on the body.

my idea was to make a plugin,"The Cleaner" when you kill somebody and aim at the body and push down "key" it wile take 15sec then the body will disaperar.
Frozen Usp is offline
Send a message via MSN to Frozen Usp
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-16-2007 , 08:08   Re: Detect Dead Body
Reply With Quote #4

I've just remembered this plugin : http://forums.alliedmods.net/showthread.php?p=249374
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Frozen Usp
Member
Join Date: Sep 2007
Location: Sweden
Old 12-16-2007 , 08:14   Re: Detect Dead Body
Reply With Quote #5

Hmm...
meybe i can use some code from that one.
Thanks for the help connorr i'm going to ask VEN
Frozen Usp is offline
Send a message via MSN to Frozen Usp
Reply



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 11:01.


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