Issue with checking if the person is on a boat.
#2

- || > 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.


Код:
	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.");
Reply


Messages In This Thread
Issue with checking if the person is on a boat. - by Dokins - 13.05.2015, 17:01
Re: Issue with checking if the person is on a boat. - by Evocator - 13.05.2015, 17:05
Re: Issue with checking if the person is on a boat. - by Yashas - 13.05.2015, 17:06
Re: Issue with checking if the person is on a boat. - by Dokins - 13.05.2015, 17:07

Forum Jump:


Users browsing this thread: 2 Guest(s)