Thread: delete
View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-16-2020 , 18:59   Re: need Auto Change HostName in spesific maps
Reply With Quote #8

Try it:

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta_util> #define PLUGIN "Soccer" #define VERSION "1.0" #define AUTHOR "Supremache" #define ADMIN_FLAG ADMIN_ADMIN new g_iMaxPlayers public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd( "say /soccer", "CmdSoccer");     g_iMaxPlayers = get_maxplayers();     } public CmdSoccer(id) {     if(cs_get_user_team(id) != CS_TEAM_CT && get_user_flags(id) != ADMIN_FLAG)         return PLUGIN_HANDLED;     for( new i = 1; i < g_iMaxPlayers; i++ )     {         if( is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T )         {             server_cmd( "abh_on 0");             fm_strip_user_weapons( i );             fm_give_item( i, "weapon_knife" );         }     }     return PLUGIN_CONTINUE; }
Supremache is offline