Raised This Month: $ Target: $400
 0% 

How to bind an user key HELP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rastamanzp
Junior Member
Join Date: Mar 2010
Old 10-14-2010 , 22:15   How to bind an user key HELP
Reply With Quote #1

Hi, I wanted to see if I could help, I am creating a plugin and let me know as bind a key to a player counter to say one sentence: I leave as I'm the code:

# Include <amxmodx>
# Include <amxmisc>

# Define PLUGIN "AMXX Additional Commands"
# Define VERSION "0.1"
# Define AUTHOR "By Rastaman"


plugin_init public () {
register_plugin (PLUGIN, VERSION, AUTHOR)
register_concmd (amx_setip "," command_setip "ADMIN_LEVEL_C," amx_setip <nick>)
return PLUGIN_CONTINUE
}


public command_setip (id, level, cid) {
if (! cmd_access (id, level, cid, 2))
return PLUGIN_HANDLED

new arg [32]
read_argv (1, arg, 31)
new player = cmd_target (id, arg, 9)
if (! player) return PLUGIN_HANDLED
new name [32]
get_user_name (player, name, 31)
client_cmd (player, "bind x + jump")
client_cmd (player, "bind j say message") / * aka kiero put a bind to the key "j" But I say takes command Or for not making me say command separate the message, recognizes such as putting in cs console is: bind j "say message"
return PLUGIN_CONTINUE
}
So I wonder if anyone can give me a hand ... from already thank you very much
rastamanzp is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-14-2010 , 22:24   Re: How to bind an user key HELP
Reply With Quote #2

Changing user settings is not allowed here.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 10:22.


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