Raised This Month: $ Target: $400
 0% 

HELPME setting a key 4 any cmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-21-2014 , 06:25   Re: HELPME setting a key 4 any cmd
Reply With Quote #5

Quote:
Originally Posted by Viveks326 View Post
I wanna ask if for instance i have to set a key for a command like sentry_build so hw can i do so ?
You can't choose a key as such, you can choose a command that is sent to the server.

Quote:
Originally Posted by DavidJr View Post
With +Use button?

PHP Code:
public client_PreThink(iIndex)
{
       new 
iButton get_user_button(iIndex);
       
       if (
iButton == IN_USEclient_cmd(iIndex"sentry_build");

A poor method. Also in most cases bitwise ops should be & not == , because your checking for a certain key press, not that key by alone ( with no others present ).

Quote:
Originally Posted by baws View Post
client_cmd don't work anymore i think.
It still works.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 06:01.


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