Jump to content

Avoid changing the username on the server?


Recommended Posts

Hello friends

Is there a script that prevents the name from being changed on the server ??
For example
,
when the player registered on the server, there is no longer the possibility of renaming, and even if it changes its name in the MTA settings, it will again be arranged with the same previous name that was selected at the time of registration.

Sorry. My English is poor
Please help me.

Link to comment
  • Scripting Moderators
19 minutes ago, Turk-oghlan said:

Hello friends

Is there a script that prevents the name from being changed on the server ??
For example
,
when the player registered on the server, there is no longer the possibility of renaming, and even if it changes its name in the MTA settings, it will again be arranged with the same previous name that was selected at the time of registration.

Sorry. My English is poor
Please help me.

https://wiki.multitheftauto.com/wiki/IsGuestAccount

/

https://wiki.multitheftauto.com/wiki/GetPlayerAccount

+

https://wiki.multitheftauto.com/wiki/OnPlayerChangeNick

This will work only if player will change nick, and it wouldn't check for the first nickname. So you would need to save nick, when player register, in database for example.

Edited by majqq
Link to comment
1 hour ago, majqq said:

https://wiki.multitheftauto.com/wiki/IsGuestAccount

/

https://wiki.multitheftauto.com/wiki/GetPlayerAccount

+

https://wiki.multitheftauto.com/wiki/OnPlayerChangeNick

This will work only if player will change nick, and it wouldn't check for the first nickname. So you would need to save nick, when player register, in database for example.

It only works when the player is present on the server.

I want this feature like the script to save money, weapons, skins and ... but with the difference that the player can not change the name.

Please help if you can

Thanku

Link to comment
  • Scripting Moderators
1 hour ago, Turk-oghlan said:

It only works when the player is present on the server.

I want this feature like the script to save money, weapons, skins and ... but with the difference that the player can not change the name.

Please help if you can

Thanku

Sorry, i can't help you. At the moment i don't know much about database functions.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...