Hello, i made little script to fix bug then 35hp_2 or most_wanted map starts, there player can buy weapon in first round (then server starts)
but i get error then i try this to complile
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
new g_round = 0
new bool:g_check = false;
new g_bug[][] =
{
"35hp",
"ka_",
"most_"
}
public plugin_init()
{
register_plugin("MAP bug fix","1.0","Metanabol")
register_clcmd("p228","HandleCmd")
register_clcmd("hegrenade","HandleCmd")
register_clcmd("smokegrenade","HandleCmd")
register_clcmd("elite","HandleCmd")
register_clcmd("fiveseven","HandleCmd")
register_clcmd("usp","HandleCmd")
register_clcmd("glock18","HandleCmd")
register_clcmd("deagle","HandleCmd")
register_logevent("logevent_Round_Start", 2, "1=Round_Start");
new MapName[64];
get_mapname(MapName, 63);
for (new Map = 0; Map < sizeof(g_bug); Map++)
if (containi(MapName, g_bug[Map]) != -1)
{
g_check = true;
}
}
public logevent_Round_Start()
{
g_round++
}
public HandleCmd(id){
if(g_round = 1 && g_check) {
client_print(0, print_chat, "[KPZ] Player tried to buy weapon.")
return PLUGIN_HANDLED
}
}