Raised This Month: $ Target: $400
 0% 

Auto Ip Kick Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-22-2010 , 11:09   Re: Auto Ip Kick Plugin
Reply With Quote #1

Ok, so I edited it to make it kick by steamid. Now I put my steamid as the cvar, but whenever the round starts, I don't get kicked. I'm pretty sure It has to do something with the arrays firstid and authid, but I don't know what's wrong.

Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "AutoSteamID Kicker"
#define VERSION "1.0"
#define AUTHOR "H3avY Ra1n"


public plugin_init() {
    //Register Plugin
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_logevent("round_start", 2, "1=Round_Start")
    register_cvar("amx_firstid", "none")
    register_cvar("amx_secondid", "none")
    register_cvar("amx_thirdid", "none")
    register_cvar("amx_fourthid", "none")
}

public round_start(id)
{
new num
new players[32]
new firstid[32]
get_players(players, num)
for(new i; i<num; i++)
    {
        new player=players[i]
        new userid=get_user_userid(player)
        firstid=get_cvar_num("amx_firstid")
        new authid[32]
        get_user_authid(id, authid, 31)
        if(firstid[11]==authid[11] && firstid[12]==authid[12])
        {
            server_cmd("kick #%s", userid)
            
        }
}
            
}
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Reply



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 00:07.


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