Quote:
Originally Posted by Shadows Adi
Try to detect the bomber from t side and stripweapons xd
|
I used those code for bb mod and it can remove c4 bomb from T team but those code are disableing logevent_roundend from mod, So why i getting this problem
I also have checked zombieplague mod "15k lines" to find the codes for remove c4 bomb and i didn't found it
PHP Code:
new maxplayers
public plugin_init() {
maxplayers = get_maxplayers()
removeit()
}
public removeit() {
new doneonce = 0
new fbombt = find_ent_by_class(-1, "func_bomb_target")
while(fbombt > maxplayers)
{
entity_set_int(fbombt, EV_INT_flags, FL_KILLME)
doneonce = 1
fbombt = find_ent_by_class(fbombt, "func_bomb_target")
}
if(doneonce == 1)server_cmd("sv_restartround 1")
new ibombt = find_ent_by_class(-1, "info_bomb_target")
while(ibombt > maxplayers)
{
entity_set_int(ibombt, EV_INT_flags, FL_KILLME)
ibombt = find_ent_by_class(ibombt, "info_bomb_target")
}
return PLUGIN_CONTINUE
}