Checkpoint problem :$ - 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 problem :$ (
/showthread.php?tid=171521)
Checkpoint problem :$ -
bartje01 - 26.08.2010
Hey guys, I'm using Dubble-O-Streamer or somethnig like that.
I have this at ongamemodeinit
CreateCheckpoint(2182.9868,-1910.5543,14.0910,5,-1,100,true);
And this:
ShowCheckpointForAll(1,true);
At onplayerspawn. But on my map just nothing pops up.
pawn Код:
Functions:
* CreateCheckpoint(Float,Float:y,Float:z,interior, Floatize,Float:distance,showforall) - Create a checkpoint; if you you set interior to -1, the checkpoint will be shown in all interiors, else only in one. If you want create a checkpoint for all (ex: Moneyarea) set showforall to "true".
* DestroyCheckpoint(cpid) - Destroy a checkpoint.
* ShowCheckpointForAll(cpid,show) - Set show to "true" to show, "false" to hide the checkpoint.
* ShowCheckpointForPlayer(playerid,cpid,show) - Here the same like.
* DOCP_OnPlayerDisconnect(playerid) - Put this under OnPlayerDisconnect(playerid,reason) in your script.
* DOCP_OnGameModeInit() - Put this under OnGameModeInit in your script.
* CheckpointStreamer() - You should use this.
* GetDistanceToPoint(playerid,Float,Float:y,Float: z,&Float:dis) - Is used for streamer.
* GetClosestCheckpoint(playerid) - Also used for streamer.
* GetPlayerCheckpoint(playerid) - Useful for OnPlayerEnterCheckpoint.
* IsValidCheckpoint(cpid) - Used for different things.
Re: Checkpoint problem :$ -
Nonameman - 27.08.2010
1. You set the checkpoint's show distance to 100, when you tested it, were you enough close to it?
2. ShowCheckpointForAll(1,true); <-- The ID of the first checkpoint isn't 0?