Refueling vehicles
#1

Hello everyone.
I ask this question: How to make so that you can refuel vehicles when the engine is turned off?

That's the team I have to refuel:
Код HTML:
if(strcmp(cmd, "/fuel", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(IsAtGasStation(playerid))
			{
				ShowPlayerDialog(playerid,291,DIALOG_STYLE_LIST,"Äîáðî ïîæàëîâàòü íà çàïðàâêó!Âûáåðèòå òèï òîïëèâà:","Äèçåëü\nAÈ 90\nAÈ 93\nAÈ 95","Âûáðàòü","Îòìåíà");
			}
			else
			{
				SendClientMessage(playerid,COLOR_GREY,"[Ñåðâåð]: Âû íå íà ÀÇÑ!");
			}
		}
		return true;
	}
And this is how the gamemode I have shown the engine running:
Код HTML:
VehicleInfo[vid][pEngineStatus] = 1;
Thanks in advance!
Reply


Messages In This Thread
Refueling vehicles - by Vlad_Dredd - 16.10.2013, 07:45
Re: Refueling vehicles - by LeMoi - 16.10.2013, 09:43
Re: Refueling vehicles - by Vlad_Dredd - 16.10.2013, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)