How do I script something like this?
#4

Quote:
Originally Posted by iorp
Посмотреть сообщение
if Enforcer is nearest
Код:
CMD:swat(playerid, params[])
{
    if(GetVehicleModel(GetNearestVehicleToPlayer(playerid)) != Enforcer_Vehicle_Model) return SendClientMessage(playerid, -1, "you are not close to enforcer")
    return 1;
}
If I use this, will the command still work even if the Enforcer is not close to you? (but is still the nearest 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: 2 Guest(s)