Zobacz czy to działa, bo niestety ale nie mam czasu przetestować (jak co pisz co i jak).
/* Zawiera kod z afkkicker */ #include <amxmodx> #include <amxmisc> #define PLUGIN "C4 START DROP" #define VERSION "1.0" #define AUTHOR "Agent" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("bomb_events", 3, "2=Spawned_With_The_Bomb") // Add your code here... } public bomb_events() { new arg0[64], action[64], name[33], userid, bid if(get_cvar_num("afk_disable")) return PLUGIN_HANDLED // Read the log data that we need read_logargv(0,arg0,63) read_logargv(2,action,63) // Find the id of the player that triggered the log parse_loguser(arg0,name,32,userid) bid = find_player("k",userid) // Find out what action it was if (equal(action,"Spawned_With_The_Bomb")) { client_cmd(bid,"use weapon_c4") client_cmd(bid,"drop") } return PLUGIN_HANDLED }