20.04.2017, 16:26
You mean like this ?
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_SECONDARY_ATTACK)) { if(IsPlayerInRangeOfPoint(playerid, 2.0, Your coordinates)) //Is near doors for enter { SetPlayerPos(playerid, Your coordinates); //Set player position inside interior } if(IsPlayerInRangeOfPoint(playerid, 2.0, Your coordinates)) //Is near interior exit doors { SetPlayerPos(playerid, Your coordinates); //Set player position to enter doors } } return 1; }