[Ajuda] Radar nгo funfa ajuda
#7

Quote:
Originally Posted by TenhoUmaDuvida
Посмотреть сообщение
Mostre-o outro que vocк citou acima.
Esse aqui sу tem os 2 nessa pasta

Quote:

// Check if the player is not in any plane or helicopter (those cannot be caught by speedcamera's)
if (IsVehicleAirVehicle(vehicleid) == 0)
if (APlayerData[playerid][PlayerClass] != ClassPolice && APlayerData[playerid][PlayerClass] != ClassBombeiro) // Check if the player isn't speeding (cops won't get caught)
CheckPlayerSpeeding(playerid);
}
else
{
// If the player is not inside a vehicle, display an empty string (looks like the speedometer is gone)
//TextDrawSetString(APlayerData[playerid][SpeedometerText], " ");
TextDrawSetString(APlayerData[playerid][FuelGauge], " ");
TextDrawSetString(APlayerData[playerid][MotorDraw], " ");
TextDrawSetString(APlayerData[playerid][FarolDraw], " ");
TextDrawSetString(APlayerData[playerid][AtreladoDraw], " ");
TextDrawSetString(APlayerData[playerid][TextRadar], " ");
//TextDrawSetString(APlayerData[playerid][KmhV], " ");

// Set the speed of the player to 0
APlayerData[playerid][PlayerSpeed] = 0;
}
}



// This timer-function is called when a player picks up a refuelpickup
public RefuelVehicle(playerid)
{
new RefuelMsg[128];
// Get the vehicle-id of the player's vehicle
new vID = GetPlayerVehicleID(playerid);
// Calculate the amount of fuel that needs to be refuelled
new Amount = MaxFuel - AVehicleData[vID][Fuel];
// Calculate the price to refuel
new RefuelPrice = (Amount * RefuelMaxPrice) / MaxFuel;

// Check if the player has enough cash
if (APlayerData[playerid][PlayerMoney] >= RefuelPrice)
{
// Refuel the vehicle
AVehicleData[vID][Fuel] = MaxFuel;
// Withdraw the money from the player
RewardPlayer(playerid, -RefuelPrice, 0);
// Let the player know he refuelled his vehicle
format(RefuelMsg, 128, TXT_RefuelledVehicle, RefuelPrice);
SendClientMessage(playerid, 0xFFFFFFFF, RefuelMsg);
}
else
SendClientMessage(playerid, 0xFFFFFFFF, TXT_CannotRefuelVehicle);

// Allow the player to move again
TogglePlayerControllable(playerid, 1);

return 1;
}

Reply


Messages In This Thread
Radar nгo funfa ajuda - by iTnTxGabrielx - 25.02.2015, 19:02
Re: Radar nгo funfa ajuda - by Cidiei - 26.02.2015, 00:50
Re: Radar nгo funfa ajuda - by iTnTxGabrielx - 26.02.2015, 01:03
Re: Radar nгo funfa ajuda - by #Luca[S]. - 26.02.2015, 01:09
Re: Radar nгo funfa ajuda - by iTnTxGabrielx - 26.02.2015, 01:17
Re: Radar nгo funfa ajuda - by #Luca[S]. - 26.02.2015, 01:19
Re: Radar nгo funfa ajuda - by iTnTxGabrielx - 26.02.2015, 01:22
Re: Radar nгo funfa ajuda - by #Luca[S]. - 26.02.2015, 01:28
Re: Radar nгo funfa ajuda - by iTnTxGabrielx - 26.02.2015, 01:38
Re: Radar nгo funfa ajuda - by #Luca[S]. - 26.02.2015, 01:43

Forum Jump:


Users browsing this thread: 1 Guest(s)