Raised This Month: $51 Target: $400
 12% 

Solved Add item and fix this


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode