27.04.2010, 14:22
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.
Click the wiki link to see further, how to check for a key
https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key
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;
}
https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key