Easy Weapon Start Tool?

Could someone make a lua so you only start with a select few weapons. Another nice feature would be to change that in the settings tab. Because Ive been using a lua (http://www.fpsbanana.com/threads/134561) that takes all weapons away then i have a different mod that give you hl2 weapons. Mabey a mod is already out but i haven’t found it.


(User was banned for this post ("Wrong forum" - mahalis))

[lua]local weapons = {
“weapon_physcannon”,
“weapon_physgun”,
“gmod_tool”,
“gmod_camera”,
}

hook.Add(“PlayerLoadout”,“RestrictWeapons”,function(ply)
for _,v in ipairs(weapons) do ply:Give(v) end
return true
end)[/lua]

Put this in your /lua/autorun/server directory. Right now, this gives all players only a physgun/gravgun/camera/tool.
Just replace or add strings in the “weapons” table that are the classname of the weapons you want to give to a player.

ok ill try it out thanks, o and do i remove the give camera line to get rid of camera?

Looks like your statement is indeed not correct. Now that I look back on you all, I find it funny how I even got involved with you all Facepunch dickheads.

I have over 20 more alt accounts blended in better than a communist in 1960’s New York so cut off one head, and two more shall take its place.

Baldur out :smiley: