AMX One Name

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

AMX One Name

Post by greenie »

Purpose:
Allow players to only have one name in your server.
Functionality
On clients first connection to the server they see a warning saying that they are allowed only one name.
Then they have 60 seconds (1 minute) to change their name to what they want.
After that the only way to get your name changed is to have the admin change your name or allow you to change your name (both ways are accomplished through admin commands)

The warning only shows the first time they come in the server and only the first time. and will change their name to what is saved.

Commands:
amx_changename <nick , authid , #userid> <new name> - forces name change.
amx_allownamechange <nick , authid , #userid> - allows player to change their name.

say /name - Brings up an MOTD that explains how the plugin works.

Files needed:
amxmodx/configs/One_Name.htm -- The MOTD window that pops up.

Build Log:
1.0 - Initial attempt.
1.1 - Fixed errors in first attempt
1.2 - More bug fixes.
2.0 - Started plugin from scratch using a new method making plugin more stable
2.1 - Fixed small glitch in system.
2.2 - Added bot ignorance.
3.0 - Redo! - fixed bugs that appeared out of no where!!!

Required Modules:
The only required module is nVault. It is not enabled by default so you have to enable it.
What you need to do is:
1) Open up amxmodx/configs/modules.ini in any text editor.

2) Find the text that looks similar to:
Originally Posted by Before
; --------------------
; Binary Vault support
; --------------------
;nvault_amxx_i386.so
;nvault_amxx.dll
;nvault_amxx_amd64.so
Change it to look like:
Originally Posted by After
; --------------------
; Binary Vault support
; --------------------
nvault_amxx_i386.so
nvault_amxx.dll
nvault_amxx_amd64.so
3) Save the file. (Upload if a remote server)

4) Restart the server or change maps.

NOTE:
As a request someone asked for compatibilty to Brad's Restrict Names plugin. So that patched version is included in the zip but, only the .sma and .amxx are here. To get the other files visit here


All files are included in the .zip file along with a compiled version of the plugin.

get plugin
Post Reply

Return to “Server Management”