How do I script something like this?
#5

Quote:
Originally Posted by aKnoxx
Посмотреть сообщение
If I use this, will the command still work even if the Enforcer is not close to you? (but is still the nearest vehicle)
if you use this code it will return message that "you are not close to enforcer" and stop execution. you can add your code below if player in near the Enforcer like this
Код:
CMD:swat(playerid, params[])
{
    if(GetVehicleModel(GetNearestVehicleToPlayer(playerid)) != Enforcer_Vehicle_Model) return SendClientMessage(playerid, -1, "you are not close to enforcer")
//your code if player is near the enforcer
    return 1;
}
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: 4 Guest(s)