Raised This Month: $ Target: $400
 0% 

Register "+command" from client?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mlar98
Junior Member
Join Date: Mar 2012
Location: Lima, Peru
Old 01-27-2014 , 05:11   Register "+command" from client?
Reply With Quote #1

Hello. I'm using a plugin for unlimited ammo, but I want the plugin to show a message when the client press the reload button. The command is "+reload" so I tried this:
PHP Code:
register_clcmd("+reload""ShowMessage")

public 
ShowMessage(id)
{
     
client_print(idprint_center"You don't need to recharge.")

But no success , also tried with register_concmd, the same. How can I do to register a command like "+command" ? Thank you in advance.
mlar98 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 00:39.


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