Getting the keys?
#6

You don't need to get the keys, since you already have them saved inside 'newkeys' and 'oldkeys'.
You need to compare the id (16) with 'newkeys', since they are the keys, which were pressed.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInRangeOfPoint(playerid,12,1955.3472,1019.2318,992.4688))
    {
        if(newkeys & 16)
        {
            SetPlayerPos(playerid,Out side casino);
        }
    }
    return 1;
}
Click the wiki link to see further, how to check for a key
https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key
Reply


Messages In This Thread
Getting the keys? - by Naxix - 27.04.2010, 12:08
Re: Getting the keys? - by Babul - 27.04.2010, 13:37
Re: Getting the keys? - by Naxix - 27.04.2010, 14:05
Re: Getting the keys? - by dice7 - 27.04.2010, 14:12
Re: Getting the keys? - by Naxix - 27.04.2010, 14:14
Re: Getting the keys? - by dice7 - 27.04.2010, 14:22

Forum Jump:


Users browsing this thread: 1 Guest(s)