Hi there.
I am sick and tired of people keep using my name in my server, so I decided to try and make a small plugin witch just checks the users name and authid and see if it is really me who is using the name Jelle.
But I am not sure how to do this.
I get the following error:
Code:
Error: Undefined symbol "Jelle" on line 19
Warning: Tag mismatch on line 25
Error: Expected token: ")", but found ":" on line 25
How do I set it so Jelle is the name it checks?
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLAYERNAME Jelle
#define AUTHID STEAM_0:1:123456789
public plugin_init()
{
register_plugin("Anti Fake Admin", "1.0", "Jelle")
}
public client_putinserver(id)
{
new PlayerName[32]
get_user_name(id, PlayerName, 31)
if ( PlayerName[id] != PLAYERNAME ) return
new authID[32]
get_user_authid(id, authID, 31)
if ( authID[id] != AUTHID )
{
server_cmd("kick %s You are not an admin and must therefor not use this name")
}
}
Thanks in advance.
EDIT: Just realized that they can join with the name "Hello" and change their name to Jelle once they are connected without anything happens.
So... Next question. How do I keep track of who is changing their names?
__________________