Adds a level system to Trouble in Terrorist Town for Garry's Mod.
##Customization
In the shared.lua file:
-
xpForLevelThis is the amount of experience it takes to level up -
xpForTKillThis is the amount of experience a traitor gets for a kill -
xpForInnoKillThis is the amount of experience an innocent gets for a kill -
xpLossForTKThis makes players lose experience if they teamkill, set to 0 to disable
// Pointshop On Levelup, Remove /* and */ to enable
/*
pointsForLevelup = 1000
local function givePointshopReward(ply, lvl)
if SERVER then
ply:PS_GivePoints(pointsForLevelup)
else
// Do something
end
end
hook.Add("Levels_LevelUp", "TTTXP_PSReward", givePointshopReward)
*/
This allows you to give players points for pointshop when they level. Compatability with Pointshop2 is unknown.