Help Please
#1

Smail Help
i Want Know How To Make Checkpoints Race After i Take it Will Be 1 To 8 Checkpoints Showing But After i Take Checkpoints Race
this race checkpoints
PHP код:
 CreateDynamicRaceCP(-1447.2351,1502.1000,1.73663,5.0); 
PHP код:
CMD:rob(playeridparams[])
{
 
CreateDynamicCP(-1454.8569,1489.1010,7.10163.0, -1, -1, -1100.0); //1st
 
CreateDynamicCP(-1428.7382,1490.0945,7.10163.0, -1, -1, -1100.0); //2
 
CreateDynamicCP(-1402.7249,1486.1351,7.10163.0, -1, -1, -1100.0); // 3
 
CreateDynamicCP(-1382.1962,1480.3761,8.56253.0, -1, -1, -1100.0);// 4
 
CreateDynamicCP(-1376.8267,1492.7152,11.20313.0, -1, -1, -1100.0);// 5
 
CreateDynamicCP(-1390.7821,1483.1436,1.86723.0, -1, -1, -1100.0);// 6
 
CreateDynamicCP(-1434.3047,1483.0374,1.86723.0, -1, -1, -1100.0);//7
 
CreateDynamicCP(-1381.9700,1498.3158,8.56253.0, -1, -1, -1100.0);//8
 
return 1;

Help +Rep
Reply
#2

It doesn't work like that. You need to set one checkpoint at the time.
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
        if(IsPlayerInRangeOfPoint(playerid,10,Event1[0][0],Event1[0][1],Event1[0][2]))
        SetPlayerRaceCheckpoint(playerid,0,Event1[0][3],Event1[0][4],Event1[0][5],Event1[1][0],Event1[1][1],Event1[1][2],6);
       
        else if(IsPlayerInRangeOfPoint(playerid,10,Event1[0][3],Event1[0][4],Event1[0][5]))
        SetPlayerRaceCheckpoint(playerid,0,Event1[1][0],Event1[1][1],Event1[1][2],Event1[1][3],Event1[1][4],Event1[1][5],6);
   
        else if(IsPlayerInRangeOfPoint(playerid,10,Event1[1][0],Event1[1][1],Event1[1][2]))
        SetPlayerRaceCheckpoint(playerid,0,Event1[1][3],Event1[1][4],Event1[1][5],Event1[2][0],Event1[2][1],Event1[2][2],6);
...
       return 1;
}
Reply
#3

Quote:
Originally Posted by dominik523
Посмотреть сообщение
It doesn't work like that. You need to set one checkpoint at the time.
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
        if(IsPlayerInRangeOfPoint(playerid,10,Event1[0][0],Event1[0][1],Event1[0][2]))
        SetPlayerRaceCheckpoint(playerid,0,Event1[0][3],Event1[0][4],Event1[0][5],Event1[1][0],Event1[1][1],Event1[1][2],6);
       
        else if(IsPlayerInRangeOfPoint(playerid,10,Event1[0][3],Event1[0][4],Event1[0][5]))
        SetPlayerRaceCheckpoint(playerid,0,Event1[1][0],Event1[1][1],Event1[1][2],Event1[1][3],Event1[1][4],Event1[1][5],6);
   
        else if(IsPlayerInRangeOfPoint(playerid,10,Event1[1][0],Event1[1][1],Event1[1][2]))
        SetPlayerRaceCheckpoint(playerid,0,Event1[1][3],Event1[1][4],Event1[1][5],Event1[2][0],Event1[2][1],Event1[2][2],6);
...
       return 1;
}
sorry but i dont know any things
Reply
#4

Help Please
Reply
#5

Best way

https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint
Reply
#6

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
but i dont need it cuz i want only when player take the checkpoints race showing to him the 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8
that all
Reply
#7

help please
Reply
#8

help please
Reply
#9

pleas Help +rep
Reply
#10

please help
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)