SA-MP Forums Archive
[help] Car - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help] Car (/showthread.php?tid=65827)



[help] Car - tony_fitto - 16.02.2009

Hey i have some question i have an old rpg mod its noot good now i have build my huge GF/RP mod with help form here and ahtere place long time ago but now i have one question when i take a car in my GF the engine in the car start as always but when i exit the car the engine on the car turns off, but if i go to my old rpg mod and take a car the engine starts as always agen and i exit the car the engine is still on it will never turns off its no [FS] engine script i meen the orginal engine on the cars.
i wanna know if i can take that away i dont know what it is i need some help plzz.

why i want the engine still on its because the car lights is on if its night then i can see if the car is on or has been used help plzz


Re: [help] Car - whooper - 16.02.2009

what do you mean? like turn the real engine on and off and headlights?


Re: [help] Car - Nimphious - 16.02.2009

check your old rpg mod and go down to,

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}
And tell me what is there.


Re: [help] Car - tony_fitto - 16.02.2009

Quote:
Originally Posted by TeddyBear
check your old rpg mod and go down to,

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}
And tell me what is there.
there is nothing i can say it that but here it is

Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
	if (GetPlayerState(playerid) == 1)
	{
		return 1;
	}
	if(gGas[playerid] == 1)
	{
	  GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3);
	}
	return 1;
}



Re: [help] Car - Nimphious - 16.02.2009

ok,

what does

pawn Код:
if(gGas[playerid] == 1)
do?


Re: [help] Car - tony_fitto - 16.02.2009

Quote:
Originally Posted by TeddyBear
ok,

what does

pawn Код:
if(gGas[playerid] == 1)
do?
thats the fuel system


Re: [help] Car - tony_fitto - 17.02.2009

^^