View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-05-2020 , 21:49   Re: What dose those codes do
Reply With Quote #7

Quote:
Originally Posted by Shadows Adi View Post
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(fbombtEV_INT_flagsFL_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(ibombtEV_INT_flagsFL_KILLME)
        
ibombt find_ent_by_class(ibombt"info_bomb_target")
    }    
    return 
PLUGIN_CONTINUE


Last edited by Supremache; 08-05-2020 at 21:49.
Supremache is offline