23.05.2015, 09:47
You can use like below in /gunstroage scripts :
PHP код:
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(GetVehicleModel(i) == 519)
{
new Float:shax, Float:shay, Float:shaz;
GetVehiclePos(i, shax, shay, shaz);
if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz))
{
// Any code that you wanna put.
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not near a Shamal!");
return 1;
}
}
}