Thread: [Solved] Add item and fix this
View Single Post
Author Message
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 12-18-2020 , 10:09   Add item and fix this
Reply With Quote #1

Hi. I have this plugin but i don't know why not work.
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Disable The Goddamn Plugins"
#define VERSION "1.0"
#define AUTHOR "mmd"


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("DeathMsg""onDeathMsgEvent""a")
}

public 
onDeathMsgEvent()
{
    if((
get_playersnum_ex(GetPlayers_ExcludeDead GetPlayers_MatchTeam"TERRORIST") == 1)) {
        
server_cmd("amx_pausecfg pause puginname.amxx")    
    }
    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")
    }

I want when 1 TR is alive, Server_cmd Run a Command and when 2 TR Alive Server_cmd Run another Command.
also I want when Server See This Words in chat[like today is special day] server cmd run another Command .
Thanks.

Last edited by ho83; 01-05-2021 at 07:22.
ho83 is offline