amx_kick help
I'm a complete newb at scripting, and I can't get my amx_kick plugin to work. I don't want the user to be able to put the userid of the user or anything. Just part of the name. When I test it out, nothing happens, it doesn't kick. Can you tell me what's wrong with the code?
Code:
#include <amxmodx> |
Re: amx_kick help
Use Emp's Menu tutorial to find players in a menu its better..
|
Re: amx_kick help
Yes, but I would still like to know how find a player when im making concmd's. Without having to make a menu.
|
Re: amx_kick help
Quote:
Oh, and cmd_target() will already print a message if the player doesn't exist. You don't need to duplicate that. Quote:
|
Re: amx_kick help
And what exactly is the modified version of cmd_target?
|
Re: amx_kick help
Quote:
I think you can just remove this line for your own version of it: Code:
player = find_player("k",str_to_num(arg[1])); |
Re: amx_kick help
Why are each of the parameters different? Like it gets the authid twice and the name twice. Why is that? This is from admincmd.sma
Code:
get_user_authid(id, authid, 31) |
Re: amx_kick help
Quote:
|
Re: amx_kick help
Oh, I see it now. Thanks so much
|
| All times are GMT -4. The time now is 07:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.