AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Damage event not being found? (https://forums.alliedmods.net/showthread.php?t=3249)

GanJa 07-01-2004 05:46

Damage event not being found?
 
Code:

L 07/01/2004 - 03:33:20: [AMXX] Invalid event (name "Damage") (plugin "stats.amx
")
L 07/01/2004 - 03:33:20: [AMXX] Run time error 10 on line 11 (plugin "stats.amx"
)

This came up when I attempted to link a function to the "Damage" event in DOD.
Does this have a diff name or something?
On another Q is it possible to use register_event for the event numbers instead of the name?

SidLuke 07-01-2004 06:02

1)there is no damage event in dod or similar
2)no, you can't

GanJa 07-01-2004 06:04

So what would you call for dod to tell when someone recieves damage then?

CheesyPeteza 07-01-2004 10:14

Use my message logger a few posts down. Shoot someone and see what messages get sent.

GanJa 07-01-2004 10:59

Quote:

Originally Posted by SidLuke
2)no, you can't

Code:
register_event("30","changeMap","a")
seems like you can....

SidLuke 07-01-2004 14:03

Quote:

Originally Posted by GanJa
Quote:

Originally Posted by SidLuke
2)no, you can't

Code:
register_event("30","changeMap","a")
seems like you can....

:oops: :P

GanJa 07-02-2004 03:51

Well to be blunt I'm trying to tell when someone hits someone else with a wep in dod. I noticed Sidluke did the dodxmodule... so what event where you calling in there?

SidLuke 07-02-2004 11:56

client_damage(attacker,victim,weapon,damage,h itplace,TA) forward function :P
But ...
You must wait for dodx_amxx module :D

GanJa 07-04-2004 11:24

Actually I found an event that happens when a player recieves damage and you can use it almost as the DAMAGE event. but thx for the help guys... And cheesy your plugin is nice but I eventually just ended up going through "meta game" and testing ones that looked like they might work =)

SidLuke 07-04-2004 13:50

Quote:

Originally Posted by GanJa
Actually I found an event that happens when a player recieves damage and you can use it almost as the DAMAGE event.

and its name is ?


All times are GMT -4. The time now is 14:36.

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