How do I give the player infinite ammo in my gamemode?
Here is my give weapon code
[LUA]function GM:PlayerLoadout(ply)
ply:Give("weapon_shotgun")
ply:Give("weapon_pistol")
ply:SetAmmo(999,"weapon_pistol")
ply:SetAmmo(999,"weapon_shotgun")
ply:Give("weapon_frag")
end[/LUA]
Oh I almost forgot. This is the only place that references weapons! In my code. Wait. I got it to work. For the pistol. I am still having issues with the shotgun. NVM I solved it myself.
Sorry, you need to Log In to post a reply to this thread.