#3

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_CROUCH))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, X, Y, Z))
                {
                     //do something, like gates?
                }
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Help - by WillyP - 25.07.2010, 13:59
Re: Help - by bartje01 - 25.07.2010, 14:02
Re: Help - by V1ceC1ty - 25.07.2010, 14:04
Re: Help - by WillyP - 25.07.2010, 14:05

Forum Jump:


Users browsing this thread: 2 Guest(s)