19.03.2015, 17:20
PHP код:
new Taxi;
public OnGameModeInit( )
{
// Agregar un taxi al juego con un tiempo de 60 segundos de reaparecer
Taxi = CreateVehicle(420, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60);
return 1;
}
new Float:pos[3], rango = 15;
GetVehiclePos(Taxi,pos[0],pos[1],pos[2]);
if(IsPlayerInRangeOfPoint(playerid,rango,pos[0],pos[1],pos[2])) printf("Esta cerca del vehiculo modelo # %i",GetVehicleModel(Taxi));
else print("No esta cerca de un taxi modelo 420");