SA-MP Forums Archive
[Ajuda]checkpoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda]checkpoint (/showthread.php?tid=324190)



[Ajuda]checkpoint - Don_Speed - 08.03.2012

eu queria saber como eu crio um checkpoint rodamico tipo
o cara entra em um carro digita /work e vai no checkpoint rodamico para pegar passageiros ....


Re: [Ajuda]checkpoint - ApeloForum - 08.03.2012

Ireis editar aqui e jб dou um @EDIT

@EDIT
Aqui estб:
pawn Код:
//Topo do GM/FS:
new Float:RandomSpawnsCheck[][] =
{
    {1249.7258, -2047.9263, 59.9209}, // CheckPoint 1
    {1241.2084, -2057.6521, 60.0190}, // CheckPoint 2
    {1241.0105, -2052.6873, 59.9975}, // CheckPoint 3
    {718.4906, -1477.3024, 5.4688}, // CheckPoint 4
    {722.3772, -1477.2856, 5.4688} // CheckPoint 5
};

// No seu Comando:
new Random = random(sizeof(RandomSpawnsCheck));
SetPlayerCheckpoint(playerid, RandomSpawnsCheck[Random][0], RandomSpawnsCheck[Random][1], RandomSpawnsCheck[Random][2], 3.0);
Base:
https://sampforum.blast.hk/showthread.php?tid=162488
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint


Re: [Ajuda]checkpoint - Đeagle - 08.03.2012

Tente assim

PHP код:
new Float:Carro[4][3] =
{
     {
X,Y,Z},
     {
X,Y,Z},
     {
X,Y,Z},
     {
X,Y,Z}
}; 
No comando

PHP код:
new Work random(sizeof(Carro));
SetPlayerCheckpoint(playeridCarro[Work][0], Carro[Work][1], Carro[Work][2]);;();