Jump to content
  • 0

pomoc Povolání


lekpri

Dotaz

Ahoj

Chtěl bych vytvořit povolání řidič autobusu. Povolání tak nějak zvládnu, ale chtěl bych aby se ta trasa co vytvořím opakoval dokola a dokola dokud hráč nevystoupí.

Proto Vás prosím o radu.

 

Děkuji

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

Třeba takhle

 

 

 

Proměna:

new mise[MAX_PLAYERS];

Definace

#define MP3 3
#define MP4 4
#define MP5 5
//Checkpoint

switch(mise[playerid]){
case MP3:
{
if(IsPlayerInCheckpoint(playerid))
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,78.5069,2004.6786,17.6406,1.0);
mise[playerid] = MP4;
}
case MP4:
{
if(IsPlayerInCheckpoint(playerid))
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,85.7207,1993.3427,17.8584,1.0);
mise[playerid] = MP5;
}
case MP5:
{
if(IsPlayerInCheckpoint(playerid))
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,85.2980,2002.9158,17.8190,1.0);
mise[playerid] = MP3;
}

Všimni si toho posledního Checkpoitu

mise[playerid] = MP3;

Přesměruje zpět na první Checkpoint

 

Do:

public OnPlayerExitVehicle(playerid, vehicleid){
mise[playerid] = 0;
return 1;
}
Link to comment
Share on other sites

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
×
×
  • Create New...