• Specific HP to Specific rank! Help!
    2 replies, posted
Hello, I was wondering if anyone could help me with setting a specifc HP to a specific rank. So when the player with the rank joins, he get's (for example) 125 hp instead of 100. This is going to be for my Deathrun server (If that makes any difference). Please help! Thanks
Pseudo code: (Warning its late) If(ply:rank == rank) { ply:setHealth( hp ) } And just repeat
local hp = 125 local morehpranks = { "superadmin", "vip", } hook.Add ("PlayerSpawn", "GiveRanksHP", function(ply) if morehpranks[ply:GetUserGroup()] then ply:setHealth(hp) end) untested but should work, put in lua/autorun/server also you could swap out playerspawn hook for the deathrun round start hook I think
Sorry, you need to Log In to post a reply to this thread.