13.05.2015, 17:05
- || > OR:
The Player is not on the pier OR the player is not on a boat > send a message.
- && > AND:
The Player is not on the pier AND the player is not on a boat > send a message.
The Player is not on the pier OR the player is not on a boat > send a message.
- && > AND:
The Player is not on the pier AND the player is not on a boat > send a message.
Код:
new vehid = GetPlayerSurfingVehicleID(playerid); if (IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOUR_GREY, "You must get out of the vehicle to use this."); if ( !IsPlayerInRangeOfPoint(playerid, 5, -1624.0994,1423.9761,7.1734) && (!IsABoat(vehid) && vehid != INVALID_VEHICLE_ID) ) return SendClientMessage(playerid, COLOUR_GREY, "You must be on a boat or at a fishing pier to release your fish.");