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(PLUGIN, VERSION, AUTHOR)
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.