Im truly a noob at this I've come this far only because another scripter helped me so much but I haven't been able to fix this part of it and am in a glitch so any see what Im missing in this script
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
new PLUGIN[] = "Sharks and Minnos"
new VERSION[] = "1.1"
new AUTHOR[] ="*[9mm]* Thomas"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_sandm","amx_sandm",ADMIN_LEVEL_H,"1 To turn on 0 To turn off")
}
public amx_sandm(id,level,cid)
{
if(!cmd_access(id,level,cid,2))
{
new arg1[32]
read_argv(1,arg1,31)
if(equali(arg1,"1"))
{
for(new iTarget=0;iTarget<33;iTarget++)
{
client_print(0,print_chat,"Sharks and Minnos is now On!?!?!?!")
new CsTeams:csTeam = cs_get_user_team(iTarget)
if(csTeam == CS_TEAM_CT)
{
give_item(iTarget,"weapon_elite")
give_item(iTarget,"ammo_9mm")
give_item(iTarget,"ammo_9mm")
give_item(iTarget,"ammo_9mm")
give_item(iTarget,"ammo_9mm")
give_item(iTarget,"ammo_9mm")
give_item(iTarget,"ammo_9mm")
give_item(iTarget,"ammo_9mm")
give_item(iTarget,"ammo_9mm")
}
if(csTeam == CS_TEAM_T)
set_user_noclip(iTarget,1)
}
}
return PLUGIN_HANDLED
}
if(equali(arg1,"2"))
server_cmd("sv_restartround 1")
client_print(0,print_chat,"Sharks and Minnos is now Off!?!?!?!")
return PLUGIN_HANDLED
}
This is up to where Ive fixed it so far to my liking. Im just not sure what to do with my compliation errors more or less Im not sure what they mean....
Heres the error I get when I compile it
Error: Undefined symbol "arg1" on line 49