• [SuperSmall Health]+[Allowed Groups] - Help
    0 replies, posted
Many of you do not know how to change the health of the Super Small power up, and I thought I would help you :D [QUOTE]M.Name = 'Super Small' ITEM.Price = 10000 ITEM.Model = 'models/props_junk/garbage_glassbottle003a.mdl' ITEM.NoPreview = true ITEM.AllowedUserGroups = { "vvip", "CustomRank", "trial", "admin", "superadmin", "coown", "owner" } function ITEM:OnEquip(ply, modifications) ply:SetModelScale(0.75, 1) ply:SetMaxHealth(30) ply:SetHealth(30) end function ITEM:OnHolster(ply) ply:SetModelScale(1, 1) ply:SetHealth(100) ply:SetMaxHealth(100) end[/QUOTE] [QUOTE]ITEM.AllowedUserGroups = { "vvip", "CustomRank", "trial", "admin", "superadmin", "coown", "owner" } - Make's it so that the only group's that can buy them, are the one's in there[/QUOTE] [QUOTE]ply:SetMaxHealth(30) Set Max health you need to have, because or else it will just heal the person to 100 again when the round starts. ply:SetHealth(30) This one you have, so they won't have 100 health when they use it. ply:SetMaxHealth(100) OnHolster - You need to put all the thing's you edited with it, to the default setting's. ply:SetHealth(100) - Heal's the player to 100 health.[/QUOTE] The reason I posted all of this in here, is because then you can see were all of it should be, and what they do. Any question's? any1 wondering how to get the Rank's on the scoreboard? I don't know much. But I'm sure I can help some of you :)
Sorry, you need to Log In to post a reply to this thread.