AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ResetHUD event doesn't work on DOD (https://forums.alliedmods.net/showthread.php?t=40679)

fishman8 07-01-2006 15:27

ResetHUD event doesn't work on DOD
 
I wrote

register_event("ResetHUD", "on_ResetHud", "b")

and

public on_ResetHud(id) {
client_print(id,print_center,"test")
}


but it not work on DoD, anyone suggest?

jtp10181 07-01-2006 15:32

Re: ResetHUD event doesn't work on DOD
 
works fine on DoD for me... I register it like this...


Code:
register_event("ResetHUD","event_respawn","b")



it will get called when a player spawns.


Code:
public event_respawn(id) {


Also I usually test with a server_print, could try that.

diamond-optic 07-01-2006 18:09

Re: ResetHUD event doesn't work on DOD
 
it also always works for me...

and if your just trying to catch spawning, you could always use the new dod_client_spawn forward in the dodx module for 1.75

fishman8 07-01-2006 23:12

Re: ResetHUD event doesn't work on DOD
 
Thank you all, I found the plugin has runtime error, so it will not excute events. :-)


All times are GMT -4. The time now is 08:00.

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