SA-MP Forums Archive
Small checkpoints - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small checkpoints (/showthread.php?tid=186000)



Small checkpoints - Tee - 27.10.2010

I dont know if they are checkpoints but does anyone know where i can find the id or some sort of small checkpoint. Not the tall ones just normal sized ones.


Re: Small checkpoints - Kitten - 27.10.2010

Well first of all
Код:
(playerid,Float:x,Float:y,Float:z,Float:size)
playerid	The ID of the player to set the checkpoint of
Float:x	The X coordinate to place the checkpoint at
Float:y	The Y coordinate to place the checkpoint at
Float:z	The Z coordinate to place the checkpoint at
Float:size	The size of the checkpoint
Example for sa-mp wiki

pawn Код:
// In this example the player's checkpoint will be set when they spawn.
// On entering the checkpoint they will receive $1000 and the checkpoint will be disabled.
 
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0); // 3.0 is the not the smallest if u want it very little i suggest you get 1.0 but 3.0 is good Enough
    return 1;
}
 
public OnPlayerEnterCheckpoint(playerid)
{
    GivePlayerMoney(playerid, 1000);
    DisablePlayerCheckpoint(playerid);
    return 1;
}



Re: Small checkpoints - Tee - 27.10.2010

Well is this the tall checkpoints that go high in sky or the normal ones (half the height of a SAMP character) ?

Oh and are they always red?


Re: Small checkpoints - Kitten - 27.10.2010

this is the normal one

the tall ones are SetPlayerRaceCheckpoint those are the race checkpoints goes all the way in the air these are the normal ones i just give u


Re: Small checkpoints - Tee - 27.10.2010

Do i have to set the color to transparent (lol idk if it is a color) so that it will hide? Because i dont want players to see it on their radar.


Re: Small checkpoints - Kitten - 27.10.2010

Will You can disable it by
pawn Код:
DisablePlayerCheckpoint(playerid);
i dont think u can hide it in the map :P maybe theres a way i just dont know it sorry