27.03.2015, 02:34
Код:
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; }