How do I script something like this?
#9

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Код:
if(GetVehicleModel(GetNearestVehicleToPlayer(playerid)) != Enforcer_Vehicle_Model) return SendClientMessage(playerid, -1, "you are not close to enforcer"); //line 744
Hey there, where is the checking for distance to that vehicle? You are missing part of the puzzle here.
it will return the first nearest vehicle to player, but yes, in case of no vehicle around except Enforcer than also use distance condition for player to use the command only when player in range of vehicle.
Reply


Messages In This Thread
How do I script something like this? - by aKnoxx - 25.12.2018, 00:02
Re: How do I script something like this? - by aKnoxx - 25.12.2018, 00:51
Re: How do I script something like this? - by iorp - 25.12.2018, 01:05
Re: How do I script something like this? - by aKnoxx - 25.12.2018, 01:20
Re: How do I script something like this? - by iorp - 25.12.2018, 01:23
Re: How do I script something like this? - by aKnoxx - 25.12.2018, 01:38
Re: How do I script something like this? - by iorp - 25.12.2018, 01:41
Re: How do I script something like this? - by Pottus - 25.12.2018, 02:06
Re: How do I script something like this? - by iorp - 25.12.2018, 02:10
Re: How do I script something like this? - by aKnoxx - 25.12.2018, 02:29

Forum Jump:


Users browsing this thread: 3 Guest(s)