Checkpoint - 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 (
/showthread.php?tid=225865)
Checkpoint -
Darien - 14.02.2011
Mayb possible to make checkpoint like when im reach the checkpoint in LS ill b teleported to LV, it is possible? If it possible i need the script example. And i want tht checkpoint marker not b visible on the radar and i can teleport with car.
Re: Checkpoint -
Stunt_Guy - 14.02.2011
Yea, It Is Possible To Do ... But You Want Someone Who Script And map This Ckeckpoint To You ?? .. man Don't Be lazy Just Go To MTA MAP EDITOR And Then Map It And Convert It .. Put It .. Script It .. JUST VERY EASY ..
it will took from ur whole time just : 10 Minutes ...
Re: Checkpoint -
_Tommy - 14.02.2011
No need any map editor to set up a simple checkpoint.
Use 'SetPlayerCheckPoint' -
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
'OnPlayerEnterCheckPoint' -
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
'SetPlayerPos(playerid, X, Y, Z)' - set the player's pos when he enters a created checkpoint
Good luck.
Re: Checkpoint -
Darien - 14.02.2011
i dont know how to script that
Re: Checkpoint -
Stunt_Guy - 14.02.2011
See ...
Код:
OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, X,Y,Z,Size);
return 1;
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
// bla bla bla
return 1;
}
Re: Checkpoint -
Darien - 14.02.2011
but i dont need the marker on the radar and when im drive on it ill be teleported without car
Re: Checkpoint -
Stunt_Guy - 14.02.2011
Now The CP :
Код:
CreateDynamicCP( //bla bla bla bla bla );
Код:
public OnPlayerEnterCheckpoint(playerid)
{
// bla bla bla bla
return 1;
}
Re: Checkpoint -
Darien - 14.02.2011
when i do this checkpoint not exist on map
Re: Checkpoint -
Stunt_Guy - 14.02.2011
You want do a checkpoint invisible and when u go on it .. it teleports u on somewhere u like ??
Re: Checkpoint -
Darien - 14.02.2011
i want tht, when i drive on tht circle ill teleport where i like