• Easy Weapon Start Tool?
    3 replies, posted
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 ([url]http://www.fpsbanana.com/threads/134561[/url]) 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. [highlight](User was banned for this post ("Wrong forum" - mahalis))[/highlight]
[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?
[QUOTE=MadParakeet;48763675]Again? I give him two weeks.[/QUOTE] 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. [IMG]http://i.imgur.com/BzIXhKd.png[/IMG] 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 :D
Sorry, you need to Log In to post a reply to this thread.