So I set up my pointshop so you get points for killing Ts as innos, innos as ts, and vice versa, complete with detectives, removal of points and stuff like that.
Only thing I’ve got a problem with right now, is that you still get and get points removed for postround dm.
I tried to do it like this:
function IsMidRound() hook.Add("TTTBeginRound", "StartThePVP", function() midround = true end ) hook.Add("TTTEndRound", "EndThePVP", function() midround = false end ) return midround end
then start the other part with
if killer:IsPlayer() && IsMidRound() then
I would also like to add a part where you get like 2 points per kill made in postround dm.
if killer:IsPlayer() && IsMidRound() == false then killer:PS_GivePoints(2) killer:PS_Notify("You've been given 2 points for killing someone postround!") end
It works just fine if I don’t call the IsMidRound(), so I just need help getting this smalllll bit to work. Currently, nothing will happen, most likely meaning IsMidRound() is returning false, and that’s what I need help with.