Hello everyone!
I am in a bit of a situation right now.
Currently I have make a very simple pointshop (The Original) item that increases a players health.
ITEM.Name = 'Armor Upgrade 1'
ITEM.Price = 4200
ITEM.Model = 'models/Items/hevsuit.mdl'
ITEM.NoPreview = true
function ITEM:OnEquip(ply)
ply:SetHealth(150)
end
function ITEM:OnHolster(ply)
ply:SetHealth(100)
end
See? Very simple.
But here is the problem....
I have grenades on my server which heal players to their original spawning health.
And this is where the problem lies. A player's health is not instantly set upon respawn but in fact it takes a few seconds after respawn for a player's health to update.
Does anyone happen to know a way in which I could make the health update instantly upon spawn?
I know a simple option would most likely be to upgrade to pointshop 2 but for this case I am just going to continue with original pointshop.
Thanks in advance for any help or advice anyone offers!
Sorry, you need to Log In to post a reply to this thread.