26.08.2010, 20:45
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.
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.