Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Cand incerc sa folosesc o bicicleta imi cer permis+nu pot pleca la drum cu ea, daca nu-i pornesc motorul.

Spuneti voi de ce coduri este nevoie sa arat!

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

La  public OnPlayerStateChange(playerid, newstate, oldstate)

cauta asta!   if(newstate == PLAYER_STATE_DRIVER)   si adauga asta!
      

if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 510 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 481 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 509)
	   	{
		    GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
			SetVehicleParamsEx(GetPlayerVehicleID(playerid),VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
			VehicleEngine[GetPlayerVehicleID(playerid)] = 1;
		}

 

Cauta la comanda ta de /engine si vezi cum e variabila ta de motor pornit/oprit si o inlocui in asta  VehicleEngine

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.