• Can someone help me with a code to rp personal name ?
    17 replies, posted
Good people have a command on my server that allows people to change their rpname, I wanted to know how I can when the person changes her name, to be saved when she reenters her to be with the same name she put before, and that such data change if the person changes the name again.
bundão
....english? What im thinking your saying is, when a player changes its name, you want to save the new name plus the old name. So people cant change names to get out of trouble for example
no, i just wanna, save the names. if the people exit of the server, when hes enter again, hes name is the same.
you want to save it to a txt file?
YES
Are you asking for someone to actually give you code that does this, or for someone to point you in the right direction to you can do it yourself. https://github.com/FPtje/DarkRP/ DarkRP does this using sql databases. You can store their different names in a table and then refer to them on player join/leave.
yeah, but, how i do that ? I wanna to do it with myself, but i dont have any code or help to do this.
amazing thing to say.. You can use the Category to save everything on a txt file
oh, this is nice, but what is the command to save the name of the people, like: function Money_Save( ply ) local steamid = string.Replace(ply:SteamID(), ":", "-") print("Saving player "..ply:Nick().."'s stats..") file.Write("money/"..steamid..".txt", ply:Name().."\n"..ply:SteamID().."\n"..ply:GetNWInt("Money")) end but i wanna to make this with names, like the code i have send.
What??? It looks like you’re already doing that? I’m so confused...what are you even asking for? It looks like you have what you need.
no i dont, this is to save money, not to save the name, if I already have, pls warn me.
Why do you need to save money? Again, DarkRP does this automatically. You would use Player:Nick(), but I still don’t get why you need to.
i need to make a code, i gonna give you a expample: i have joined in this server of darkrp, i put my rpname in Jhoon. i build a house, and i exit the server, when i back, i wanna get the name jhoon again, without use the command /rpname again.
Yeah that happens automatically unless you’ve ruined something
oh ok I'll try to fix this, thank you all, i dont know how to clsoe a topic so... ===========================================TOPIC CLOSED==============================
Reinstall dark rp files bro
i will try it.
Sorry, you need to Log In to post a reply to this thread.