I'm creating a Starwars Nutscript Server and I want new players who join the server to have random numbers within a faction so like TK-1617 or TK-9791 something like that. I'm not that good with coding and I'd love to learn sometime but if someone knows what the code is for like a base faction I can implement mine. I just don't know how to set it up so that players default with TK along with Random numbers from 0000 to 9999.
Thanks for anyone who helps - Nosrac
---------------------EDIT-----------------------
Heres the code so far that I've found and come up with:
function SCHEMA:OnCharCreated(client, character)
local name = character:getName()
if (character:getFaction == FACTION_RECRUIT) then
character:setName("Pvt."..name)
end
end
[highlight](User was banned for this post ("See DEVELOPER DISCUSSION for scripting help!" - NiandraLades))[/highlight]
Sorry, you need to Log In to post a reply to this thread.