AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Kick player by chat (https://forums.alliedmods.net/showthread.php?t=170568)

REDMX 10-26-2011 14:03

Kick player by chat
 
Hello guys,
I´m new here and i started programming in pawn a few weeks ago...
And now i'm trying to kick someone using the counter-strike chat..

Code:

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say .kick","KickPlayers",ADMIN_BAN );
   
   
}
public KickPlayers(id)
{
    new Arg1[24]
    read_argv(1, Arg1, 23)
    server_cmd("kick Arg1")
   
    return PLUGIN_HANDLED
}

Well, i cant put this working...

Can someone help a newbie..?

Ty and Sorry for my english

kotinha 10-26-2011 14:34

Re: Kick player by chat
 
That code has several errors, you should read some tutorials in here and in Code Snippets/Tutorials...

joshknifer 10-26-2011 14:38

Re: Kick player by chat
 
or look at both of these already made plugins:

http://forums.alliedmods.net/showthread.php?p=63636
http://forums.alliedmods.net/showthread.php?p=576387

REDMX 10-26-2011 15:03

Re: Kick player by chat
 
well thank you...
but could u give me a tutorial about arguments?...

i dont understand several things...

kotinha 10-26-2011 16:02

Re: Kick player by chat
 
http://wiki.alliedmods.net/Intro_to_AMX_Mod_X_Scripting


All times are GMT -4. The time now is 14:21.

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