new shreg = get_cvar_num(amx_shreg)
if (shreg=0){
Should Be:
new shreg = get_cvar_num("amx_shreg")
if (shreg==0){
Also,
set_cvar_num(sv_superheros, 0)
Should be:
set_cvar_num("sv_superheros", 0)
And,
public shero
Should be:
public shero(id)
And you have too many Curly-Brackets (proper indenting will help you avoid that), revised version (not tested):
Code:
/* Superhero and Reg CS By Lil' P!mP. Made for -=[NaW]=- Clan server @ jpr2.nuclearfallout.net */
include <amxmodx>
public plugin_init()
{
register_clcmd("say /voteshero","shero", 0, " - Starts a vote for Super Hero Mod")
register_clcmd("say /votereg","reg", 0, " - Starts a vore for Regular CS")
register_cvar("amx_shreg","1")
register_plugin("SHero/Reg CS", "v0.1", "Lil' P!mP")
return PLUGIN_CONTINUE
}
public reg(id)
{
new shreg = get_cvar_num("amx_shreg")
if (shreg==0){
client_print(id, print_chat, "[AMXX] Voting not allowed at this time")
}
else{
set_cvar_num("sv_superheros", 0)
client_print(0, print_chat, "[AMXX] The server had been changed to Regular CS!")
set_cvar_num('sv_restartround", 1)
}
return PLUGIN_HANDLED
}
public shero(id)
{
new shreg = get_cvar_num("amx_shreg")
if (shreg==0){
client_print(id, print_chat, "[AMXX] Voting not allowed at this time")
}
else{
set_cvar_num("sv_superheros", 1)
client_print(0, print_chat, "[AMXX] The server had been changed to SuperHero Mod!!")
set_cvar_num("sv_restartround", 1)
}
return PLUGIN_HANDLED
}
I hope that helps!