Fishing works on fishing spot but not on reefer boat
#2

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;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)