Raised This Month: $ Target: $400
 0% 

* How Kick a Player? *


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-17-2010 , 12:26   Re: * How Kick a Player? *
Reply With Quote #2

Code:
    if (!cmd_access(id, level, cid, 2))     {         client_print(id, print_chat, "%s You have no access to tha command.")         return PLUGIN_HANDLED     }

With this, if someone don't have the ACCESS and don't send the second parameter, the say is blocked, so that is wrong. You have to check first if the first paramter is ".kick"

Code:
    new args[32]     read_args(args, charsmax(args))     new target = cmd_target(id, args, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF)

With read_args( ) you are getting a line of all arguments (all the message said by player).

You can't use cmd_target( ) for that.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
 



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:48.


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