26.01.2011, 17:43
pawn Код:
public IsVehicleInRadius(playerid)
{
for(new c=0;c<MAX_VEHICLES;c++)
{
new Float:x, Float:y, Float:z;
GetVehiclePos(c,x,y,z);
if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
{
return SendClientMessage(playerid, COLOR_YELLOW, "You're at your car!");
}
else
{
return SendClientMessage(playerid, COLOR_YELLOW, "You're not at your car!");
}
}
return 1;
}