I tryed to catch a flag cap with Ham using Ham_IsTriggered, but it gives me this error:
PHP Code:
/* Error quote:
[AMXX] Plugin ("Ham_IsTriggered.amxx") is setting itself as failed.
[AMXX] Plugin says: Function istriggered is not configured in hamdata.ini.
[AMXX] Displaying debug trace (plugin "Ham_IsTriggered.amxx")
[AMXX] Run time error 1: forced exit
[AMXX] [0] hamsandwich.inc::__fatal_ham_error (line 376)
*/
any of you who knows if Ham_IsTriggered would work on dod? Or is that the simple reason why its not configured in hamdata.ini ? or maybe forgotten? I can see its configured to cstrike, tfc, ns, ts, efs, esf_openbeta and valve, linux and windows. In ini
Quote:
Version: $Id: hamdata.ini 3687 2008-03-04 18:51 5Z sawce $
|
Or are there any other way i can catch a flag cap? My test goes like this:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "flag test"
#define VERSION "1.0"
#define AUTHOR "Dr.G"
/* Console quote:
Team "Axis" triggered a "dod_capture_area" - "POINT_AVALANCHE_MARKET"
"Played @ *=GO=*'s today!GG!<370><STEAM_0:1:21700583><Axis>" triggered a "dod_capture_area" - "POINT_AVALANCHE_MARKET" */
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_IsTriggered, "dod_capture_area", "Flag_Cap",1)
/* ExecuteHam(Ham_IsTriggered, this, idActivator); */
}
public Flag_Cap(id)
{
new name[33]
get_user_name(id,name,32)
if(is_user_connected(id))
{
client_print(id,print_center,"%s you capped a flag")
}
return HAM_IGNORED
}
Thanks in advance!
__________________