OnPlayerKeyStateChange Open gate..
#1

Hey guys if sombody can help me i will be happy so this is the problem i want to do like this,to open my gate in the button like JUMP button so i hope you guys wiil help me thanks..
Reply
#2

Use OnPlayerKeyStateChange
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if( newkeys & KEY_JUMP && GetPlayerState( playerid ) == PLAYER_STATE_ONFOOT && IsPlayerInRangeOfPoint( playerid, 10.0, x, y, z )) //x y z = coords for the gate
    {
        // do stuff
    }
    return true;
}
Reply
#3

First of all tanku on your time, the second thing i was try what you said and it's shuting down all my pawn so you can help me tanks.
Reply
#4

Hey somebody can help me pleas it's not working but tanks man.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)