Raised This Month: $ Target: $400
 0% 

Kick player by chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
REDMX
New Member
Join Date: Oct 2011
Old 10-26-2011 , 14:03   Kick player by chat
Reply With Quote #1

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

Last edited by REDMX; 10-26-2011 at 14:04.
REDMX is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 10-26-2011 , 14:34   Re: Kick player by chat
Reply With Quote #2

That code has several errors, you should read some tutorials in here and in Code Snippets/Tutorials...
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 10-26-2011 , 14:38   Re: Kick player by chat
Reply With Quote #3

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
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
REDMX
New Member
Join Date: Oct 2011
Old 10-26-2011 , 15:03   Re: Kick player by chat
Reply With Quote #4

well thank you...
but could u give me a tutorial about arguments?...

i dont understand several things...
REDMX is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 10-26-2011 , 16:02   Re: Kick player by chat
Reply With Quote #5

http://wiki.alliedmods.net/Intro_to_AMX_Mod_X_Scripting
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
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 14:21.


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