So I'm starting to make my own gamemode that has credits.So I was wondering if anyone could help me. I'm trying to make a custom credit system.This is what I have so far will this work if I add a loop and make it so the person that kills someone gets more credits everytime they get killed.
credit = 0
function GM:PlayerInitialSpawn(ply)
if credit = 0 then
credit = 1.5 else
if credit = getcredit then
credit + 1.5
end
end
concommand.Add("credit", credit)
edit: I know that it is on spawn, its only being tested at the moment.