Thread: [Solved] Add item and fix this
View Single Post
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 12-23-2020 , 09:47   Re: Add item and fix this
Reply With Quote #2

bump.
In fact, the first part of the plugin works well,:
PHP Code:
    if((get_playersnum_ex(GetPlayers_ExcludeDead GetPlayers_MatchTeam"TERRORIST") == 1)) {
        
server_cmd("amx_pausecfg pause puginname.amxx")    
    } 
but the second part has a problem:
PHP Code:
    else if(((get_playersnum_ex(GetPlayers_ExcludeDead GetPlayers_MatchTeam"TERRORIST") != 1)) || (get_playersnum_ex(GetPlayers_ExcludeDead GetPlayers_MatchTeam"CT") == 0)) {
        
server_cmd("amx_pausecfg enable puginname.amxx")
    } 
The problem with the second part is that you have to wait until someone from the CT team Die to make the plugin work.
Can Someone Fix it? Thanks
ho83 is offline