26.09.2013, 10:10
Quote:
pawn Code:
|
pawn Code:
#include <a_samp>
// some other includes..
native IsValidVehicle( vehicleid );
EDIT:
pawn Code:
stock IsPlayerInRangeOfVehicle(playerid, veh, Float: range)
{
if( !IsPlayerConnected( playerid ) ) return 0;
if( !IsValidVehicle( veh ) ) return 0;
new Float: x,
Float: y,
Float: z
;
GetVehiclePos( veh, x, y, z );
if( IsPlayerInRangeOfPoint( playerid, range, x, y, z ) ) return 1;
return 0;
}