PHP Code:
new Names[][] = { "p1", "p2", "p3","p4", "p5" }
new Reasons[][] = { "r1", "r2" , "r3", "r4", "r5" }
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_connect( id )
{
new name[ 32 ], i
get_user_name( id , name , 31)
for (i = 0; i < sizeof(Names); i++)
{
if (equali(name, Names[i]))
{
//for (i = 0; i < sizeof(Reasons); i++)
server_cmd("kick #%s ^"%s^"", Names[i], Reasons[i])
}
}
}
I don't care if it's by name or steamid, it doesnt work. The purpose of this plugin is to add names, and if the server detects that name it will kick the client, and send the kick reason. Of course, the kick reason will not be the same por user 2, 3, 4, and 5.
How can i make it work?