[AJUDA] RaceCheckpoints
#4

aquele Fs que te passei estava bugado e, vou postar o tuto aqui do AndMeida10®, Reformulado:

pawn Код:
new Trocar[MAX_PLAYERS];
new Checks[2][3]={ // 2 й o numero de coordenadas e 3 de eixos( X,Y,Z )
{x,y,z},// bote virgula no pnultimo o ultimo nao vai virgula
{x,y,z}
} ;// fecha...
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp(cmdtext, "/bus", true)==0)
  {
    SetPlayerRaceCheckpoint(playerid, 0,      Checks[0][0],Checks[0][1],Checks[0][2],Checks[1][0],Checks[1][1],Checks[1][2], 10);// Lembrese , comeзa do 0.
    Trocar = 1;
  return 1;
}
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
switch(Trocar[playerid])
{
case 2:
{
DisablePlayerRaceCheckpoint(playerid);// SEMPRE BOTA ISTO PARA DESAPARECER O CHECK QUE PASSOU
SetPlayerRaceCheckpoint(playerid, 0,      Checks[1][0],Checks[1][1],Checks[1][2],0.0,0.0,0.0, 10);// Lembrese , comeзa do 0.
}}// FInal.
return 1;
}

Atenзгo: conte sempre do 0, '0,1,2 'ao invйs de 123, e no final vai duas chaves.
Код:
0-Normal, 1-final, 2-Nothing(Only the checkpoint without anything on it), 3-Air normal, 4-Air Final.
.
Acredito que seja assim, pq fiz no meu gm e funfou.

Obs: Oque Esta de verde na frase acima й o Correto.
Reply


Messages In This Thread
[AJUDA] RaceCheckpoints - by Falcon. - 10.08.2010, 22:51
Re: [AJUDA] RaceCheckpoints - by BiieL - 11.08.2010, 01:01
Re: [AJUDA] RaceCheckpoints - by Falcon. - 11.08.2010, 13:23
Re: [AJUDA] RaceCheckpoints - by zSuYaNw - 11.08.2010, 13:49
Re: [AJUDA] RaceCheckpoints - by Falcon. - 11.08.2010, 13:52
Re: [AJUDA] RaceCheckpoints - by zSuYaNw - 11.08.2010, 14:24
Re: [AJUDA] RaceCheckpoints - by Falcon. - 11.08.2010, 15:09
Re: [AJUDA] RaceCheckpoints - by zSuYaNw - 11.08.2010, 22:38
Re: [AJUDA] RaceCheckpoints - by Falcon. - 12.08.2010, 00:26
Re: [AJUDA] RaceCheckpoints - by ipsBruno - 12.08.2010, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)