Enter and Exit help
#1

Okay, So i have it where i type /exit or /enter to enter a place. How would i change it where i press F or ENTER to enter a place and not type it to exit and enter?
Reply
#2

This should be correct:

pawn Код:
public OnPlayerStateChange(playerid, newkeys, oldkeys)
{
    if((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK))
    {
        //Whatever you would do for the /enter, check if they are in range, etcetra
    }
    return 1;
}
Reply
#3

Okay, Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)