13.08.2013, 14:14
Hello, I want to use the "Enter" key to enter into a building, but it doesn't work, no errors, just not functioning
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED( KEY_SECONDARY_ATTACK ))
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1627.1270,-2248.2031,13.5049))
{
SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
SetPlayerInterior(playerid, 6);
}
}
return 1;
}

