Raised This Month: $ Target: $400
 0% 

Plugin autokick players with the nick "Player"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sysgame
New Member
Join Date: Mar 2010
Old 08-12-2011 , 09:53   Plugin autokick players with the nick "Player"
Reply With Quote #1

Hi all,

I try to create a plugin that will automatically kick players with the nickname "player" or "Player" but I have a little problem with the script ... Actually I started with programming Amx ..

Can someone help me?

Here is the script :

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Player Auto kick"
#define VERSION "1.0"
#define AUTHOR "SysCorp"

new reason;

reason="Merci de changer de pseudo / Please change nickname";

public 
plugin_init()
{
    
register_concmd("amx_kick""cmdKick"ADMIN_KICK"<name or #userid> [reason]")
    
}

public 
auto_kick(id) {
    
    new 
name[32];
    
get_user_name(idname31)
    
    if(
name == "player")
        {
            
log_amx("Kick: ^"%s<%d><%s><>^" kick ^"%s<%d><%s><>^" (reason ^"%s^")"namereason)
            
server_cmd("kick #%d %s"namereason)
        }
    

sysgame is offline
 


Thread Tools
Display Modes

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 03:22.


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