Hi there, I’ve been struggling to do a few things with my pointshop. Firstly giving double points to someone with our tag in [PxG], here is what I have so far;
if PS.Config.PointsOverTime then timer.Create('PS_PointsOverTime_' .. self:UniqueID(), PS.Config.PointsOverTimeDelay * 60, 0, function() PS.Config.PointsOverTimeAmount if string.find(self:Nick(), "[PxG]", 1, true) then PS.Config.PointsOverTimeAmount = PS.Config.PointsOverTimeAmount*2 end end) end
Secondly due to hat positioning I am trying to set it so only one player model is selected upon round start (cs_phoenix)
hook.Add("TTTBeginRound", "BeginRoundDetectiveSkin", function() for k,v in pairs(player.GetAll()) do if v:SetModel(Model("player/phoenix.mdl")) end end end)
Thanks in advance.