AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get the person who conced you. (https://forums.alliedmods.net/showthread.php?t=25732)

Ramono 03-19-2006 11:07

Get the person who conced you.
 
This is a event of a conc hit ( in TFC )
register_event("Damage", "event_damage", "b", "3=512")

How to get the attacker out of this?

( client_damage && get_user_attacker won't register this because it has 0 damage )

Thanks,
Ramon.

Ramono 03-20-2006 11:49

Is this possable anyway?
Plz tell if posable or not.
And if so, plz tell how.

P34nut 03-21-2006 04:59

get_user_attacker() ??

http://www.amxmodx.org/funcwiki.php?...cker&go=search

Ramono 03-21-2006 07:23

Edit: Doesnt work good, because the damage given with a conc is 0...
Any other way('s) available?

[ --<-@ ] Black Rose 03-21-2006 10:58

w00t? read_data() doesent work on this event for TFC?

Ramono 03-21-2006 11:14

Works but,
There is no data in it that gives a name / id of the client.

Edit:

Code:

L 03/20/2006 - 20:22:36: [msglogging.amxx] MessageBegin Damage(72) Arguments=6 Destination=One(1) Origin={0.000000 0.000000 0.000000} Entity=1 Classname=player Netname=NL)Ramon(NL
L 03/20/2006 - 20:22:36: [msglogging.amxx] Arg 1 (Byte): 0 damage in hp
L 03/20/2006 - 20:22:36: [msglogging.amxx] Arg 2 (Byte): 0 damage in ap
L 03/20/2006 - 20:22:36: [msglogging.amxx] Arg 3 (Long): 512 this is a conc
L 03/20/2006 - 20:22:36: [msglogging.amxx] Arg 4 (Coord): 152.002792
L 03/20/2006 - 20:22:36: [msglogging.amxx] Arg 5 (Coord): -2132.363037
L 03/20/2006 - 20:22:36: [msglogging.amxx] Arg 6 (Coord): -531.269
Last 3 are origin


[ --<-@ ] Black Rose 03-21-2006 11:15

where are the tfc events listed? if any list.

Ramono 03-21-2006 11:20

TFC is not populair,
i think there is none.
( and no other message is given when conced )

[ --<-@ ] Black Rose 03-21-2006 11:20

okey

Ramono 03-21-2006 11:34

Got an idea that maybe works...
Change damage from 0 to 1,
Maybe he client_damage will register it.
Can i please get the line to do that?


All times are GMT -4. The time now is 16:42.

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