Quote:
Originally Posted by ryansheilds
Change the or ("||") to and ("&&"):
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2103.9148, -103.5168, 2.2754) && !IsPlayerInVehicle(playerid, 451)) { SendClientMessage(playerid, COLOR_LIGHTRED, "Error{FFFFFF}: You are not at a fishing spot."); return 1; }
|
That would basically be saying "if you're not at the fishing spot AND the boat both at once, the command will display the error."