 |
|
Veteran Member
Join Date: Dec 2008
Location: Portugal
|

08-20-2009
, 13:24
Re: Trouble with cs_set_user_defuse
|
#6
|
Quote:
Originally Posted by ConnorMcLeod
The fact is cs updates players hud after they spawn so, default icon values are restored.
If it's made as in standart half life coding, it is proceeded in UpdateClientData when m_fInitHUD == 1, so the icon will be set back to green after you spawn, or when you execute fullupdate command, or when you make a demo.
Try this :
PHP Code:
#include <amxmodx> #include <cstrike>
#define VERSION "0.0.1"
public plugin_init() { register_plugin("defuser icon color", VERSION, "ConnorMcLeod")
register_event("StatusIcon", "Event_StatusIcon_defuser", "be", "1=1", "2=defuser") }
public Event_StatusIcon_defuser( id ) { cs_set_user_defuse(id, 1, 250, 0, 0) }
|
Isn't that way an "infinite loop"?
__________________
|
|
|
|