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)