Jump to content

Question

Posted

cum pot face , ca atunci cand te urci intrun vehicul sa fie motorul oprit... si cand aplici /engine sa porneasca :) [ cu /startengine si /stopengine leam pus in GM si merg ] ...

ma ajutati ?:D

metallica-logo.jpg

9 answers to this question

Recommended Posts

Posted

http://wiki.sa-mp.com/wiki/ManualVehicleEngineAndLights

                                    +

http://wiki.sa-mp.com/wiki/SetVehicleParamsEx

Posted

Daca vrei sa faci sa apara un text cand intra in masina de ex la toate masinile...

Faci asa daca folosesti acest sistemul acesta...

adaugi asta

forward IsAllCars(carid); 
apoi
public IsAllCars(carid)
{
	if(carid >= 1 || carid <= 1000)
	{
		return 1;
	}
	return 0;
}
apoi la onplayerstatechange
		if(IsAllCars(newcar) ) 
		{
            new vid = GetPlayerVehicleID(playerid);
            if(EngineSTATE[newcar] == 1)
            {
                   GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                   SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
                   SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Atentie! Foloseste /stopengine pentru a opri masina.");
            }
            else
            {
                   GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                   SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
                   SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Atentie! Foloseste /startengine pentru a porni masina.");
            }
		}

 

Posted

public IsAllCars(carid)
{
	if(carid >= 1 || carid <= 1000)
	{
		return 1;
	}
	return 0;
}
Si el daca are peste 1000 de masini ce face ? Mai bine face asa:
public IsAllCars(carid)
{
	if(carid >= 1)
	{
		return 1;
	}
	return 0;
}

Sau ceva si mai simplu la OnPlayerEnterVehicle sa adauge

SendClientMessage(bla bla)

el a cerut sa primeasca playerul un text nu altele ... daca nu sa exprimat cum trebuie e treaba lui.

Guest
This topic is now closed to further replies.
  • 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.