engine system
#1

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

anyone ?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)