11.01.2012, 20:11
OK, I guess you could do something like;
pawn Код:
stock IsPlayerNearAnyVehicle( playerid, Float:distance )
{
new Float:x, Float:y, Float:z;
for( new i; i < MAX_VEHICLES; i ++ )
{
if ( GetVehicleModel( i ) )
{
GetVehiclePos( i, x, y, z );
if( GetPlayerDistanceFromPoint( playerid, x, y, z) <= distance )
return 1;
}
}
return 0;
}