Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem (
/showthread.php?tid=588991)
Problem -
Shayba - 14.09.2015
Can't understand how to do,please help.
I need when in the car, stays 15 liters of petrol,what would the driver get the message "In the car the gas needed to fuel"
With me + for the help
I do like that,but I do not what won't work.
PHP код:
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(caridi) != 481 || GetVehicleModel(caridi) != 509 || GetVehicleModel(caridi) != 510)
{
if(EngineState[playerid] == false)
if(Fuell[caridi] <= 15) return PlayerPlaySound(playerid, 30600, 0.0, 0.0, 0.0),SCM(playerid, COLOR_RED, "In the car running out of petrol,you need to refuel");//Here's how I'm doing
{
SCM(playerid,COLOR_GREEN, "{00AB06}ЧTo start the engine press {FC0303}'2'{00AB06} or type the command {FC0303}/en");
}
}
}
Waiting for help
(I'm Russian,and can write with mistakes,please ignore
)
Respuesta: Problem -
Zume - 14.09.2015
okay, you want the car when fuel is 15 and the engine is turned on, you show the driver a message?
PHP код:
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(caridi) != 481 || GetVehicleModel(caridi) != 509 || GetVehicleModel(caridi) != 510)
{
if(EngineState[playerid])
{
if(Fuell[caridi] > 15)
{
SCM(playerid,COLOR_GREEN, "{00AB06}ЧTo start the engine press {FC0303}'2'{00AB06} or type the command {FC0303}/en");
}
else{
PlayerPlaySound(playerid, 30600, 0.0, 0.0, 0.0);
SCM(playerid, COLOR_RED, "In the car running out of petrol,you need to refuel");
}
}
}
}
Re: Problem -
Shayba - 14.09.2015
Not working =(
Re: Problem -
Shayba - 14.09.2015
All handled himself,the subject is closed.