hmmm, etwa so?
Code:
#define MAX_EVENTS 11
#define ACCESS_CONSOLE 131072
enum event {
join_game, // Data[0] is the Userindex
join_team, // Data[0] is the Userindex, Data[1] the Teamindex (0 = Spectator, 1 = Terrorist, 2 = CT)
game_commencing, // No Data
game_restart, // No Data
round_start, // No Data
round_draw, // Data[0] is the score of T, Data[1] is the score of CT
round_win, // Data[0] is the Teamindex of Winning team, Data[1] is the score of T, Data[2] is the score of CT, Data[3] is the Actionstring (e.g. Target_Saved, Terrorists_Win)
round_end, // No Data
injure, // Data[0] is the Userindex of attacker, Data[1] is the Userindex of victim, Data[2] is the damage inflicted, Data[3] is the armor-damage inflicted, Data[4] is the weaponstring
kill, // Data[0] is the Userindex of Attacker, Data[1] is the Userindex of Victim, Data[2] is the weaponstring
suicide // Data[0] is the Userindex, Data[1] is the weaponstring (e.g. hegrenade, world)
}
public do_register_event(Timer,Repeat,HLUser,HLParam) {
new Data[2];
convert_string(HLParam,Data,2);
plugin_exec("register_logd_event",Data);
}
ohh, seh schon , klappt net... wie denn?
und wo bekomm ich die AM-Beta her?