23.05.2015, 09:48
Are you looking for something like this?
This is an example where you have to enter vehicle's ID in the command. You could run a loop to find out is player standing near any shamal.
pawn Код:
CMD:gunstorage(playerid, params[])
{
new vehicleid
if(ssanf(params, "d", vehicleid))
return 1;
if(GetVehicleModel(vehicleid) != 519)
return 1;
new Float:Pos[3];
GetVehiclePos(vehicleid, Pos[0], Pos[1], Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 5.0, Pos[0], Pos[1], Pos[2]))
{
// do something here
}
return 1;
}

