Jump to content
  • 0

Problema CheckPoint-uri


PhaRaoH.

Question

Problema intalnita (descriere):Am in gamemode job-ul Distribuitor de Marfa, insa acesta are un micut bug, oarecum...Te trimite cu masina la bizz-uri insa masina cum este prea mare nu  merge intrat la bizz-uri.Si doresc sa schimb locatia.Doresc sa scot chestia cu bizz-urile, si sa pun CP-uri in diferite locatii insa nu prea stiu cum...
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

forward TruckTim( playerid );
public TruckTim( playerid )
{
    SetCameraBehindPlayer(playerid);
	TogglePlayerControllable( playerid, 1 );
	ClearActorAnimations( actortruck  );
	ClearAnimations(playerid);
	for( new i; i< MAX_VEHICLES; i++ )
	{
	    if( vehicleVariables[ i ][ vVehicleJob ] == 3 )
	    {
	            if( IsVehicleEmpty( i ) )
	            {
	                SetVehicleToRespawn( i );
	                PutPlayerInVehicle( playerid, i, 0 );
	                CP[playerid] = 10253;
					new muie = 30 + random ( 15 );
					SetPlayerCheckpoint( playerid, businessVariables[muie][bExteriorPos][ 0 ], businessVariables[muie][bExteriorPos][ 1 ], businessVariables[muie][bExteriorPos][ 2 ], 3);
					SCM( playerid, COLOR_YELLOW, "SMS from Seful Depozitului ( private number ): Transporta marfa la destinatie.");
					return 1;
				}
	    }
	}
	return 1;
}


Imagini / Video (optional):
Ati incercat sa rezolvati singur?:

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Simplu.

Faci in felul urmator.

new Float:gJobCheckPoint[16][3] = {
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
{//Coordonatele},
};

//---

forward TruckTim( playerid );
public TruckTim( playerid )
{
    SetCameraBehindPlayer(playerid);
	TogglePlayerControllable( playerid, 1 );
	ClearActorAnimations( actortruck  );
	ClearAnimations(playerid);
	for( new i; i< MAX_VEHICLES; i++ )
	{
	    if( vehicleVariables[ i ][ vVehicleJob ] == 3 )
	    {
	            if( IsVehicleEmpty( i ) )
	            {
	                SetVehicleToRespawn( i );
	                PutPlayerInVehicle( playerid, i, 0 );
	                CP[playerid] = 10253;
					randomize = random(sizeof(gJobCheckPoint));
                    SetPlayerCheckpoint(playerid, gJobCheckPoint[randomize][0], gJobCheckPoint[randomize][1], gJobCheckPoint[randomize][2], 8.0);
					SCM( playerid, COLOR_YELLOW, "SMS from Seful Depozitului ( private number ): Transporta marfa la destinatie.");
					return 1;
				}
	    }
	}
	return 1;
}

 

Sper sa-ti mearga.

j3V8Znq.png

5IGyOAw.png

Link to comment
Share on other sites

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