[HELP]Engine
#1

Код:
public Startup(playerid, vehicleid)
{
	if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER || engineOn[vehicleid])
	{
	}
	else if(!engineOn[vehicleid] && !vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		SendClientMessage(playerid, COLOR_GRAD3, "Start Your Engine! (/start)");
		TogglePlayerControllable(playerid, false);
		vehicleEntered[playerid][vehicleid] = true;
	}
	else if(!engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		SendClientMessage(playerid, COLOR_GRAD3, "Start Your Engine! (/start)");
		TogglePlayerControllable(playerid, false);
	}
}
I want' that bikes should't have a engine
Reply
#2

Get their ID and just mark them as false.
Reply
#3

how to mark
Reply
#4

Код:
Quote:
public Startup(playerid, vehicleid) { if(vehicleid == 509 || vehicleid == 481 || vehicleid == 510) { return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER || engineOn[vehicleid]) { } else if(!engineOn[vehicleid] && !vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SendClientMessage(playerid, COLOR_GRAD3, "Start Your Engine! (/start)"); TogglePlayerControllable(playerid, false); vehicleEntered[playerid][vehicleid] = true; } else if(!engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SendClientMessage(playerid, COLOR_GRAD3, "Start Your Engine! (/start)"); TogglePlayerControllable(playerid, false); } }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)