Raised This Month: $ Target: $400
 0% 

amx_kick help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-10-2010 , 02:32   Re: amx_kick help
Reply With Quote #4

Quote:
Originally Posted by nikhilgupta345 View Post
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?

P.S. I took some of the code from the admincmd.sma
You still have to use the user id to kick the person like it is done in admincmd.sma. To disallow a person from putting in a user id you would have to use a modified version of cmd_target().

Oh, and cmd_target() will already print a message if the player doesn't exist. You don't need to duplicate that.

Quote:
Originally Posted by Vechta View Post
Use Emp's Menu tutorial to find players in a menu its better..
OMG, don't convince people that menus are better, they are not. I never use menus when playing in game (other than voting for an option which is forced upon me lol).
__________________
fysiks is offline
 



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 07:08.


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