Jump to content
  • 0

pomoc [ HELP ] Checkpointy


Lalan

Dotaz

Zdravím, mám tu menší problém z checkpointy.

 

Předposlední checkpoint mám nastavený na 0 jako normální a poslední na 1 jako finish, ale jakmile vjedu do před posledního ukáže se v chatu text Hráč ... vyhrál závod, a posledním už projed nemůže, nevíte jak to vyřešit?

 

	 case 10:
	{
		zavodinfernus[playerid] = 11;
		DisablePlayerRaceCheckpoint(playerid);
		SetPlayerRaceCheckpoint(playerid, 0,1757.3398,832.2371,9.7419, 1757.3398,832.2371,9.7419, 8); 
		}
        case 11:
	{
		zavodinfernus[playerid] = 12;
		DisablePlayerRaceCheckpoint(playerid);
		SetPlayerRaceCheckpoint(playerid, 1,2037.3159,832.3729,6.4615, 2037.3159,832.3729,6.4615, 8); 
		new string2[126];
		format(string2,sizeof(string2),"Hráč %s vyhrál závod infernus.",name);
		SendClientMessageToAll(0xFF000000,string2);

		}
   	}
}

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

Zkus to takto:

 

 

       case 10:
     {
        zavodinfernus[playerid] = 11;
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid, 0,1757.3398,832.2371,9.7419, 1757.3398,832.2371,9.7419, 8);
        }
        case 11:
     {
        zavodinfernus[playerid] = 12;
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid, 1,2037.3159,832.3729,6.4615, 2037.3159,832.3729,6.4615, 8);
	 }
  		case 12:
     {
        DisablePlayerRaceCheckpoint(playerid);
        new string2[126];
        format(string2,sizeof(string2),"Hráč %s vyhrál závod infernus.",name);
        SendClientMessageToAll(0xFF000000,string2);
        }
        }
  }

 

Link to comment
Share on other sites

  • 0
Zkus to takto:

 

 

       case 10:
     {
        zavodinfernus[playerid] = 11;
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid, 0,1757.3398,832.2371,9.7419, 1757.3398,832.2371,9.7419, 8);
        }
        case 11:
     {
        zavodinfernus[playerid] = 12;
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid, 1,2037.3159,832.3729,6.4615, 2037.3159,832.3729,6.4615, 8);
	 }
  		case 12:
     {
        DisablePlayerRaceCheckpoint(playerid);
        new string2[126];
        format(string2,sizeof(string2),"Hráč %s vyhrál závod infernus.",name);
        SendClientMessageToAll(0xFF000000,string2);
        }
        }
  }

Už to funguje tak jak má. Díky :)

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...