help! with car engine
#1

hello guys, i need your help i use Vortex RP Script and when i want to add a engine system(from LARP) i have this :

Код:
public Startup(playerid, vehicleid)
{
  new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
  new newcar = GetPlayerVehicleID(playerid);
	if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER || engineOn[vehicleid])
	{
		//I do nothing!
	}
	else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && !vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60)
	{
		SendClientMessage(playerid, COLOR_RED, "use ALT");
		TogglePlayerControllable(playerid,false);
		vehicleEntered[playerid][vehicleid] = true;
	}
	else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60)
	{
		SendClientMessage(playerid, COLOR_RED, "use ALT");
		TogglePlayerControllable(playerid,false);
	}
}
everythings ok no errors, when i go in-game it writes me "use ALT" but dosen't froze me... whats the prob.?
Reply
#2

Quote:

TogglePlayerControllable(playerid,false);

Try to toggle the false to 0
So this:
pawn Код:
TogglePlayerControllable(playerid,0);
Reply
#3

already tried i also tried to put this onstatechange but nothing maybe its Vortex script or something?
Reply
#4

come on guys, i really need to do this is there no other way? any at all?
Reply
#5

Sorry I dunno then. I gonna look at it. Can I get the WHOLE script?
Gvm
Reply
#6

Quote:
Originally Posted by Kwarde
Sorry I dunno then. I gonna look at it. Can I get the WHOLE script?
Gvm
its in this Forum, just look for Vortex Role-Play its Carlitos Edit.

It Work fine with the larp but in Carlitos edit it won't
Reply
#7

just checked that it won't work only in vehicles
Reply
#8

okay
Reply
#9

fixed it. Turns out my speedo meter f****d all up
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)