Binding problems
#7

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_CROUCH) // checks to see if playerid pushed C
    {
        if(GetPlayerInterior(playerid) == 0) cmd_enter(playerid, ""); // is their interior equal to 0 (meaning they're outside)? If so, perform the /enter command
        else cmd_exit(playerid, ""); // otherwise, perform the /exit command
    }
    return 1;
}
I am using this now, thank you!
Reply


Messages In This Thread
Binding problems - by xXRealLegitXx - 16.04.2013, 22:20
Re: Binding problems - by Krx17 - 16.04.2013, 22:27
Re: Binding problems - by xXRealLegitXx - 16.04.2013, 22:51
Re: Binding problems - by Knappen - 17.04.2013, 00:12
Re: Binding problems - by Scenario - 17.04.2013, 00:16
Re: Binding problems - by Knappen - 17.04.2013, 00:28
Re: Binding problems - by xXRealLegitXx - 17.04.2013, 00:55
Re: Binding problems - by xXRealLegitXx - 17.04.2013, 00:59
Re: Binding problems - by Knappen - 17.04.2013, 01:36

Forum Jump:


Users browsing this thread: 1 Guest(s)