How to disable the option for key pressing
#4

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

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_YES))
    {
        // Functions here.
        SetPlayerPos(playerid, 0.0, 0.0, 0.0); // If pressed Y, teleport him here. for example.
    }
    return 1;
}
OnPlayerKeyStateChange(playerid, newstate, oldstate)

SA-MP Keys
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)