Advertisement
Guest User

Phantom

a guest
Jul 29th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. if (physdescription) then
  2. info.name = player:Name()
  3. local frontnamesm = string.Explode("\r\n", file.Read("namegen/malenames.txt", "DATA"))
  4. local frontnamesf = string.Explode("\r\n", file.Read("namegen/femalenames.txt", "DATA"))
  5. local surnames = string.Explode("\r\n", file.Read("namegen/surnames.txt", "DATA"))
  6. local fname = ""
  7. local sname = ""
  8. if player:GetGender() == GENDER_MALE then
  9. fname = frontnamesm[math.random((#frontnamesm))]
  10. sname = surnames[math.random((#surnames))]
  11. else
  12. fname = frontnamesf[math.random((#frontnamesf))]
  13. sname = surnames[math.random((#surnames))]
  14. end
  15. return fname .. " " .. sname
  16. local name = MakeName()
  17. player:SetCharacterData("customclass", "Citizen")
  18. Clockwork.kernel:ModifyPhysDesc(physdescription)
  19. Clockwork.player:SetName(player, name)
  20. player:SetModel("models/Humans/Group01/male_02.mdl")
  21. else
  22. Clockwork.player:Notify("Invalid physical description.")
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement