Race checkpoints
#1

Hello,
I've made this with a race creator but now i have this:
pawn Код:
if(RaceCheckpoint[playerid] == 0)
{
  SetPlayerRaceCheckpoint(playerid,0,481.657043,882.981445,-30.554603,696.122985,843.021057,-27.321964,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 1;
}
else if(RaceCheckpoint[playerid] == 1)
{
  SetPlayerRaceCheckpoint(playerid,0,696.122985,843.021057,-27.321964,686.160583,820.502746,-27.665763,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 2;
}
else if(RaceCheckpoint[playerid] == 2)
{
  SetPlayerRaceCheckpoint(playerid,0,686.160583,820.502746,-27.665763,514.805664,787.149719,-21.941188,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 3;
}
else if(RaceCheckpoint[playerid] == 3)
{
  SetPlayerRaceCheckpoint(playerid,0,514.805664,787.149719,-21.941188,727.670410,747.336547,-6.571335,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 4;
}
else if(RaceCheckpoint[playerid] == 4)
{
  SetPlayerRaceCheckpoint(playerid,0,727.670410,747.336547,-6.571335,809.594238,843.134521,9.786181,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 5;
}
else if(RaceCheckpoint[playerid] == 5)
{
  SetPlayerRaceCheckpoint(playerid,0,809.594238,843.134521,9.786181,781.369140,984.227111,28.959571,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 6;
}
else if(RaceCheckpoint[playerid] == 6)
{
  SetPlayerRaceCheckpoint(playerid,0,781.369140,984.227111,28.959571,601.885314,1053.070800,27.687320,3); /* Bone County */
  RaceCheckpoint[playerid] = 7;
}
else if(RaceCheckpoint[playerid] == 7)
{
  SetPlayerRaceCheckpoint(playerid,0,601.885314,1053.070800,27.687320,466.256805,1016.134033,30.385091,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 8;
}
else if(RaceCheckpoint[playerid] == 8)
{
  SetPlayerRaceCheckpoint(playerid,0,466.256805,1016.134033,30.385091,377.084655,984.400024,29.857624,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 9;
}
else if(RaceCheckpoint[playerid] == 9)
{
  SetPlayerRaceCheckpoint(playerid,0,377.084655,984.400024,29.857624,363.229156,860.883178,20.360023,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 10;
}
else if(RaceCheckpoint[playerid] == 10)
{
  SetPlayerRaceCheckpoint(playerid,0,363.229156,860.883178,20.360023,0.0,0.0,0.0,3); /* Hunter Quarry */
      RaceCheckpoint[playerid] = 11;
}
else if(RaceCheckpoint[playerid] == 11)
{
        GivePlayerMoney(playerid, 1000);
    SendClientMessage(playerid,COLOR_YELLOW,"You have earned $1000");
}
but where do i have to place it in my script?

thanks
Reply
#2

Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
if(RaceCheckpoint[playerid] == 0)
{
  SetPlayerRaceCheckpoint(playerid,0,481.657043,882.981445,-30.554603,696.122985,843.021057,-27.321964,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 1;
}
else if(RaceCheckpoint[playerid] == 1)
{
  SetPlayerRaceCheckpoint(playerid,0,696.122985,843.021057,-27.321964,686.160583,820.502746,-27.665763,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 2;
}
else if(RaceCheckpoint[playerid] == 2)
{
  SetPlayerRaceCheckpoint(playerid,0,686.160583,820.502746,-27.665763,514.805664,787.149719,-21.941188,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 3;
}
else if(RaceCheckpoint[playerid] == 3)
{
  SetPlayerRaceCheckpoint(playerid,0,514.805664,787.149719,-21.941188,727.670410,747.336547,-6.571335,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 4;
}
else if(RaceCheckpoint[playerid] == 4)
{
  SetPlayerRaceCheckpoint(playerid,0,727.670410,747.336547,-6.571335,809.594238,843.134521,9.786181,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 5;
}
else if(RaceCheckpoint[playerid] == 5)
{
  SetPlayerRaceCheckpoint(playerid,0,809.594238,843.134521,9.786181,781.369140,984.227111,28.959571,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 6;
}
else if(RaceCheckpoint[playerid] == 6)
{
  SetPlayerRaceCheckpoint(playerid,0,781.369140,984.227111,28.959571,601.885314,1053.070800,27.687320,3); /* Bone County */
  RaceCheckpoint[playerid] = 7;
}
else if(RaceCheckpoint[playerid] == 7)
{
  SetPlayerRaceCheckpoint(playerid,0,601.885314,1053.070800,27.687320,466.256805,1016.134033,30.385091,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 8;
}
else if(RaceCheckpoint[playerid] == 8)
{
  SetPlayerRaceCheckpoint(playerid,0,466.256805,1016.134033,30.385091,377.084655,984.400024,29.857624,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 9;
}
else if(RaceCheckpoint[playerid] == 9)
{
  SetPlayerRaceCheckpoint(playerid,0,377.084655,984.400024,29.857624,363.229156,860.883178,20.360023,3); /* Hunter Quarry */
  RaceCheckpoint[playerid] = 10;
}
else if(RaceCheckpoint[playerid] == 10)
{
  SetPlayerRaceCheckpoint(playerid,0,363.229156,860.883178,20.360023,0.0,0.0,0.0,3); /* Hunter Quarry */
      RaceCheckpoint[playerid] = 11;
}
else if(RaceCheckpoint[playerid] == 11)
{
        GivePlayerMoney(playerid, 1000);
    SendClientMessage(playerid,COLOR_YELLOW,"You have earned $1000");
}
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{


	return 1;
}

#else



#endif
copy those in ur pawno file
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)