Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (physdescription) then
- info.name = player:Name()
- local frontnamesm = string.Explode("\r\n", file.Read("namegen/malenames.txt", "DATA"))
- local frontnamesf = string.Explode("\r\n", file.Read("namegen/femalenames.txt", "DATA"))
- local surnames = string.Explode("\r\n", file.Read("namegen/surnames.txt", "DATA"))
- local fname = ""
- local sname = ""
- if player:GetGender() == GENDER_MALE then
- fname = frontnamesm[math.random((#frontnamesm))]
- sname = surnames[math.random((#surnames))]
- else
- fname = frontnamesf[math.random((#frontnamesf))]
- sname = surnames[math.random((#surnames))]
- end
- return fname .. " " .. sname
- local name = MakeName()
- player:SetCharacterData("customclass", "Citizen")
- Clockwork.kernel:ModifyPhysDesc(physdescription)
- Clockwork.player:SetName(player, name)
- player:SetModel("models/Humans/Group01/male_02.mdl")
- else
- Clockwork.player:Notify("Invalid physical description.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement