їComo funciona el SetPlayerRaceCheckpoint?
#1

Mirando la wiki, esto es lo que dice

Код:
(playerid, type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size)
pawn Код:
public SetRaceCheckpoint(playerid,target,next)
{
     if(next == -1 && Airrace == 0)
         SetPlayerRaceCheckpoint(playerid,1,RaceCheckpoints[target][0],RaceCheckpoints[target][1],RaceCheckpoints[target][2],
                         0.0,0.0,0.0,CPsize);
     else if(next == -1 && Airrace == 1)
         SetPlayerRaceCheckpoint(playerid,4,RaceCheckpoints[target][0],RaceCheckpoints[target][1],RaceCheckpoints[target][2],
                         0.0,0.0,0.0,CPsize);
     else if(Airrace == 1)
         SetPlayerRaceCheckpoint(playerid,3,RaceCheckpoints[target][0],RaceCheckpoints[target][1],RaceCheckpoints[target][2],
                         RaceCheckpoints[next][0],RaceCheckpoints[next][1],RaceCheckpoints[next][2],CPsize);
     else
         SetPlayerRaceCheckpoint(playerid,0,RaceCheckpoints[target][0],RaceCheckpoints[target][1],RaceCheckpoints[target][2],
                         RaceCheckpoints[next][0],RaceCheckpoints[next][1],RaceCheckpoints[next][2],CPsize);
}
https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint




Como es que funciona esto? Si yo quiero pasar del checkpoint 1 al 2, y que en el 2 ocurra algo (ejemplo SetPlayerArmour), y que en el checkpoint 3 pase otra cosa (SetVehicleHealth) y despues repetir el checkpoint 1, 2 y 3 hasta formar 5 vueltas



Es todo un ejemplo que se me ocurrio ajaj
Reply
#2

Mбs abajo te aparecen las callback's relacionadas con el cуdigo...
Reply
#3

Mira este tutorial:
http://www.pawnoscripting.com/foro/v...?f=126&t=69351
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)