So i want to make it so certain ranks spawn with different health this will be used in darkrp so like i want my V.I.P's to be able to have 255 health and i want them to spawn with that also i want a way to make them spawn with 255 armor please help i need this ASAP! thanks!
What admin mod are you using?
[QUOTE=vegasx;41841681]What admin mod are you using?[/QUOTE]
ULX
Hm. Setup a hook to act on PlayerSpawn to check if the player is vip, and if they are, run the ulx hp command on them
[lua]
hook.Add("PlayerSpawn", "GiveVipStuff", function(ply)
if ply:GetUserGroup() == "vip" then
ply:SetHealth(255)
ply:SetArmor(255)
end
end)
[/lua]
Place in a serverside file.
Is ply:GetUserGroup() added by ULX?
[QUOTE=Pegpro;41847476]Is ply:GetUserGroup() added by ULX?[/QUOTE]
Yes. By default though you can use ply:IsUserGroup("vip") instead.
Sorry, you need to Log In to post a reply to this thread.