Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <amxmisc.inc>
public plugin_init()
{
// Plugin Info
register_plugin("Admin Server Changer", "0.9", "hYp3r")
register_concmd("amx_smokes","admin_restricts",ADMIN_LEVEL_B,"<1|0>")
}
public admin_restricts(id,level,funcidx) {
if (!cmd_access(id,level,funcidx,3))
return PLUGIN_HANDLED
new restrict[64]
new smokes = cs_get_weapon_id(CSW_SMOKEGRENADE)
read_argv(1,restrict,32)
new status = str_to_num(restrict)
if (status = 1)
{
(smokes = 1);
client_print(id, print_chat, "[AMXX] You are not allowed to use smoke gernades.")
}
if (status = 0) {
(smokes = 0);
client_print(id, print_chat, "[AMXX] Smoke gernades are allowed.")
return PLUGIN_HANDLED
}
}
Thats waht it is now but ikeep geting warnings and the plugin doesnt load right.