SHARE
TWEET

Untitled

a guest Nov 12th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top