View Single Post
Author Message
laenss
Member
Join Date: Feb 2017
Old 12-10-2017 , 06:04   i'd like to change that code to f key.
Reply With Quote #1

i'd like to change that code to f key.

it's hard to fix.

plz help!!

PHP Code:
public Action:OnPlayerRunCmd(Client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon)
{
    if(
buttons IN_SPEED)
    {
        if(
IsClientInGame(Client) && IsPlayerAlive(Client) && !KeyBuffer[Client])
        {
            if(
Special[Client][CT_LEADER] == 1)
            {
                
DisplayMenu_Leader(Client);
            }
            if(
Special[Client][TR_TRADER] == 1)
            {
                
DisplayMenu_Trader(Client);
            }
            if(
Special[Client][TR_TERROR] == 1)
            {
                
DisplayMenu_Boooom(Client);
            }
            
KeyBuffer[Client] = true;
        }
    }
    else
    {
        
KeyBuffer[Client] = false;
    }
    return 
Plugin_Continue;

laenss is offline