SA-MP Forums Archive
make engine off ON SHIFT on keyboard help me! - 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: make engine off ON SHIFT on keyboard help me! (/showthread.php?tid=129837)



make engine off ON SHIFT on keyboard help me! - buonggiorno - 23.02.2010

hi to all a have cmd for engine on

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  if(newkeys == KEY_CROUCH)
  {
	 if(IsPlayerInAnyVehicle(playerid))
	 {
		 if(IsPlayerConnected(playerid))
		 {
      new Vehicle = GetPlayerVehicleID(playerid);
      if(VehicleStarted[Vehicle] == 0)
  	    {
      SCM(playerid,0xFFFF00AA,"* Vozilo se pali");
	    GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~n~~g~Vozilo se pali",3000,3);
	    SetTimerEx("Starting",3500,0,"i",playerid);
		  }
	   }
    }
  }
}
but how to make for engine off

thx for help.. )


Re: make engine off ON SHIFT on keyboard help me! - Torran - 23.02.2010

See in my signature? You see engine system? Download that, Either use the code of there or use it as example


Re: make engine off ON SHIFT on keyboard help me! - buonggiorno - 23.02.2010

Quote:
Originally Posted by Torran
See in my signature? You see engine system? Download that, Either use the code of there or use it as example
Hey, i see that engine is start on SHIFT, but is there way that i dont need to type /engine off to stop engine, for example if i press C that engine is stop?


Re: make engine off ON SHIFT on keyboard help me! - Torran - 23.02.2010

Well i wouldnt recommend it, As if you press S it acts as shift also and ull just stop and freeze if u brake


Re: make engine off ON SHIFT on keyboard help me! - buonggiorno - 23.02.2010

Quote:
Originally Posted by Torran
Well i wouldnt recommend it, As if you press S it acts as shift also and ull just stop and freeze if u brake
I download you FS and i can start engine only with cmd /engine, when i press shift nothing happend..


Re: make engine off ON SHIFT on keyboard help me! - Torran - 23.02.2010

Weird, But anyway as i said i wouldnt recommend using shift to turn engine off,
Unless you want a REAL annoying engine system


Re: make engine off ON SHIFT on keyboard help me! - buonggiorno - 23.02.2010

Quote:
Originally Posted by Torran
Weird, But anyway as i said i wouldnt recommend using shift to turn engine off,
Unless you want a REAL annoying engine system
the way that my translator, traslate this on my laguage i have to say this: i press SHIFT and engine not start and not stop...maybe translator traslate this bed but shift dont work )


Re: make engine off ON SHIFT on keyboard help me! - Torran - 23.02.2010

I know i forgot i removed it because its too buggy to use to turn off your engine