checkpoint help - 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: checkpoint help (
/showthread.php?tid=150649)
checkpoint help -
Kar - 27.05.2010
How do I make a checkpoint? ;s
Re: checkpoint help -
shady91 - 27.05.2010
Quote:
Originally Posted by Kar
how do i make a checkpoint ffs
|
why not just ask nicely?
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Re: checkpoint help -
Kar - 27.05.2010
how do i make it enter a building kind sir..
Re: checkpoint help -
Kar - 28.05.2010
bump>^?
Re: checkpoint help -
w00tNew - 29.05.2010
OnPlayerEnterCheckpoint
you add when a player goes in the checkpoint
SetPlayerPostion(co-rd);
it will send them there will the co-rd is the location where they go example go in a server get the interior co-rd and add it where i said co-rd hope this helps
Re: checkpoint help -
Miguel - 29.05.2010
pawn Код:
SetPlayerCheckpoint(playerid, xxxx.xxxx, yyyy.yyyy, zzzz.zzzz, size.size); // remplace by your own x y z and size. This is checkpoint's position a size
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerInterior(playerid, interiorid); // change interiorid to the interior the player is going to be teleported.
SetPlayerPos(playerid, xxxx.xxxx, yyyy.yyyy, zzzz.zzzz); // same as first xyz, but this time xyz are pos player is going to be teleported.
SendClientMessage(playerid, COLOR, "* Congratulations, you found the hidden checkpoint, idiot!");
return 1;
}
Quote:
Originally Posted by Kar
how do i make it enter a building kind sir..
|
You can't either use buildings checkpoints (yellow big arrows) or set the animation while entering the door, sir.
Re: checkpoint help -
Kar - 29.05.2010
Thanks.