engine system
#3

Код:
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!
Reply


Messages In This Thread
engine system - by Rafaeloo - 06.10.2015, 11:27
Re: engine system - by Rafaeloo - 06.10.2015, 11:33
Re: engine system - by Affan - 06.10.2015, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)