Raised This Month: $ Target: $400
 0% 

Kick player because of name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 03-15-2010 , 17:29   Kick player because of name
Reply With Quote #1

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(idPlayerName31)
    
    if ( 
PlayerName[id] != PLAYERNAME ) return
    
    new 
authID[32]
    
    
get_user_authid(idauthID31)
    
    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?
__________________
No idea what to write here...

Last edited by Jelle; 03-15-2010 at 17:53.
Jelle is offline
Send a message via MSN to Jelle
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode