AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect Dead Body (https://forums.alliedmods.net/showthread.php?t=64449)

Frozen Usp 12-16-2007 07:43

Detect Dead Body
 
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

ConnorMcLeod 12-16-2007 07:46

Re: Detect Dead Body
 
Hook the event DeathMsg or/and ClCorpse (depending of what you want to do) and store coordinates data till the next round.

Frozen Usp 12-16-2007 07:52

Re: Detect Dead Body
 
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.

ConnorMcLeod 12-16-2007 08:08

Re: Detect Dead Body
 
I've just remembered this plugin : http://forums.alliedmods.net/showthread.php?p=249374

Frozen Usp 12-16-2007 08:14

Re: Detect Dead Body
 
Hmm...
meybe i can use some code from that one. :D
Thanks for the help connorr :P i'm going to ask VEN


All times are GMT -4. The time now is 11:01.

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