10.09.2017, 15:03
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_YES) { if(IsPlayerInRangeOfPoint(playerid, 3.0, coordinates of the pickup)) { SetPlayerPos(playerid, coordinates of the place to you want the player to enter); } } //Now you have to find the exit coordinates if(newkeys & KEY_NO) { if(IsPlayerInRangeOfPoint(playerid, 3.0, coordinates of the exit place)) { SetPlayerPos(playerid, coordinates of the pickup again); } } return 1; }