Jump to content
  • 0

intrebare


Flyer-Satyr

Question

9 answers to this question

Recommended Posts

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.");
            }
		}

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.