Donator wep code.

Hey all

I wrote abit of code but it doesn’t seem to work, was asking for some advice.


function roundstartbenefits()
 	for k, v in ipairs(player.GetAll()) do
 		if not v:IsSpec() then
 			if v:IsUserGroup("donator") then
                                v:Give("weapon_ttt_revolver")
                                v:GiveAmmo(18,"AlyxGun")
							 end
 hook.Add("TTTBeginRound","newroundbenefits",roundstartbenefits)

I placed this is autorun/server/random.lua

Not the place to ask for help, please see Developer Discussion