Whoever modified my version of this is a fucking dumbass.
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))
return PLUGIN_HANDLED
new arg1[32]
read_argv(1,arg1,31)
if(!str_to_num(arg1))
{
client_print(0,print_chat,"[AMXX] Sharks and Minnows - off.")
server_cmd("mp_restartround 1")
return PLUGIN_HANDLED
}
new iPlayers[32],iPlayersnum,iPlayer
get_players(iPlayers,iPlayersnum,"a")
for(new iCount = 0;iCount < iPlayersnum;iCount++)
{
iPlayer = iPlayers[iCount]
new CsTeams:csTeam = cs_get_user_team(iPlayer)
if(csTeam == CS_TEAM_CT)
{
give_item(iPlayer,"weapon_elite")
give_item(iPlayer,"ammo_9mm")
give_item(iPlayer,"ammo_9mm")
give_item(iPlayer,"ammo_9mm")
give_item(iPlayer,"ammo_9mm")
give_item(iPlayer,"ammo_9mm")
give_item(iPlayer,"ammo_9mm")
give_item(iPlayer,"ammo_9mm")
give_item(iPlayer,"ammo_9mm")
}
if(csTeam == CS_TEAM_T)
set_user_noclip(iPlayer,1)
}
return PLUGIN_HANDLED
}