Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SCHEMA:OnCharCreated(client, character)
- local inventory = character:getInv()
- local char = client:getChar()
- local endurance = char:getAttrib("endurance")
- local healthcalc = (15 + (17 * endurance))
- client:SetMaxHealth(healthcalc)
- client:SetHealth(healthcalc)
- if (inventory) then
- if (character:getFaction() == FACTION_BOS or character:getFaction() == FACTION_LEGION) then
- inventory:add("dogtags", 1, {
- name = character:getName(),
- id = math.random(10000, 99999)
- })
- elseif (character:getFaction() == FACTION_NCR) then
- inventory:add("dogtags", 1, {
- name = character:getName(),
- id = math.random(10000, 99999)
- })
- end
- end
- end
- function SCHEMA:PlayerSpawn(client)
- local char = client:getChar()
- local endurance = char:getAttrib("endurance")
- local healthcalc = (15 + (17 * endurance))
- local healthset=(healthcalc*0.25)
- client:SetHealth(healthset)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement