Anyone know how i can code this script or maybe anyone have a script for me that works this way:
Well, starting, i want a script that kicks users thats not have registered their steam_id at a mysql database. If the steam_id thats connect is in the database, the user will rename to the same as the username on the database.
Ex: If a user with the steam_id 123 connects and is not in the database, she/he will be kicked. If another user with the steam_id 456 connects and is in the database, the server will rename the users name to the same name as inserted in the same row as the steamid. Ex Freddy19. So if the user with steam_id 456 connects with the name n00b, it will automatically rename to Freddy19. And the user is unable to change his or her name.
The mysql-table will have 2 fields in use in this script: steam_id and username.