lrZ^ Engine Script & Moderntopia Roleplay
#1

Hi,
I'm using the Engine Script by lrZ^ aka LarzI on my GF (Moderntopia).
I have "inserted" the script on the GM, but, all players (with license or not), drive all vehicles from the game (Example: Police Car, Taxi, Ambulance, and others)

Anyone can help me? D:

Thanks by the way
Reply
#2

well i doubt anyone will simply post you the code here, since any publishments can have diffrent code, or is already motified before publishment.

and about the engine script, i never heard of it.

as for ur goal: inserting isn't enough, u must also start the events that come with it.
i cant give u any hint or clue or whatever since i dont have either of those scripts.

since most of those GF are unefficient and almost unmanageable because of the filesize and especially no comments in the script ( i might be wrong, since i dont have moderntopia , could all be fixed ), u must first find all needing excisting events that could interfere with the engine script.
because if its a engine script like i am suspecting it to be. it most likely uses freeze.
if there is a code that uses freeze whilst in car, it will interfere, and therefore will ban out all functions u "inserted".
Reply
#3

I think you should ask lrZ about that..
Reply
#4

I have "integrated" the whole script and the commands are working perfectly, i have only this problem, i'm trying to resolve this, but, i don't have any results on this moment.

This is the lines:

Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	//-------ENGINE SCRIPT
	new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
	new vehicle = GetPlayerVehicleID(playerid);
	if(newstate == PLAYER_STATE_DRIVER && (pveh == 522 || pveh == 581 || pveh == 462 || pveh == 521 || pveh == 463 || pveh == 461 || pveh == 448 || pveh == 471 || pveh == 468 || pveh == 586) && (pveh != 509 && pveh != 481 && pveh != 510))
	{
		SetTimerEx("Startup", 1, false, "ii", playerid, vehicle);
	}
	else if(newstate == PLAYER_STATE_DRIVER && (pveh != 509 && pveh != 481 && pveh != 510))
	{
		SetTimerEx("Startup", 1, false, "ii", playerid, vehicle);
	}
	if(newstate == PLAYER_STATE_DRIVER && engineOn[vehicle] == 1 && vehicleEntered[playerid][vehicle])
	{
		SendClientMessage(playerid, COLOR_GREEN, "O Veнculo estб ligado.");
	}
	//------ FIM ENGINE SCRIPT
...
if(newstate == PLAYER_STATE_DRIVER)
...
...
if(PlayerInfo[playerid][pCarLic] <= 1)
		{
			if(IsACopCar(newcar))
			{
				if(!IsACop(playerid))
				{
			 		RemovePlayerFromVehicle(playerid);
			 		TogglePlayerControllable(playerid, 1);
				}
			}
			else if(IsAnAmbulance(newcar))
			{
			  if(PlayerInfo[playerid][pJob] != 11)
				{
				  SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й um membro do SAMD!");
					RemovePlayerFromVehicle(playerid);
					TogglePlayerControllable(playerid, 1);
	//		  else { RemovePlayerFromVehicle(playerid); }
				}
			}
			else if(IsAPizzaBike(newcar))
			{
				if(PlayerInfo[playerid][pJob] != 21)
	  			{
	   			RemovePlayerFromVehicle(playerid);
	   			TogglePlayerControllable(playerid, 1);
	   			SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й entregador de pizza!");
	  			}
	 		}
	 		if(newcar==158||newcar==159||newcar==160||newcar==161||newcar==162||newcar==163)
	 		{
			  if(PlayerInfo[playerid][pJob] != 7 && PlayerInfo[playerid][pCarLic] <= 1)
				{
				  SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й mecвnico!");
				  RemovePlayerFromVehicle(playerid);
				  TogglePlayerControllable(playerid, 1);
				}
	//		  else { RemovePlayerFromVehicle(playerid); }
			}
This is a part only, i try if(engineOn[vehicleid] <=1 && PlayerInfo[playerid][pCarLic] <= 1) or if(engineOn[vehicleid] <=1 || PlayerInfo[playerid][pCarLic] <= 1) but i didn't have any results :/

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)