Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. function SCHEMA:OnCharCreated(client, character)
  2. local inventory = character:getInv()
  3. local char = client:getChar()
  4. local endurance = char:getAttrib("endurance")
  5. local healthcalc = (15 + (17 * endurance))
  6. client:SetMaxHealth(healthcalc)
  7. client:SetHealth(healthcalc)
  8. if (inventory) then
  9. if (character:getFaction() == FACTION_BOS or character:getFaction() == FACTION_LEGION) then
  10. inventory:add("dogtags", 1, {
  11. name = character:getName(),
  12. id = math.random(10000, 99999)
  13. })
  14. elseif (character:getFaction() == FACTION_NCR) then
  15. inventory:add("dogtags", 1, {
  16. name = character:getName(),
  17. id = math.random(10000, 99999)
  18. })
  19. end
  20. end
  21. end
  22. function SCHEMA:PlayerSpawn(client)
  23. local char = client:getChar()
  24. local endurance = char:getAttrib("endurance")
  25. local healthcalc = (15 + (17 * endurance))
  26. local healthset=(healthcalc*0.25)
  27. client:SetHealth(healthset)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement