SA-MP Forums Archive
i need .. - 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: i need .. (/showthread.php?tid=590744)



i need .. - Rafaeloo - 03.10.2015

i need a script to add on gm
when i press 2 to start engine !
the script can add under onplayerkeystatechange.
any help ?


Re: i need .. - dh240473 - 03.10.2015

Dude Check This Thread https://sampforum.blast.hk/showthread.php?tid=306311 I Think It Will Help You


Re: i need .. - Rafaeloo - 03.10.2015

i cant understand this tutorial :/ i need a script


Re: i need .. - Rafaeloo - 03.10.2015

help me please


Re: i need .. - AbyssMorgan - 03.10.2015

Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys){
	if(newkeys == KEY_LOOK_BEHIND){
		if(IsPlayerInAnyVehicle(playerid)){
			new engine, lights, alarm, doors, bonnet, boot, objective, vehid;
			vehid = GetPlayerVehicleID(playerid);
			GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
			SetVehicleParamsEx(vehid, (engine>0?0:1), lights, alarm, doors, bonnet, boot, objective);
			if((engine>0?0:1) == 1){
				//Msg engine ON
			} else {
				//Msg engine OFF
			}
		}
	}
	return 1;
}



Re: i need .. - d1git - 03.10.2015

Refer to this; https://sampforum.blast.hk/showthread.php?tid=447813.