SA-MP Forums Archive
engine system - 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: engine system (/showthread.php?tid=590976)



engine system - Rafaeloo - 06.10.2015

i need a egnine system when i press shift to start engine , fs or cript to add on gamemode !


Re: engine system - Rafaeloo - 06.10.2015

anyone ?


Re: engine system - Affan - 06.10.2015

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(IsPlayerInAnyVehicle(playerid))
	{
		if(newkeys == KEY_JUMP) // Left Shift
		{
			new engine, lights, alarm, doors, bonnet, boot, objective;
    		        GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
			SetVehicleParamsEx(GetPlayerVehicleID, 1, lights, alarm, doors, bonnet, boot, objective);
			SendClientMessage(playerid, -1, "You have enabled the vehicle's engine!");
		}
	}
	return 1;
}
Test this out!