Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 04-07-2014 , 14:55   Re: Hooking player actions (+reload, +attack2, etc)
Reply With Quote #3

Quote:
Originally Posted by wyd3x View Post
try that :

PHP Code:
public Action:OnPlayerRunCmd(client, &buttons)
{
    if (
buttons & +attack2)
    {
        
// do that
    
} else if (buttons & -attack2) {
       
// do that

Why not do a case switch?
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary 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