09.03.2017, 21:02
Код:
CMD:enterhouse(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xE30000FF, "[ERROR] You must be on foot to enter the house!"); if(IsPlayerInRangeOfPoint(playerid, 45, 2007.29663, 1226.52783, 10.66455)) { SetPlayerPos(playerid, 2049.0613, 941.1595, -2.0587); } else { SendClientMessage(playerid, 0xE30000FF, "[ERROR] You are not near the house door!"); } return 1; }