Hi,
I'm using the pointshop mod ([url]http://facepunch.com/showthread.php?t=1022682[/url]) in my deathrun server and i was wondering how i can make it so once the round is over, the "trail" doesn't disappear. Right now, when theres a new round, they loose there trail and have to re-buy each time. Like player.initialspawn that can be added into the function or something.
Any info will be great, thanks!
[editline]28th August 2012[/editline]
This is an example of one of the trails:
[code]ITEM.Name = "Heart Trail"
ITEM.Enabled = true
ITEM.VIPOnly = true
ITEM.Description = "Gives you a team colored loveheart trail."
ITEM.Cost = 250
ITEM.Material = "trails/love"
ITEM.Functions = {
OnGive = function(ply, item)
item.Hooks.PlayerSpawn(ply, item)
end,
OnTake = function(ply, item)
SafeRemoveEntity(ply.Trail)
end
}
ITEM.Hooks = {
PlayerSpawn = function(ply, item)
ply.Trail = util.SpriteTrail(ply, 0, team.GetColor(ply:Team()), false, 15, 1, 4, 0.125, item.Material .. ".vmt")
end
}[/code]
Sorry, you need to Log In to post a reply to this thread.