Raised This Month: $ Target: $400
 0% 

Hooking player actions (+reload, +attack2, etc)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wyd3x
Senior Member
Join Date: Sep 2012
Old 04-07-2014 , 14:57   Re: Hooking player actions (+reload, +attack2, etc)
Reply With Quote #6

My mistake. try that:
PHP Code:
public Action:OnPlayerRunCmd(client, &buttons)
{
    if (
buttons IN_ATTACK)
    {
        
// do that
    
} else if (buttons IN_ATTACK2) {
       
// do that


Quote:
Originally Posted by vman315 View Post
Why not do a case switch?
hmmm.. I don`t know XD
__________________
my plugins:
deleter v2.1 || [Store] Chat Color (1.2) - csgo || [Store] Award winner team
need a private plugin?
contact with me: PM, EMAIL: [email protected], discord: wyd3x #2096
private plugins: Hunger Games, [Store] Lottery, [Store] Gamble, VIP

Last edited by wyd3x; 04-07-2014 at 14:58.
wyd3x 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 13:10.


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