• Problem with custom loadouts in TTT
    0 replies, posted
Hey everyone so here is what I have in lua/autorun/server, [CODE]function giveWeapon( ply ) if ply:Team() == 1 then if ply:IsUserGroup("donator") then ply:Give("weapon_ttt_lightsaber") elseif ply:IsUserGroup("dadmin") then ply:Give("weapon_ttt_lightsaber") elseif ply:IsUserGroup("dmod") then ply:Give("weapon_ttt_lightsaber") elseif ply:IsUserGroup("owner") then ply:Give("weapon_ttt_lightsaber") elseif ply:IsUserGroup("owner") then ply:Give("weapon_zm_revolver") end end end hook.Add("PlayerSpawn", "giverankedWeapon", giveWeapon)[/CODE] Everything works fine except the last one doesn't work. I don't spawn with a deagle, but I do spawn with the lightsaber. What did I do wrong? Solved: I forgot to take out the elseif on the second owner line.
Sorry, you need to Log In to post a reply to this thread.