Raised This Month: $51 Target: $400
 12% 

Client press TAB. Action.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RU_6uK
SourceMod Donor
Join Date: May 2010
Old 07-27-2010 , 15:39   Client press TAB. Action.
Reply With Quote #1

Hi.
How do some action with plugin when client press TAB button?
Plz, post example of code.
RU_6uK is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-27-2010 , 17:01   Re: Client press TAB. Action.
Reply With Quote #2

PHP Code:
public Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon
{
    if(
IsClientInGame(client) && buttons IN_SCORE)
    {
        
//ACTION
    
}
    return 
Plugin_Continue;

That should work, though I'm not 100% certain IN_SCORE is tab.
noodleboy347 is offline
RU_6uK
SourceMod Donor
Join Date: May 2010
Old 07-27-2010 , 17:23   Re: Client press TAB. Action.
Reply With Quote #3

Thanks, it work
RU_6uK is offline
Reply



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 12:36.


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