11.05.2013, 12:09
(
Last edited by JaKe Elite; 11/05/2013 at 01:15 PM.
)
JakCP
Checkpoint Streamer
[Stream more than 1 checkpoint]
Checkpoint Streamer
[Stream more than 1 checkpoint]
Introduction
We all know that Incognito Streamer is the most used streamer around here.
But, Please people this is my first try so don't tell me "There is already streamer, Incognito Streamer"
Information:
You can create 50 checkpoints (config MAX_CP inside .inc to make it higher). It changes the checkpoint limit.
From 1 to MAX_CP (default is 50).
The more higher is MAX_CP is. The more longer time to take compile in the script that uses jakcp.inc.
So i suggest use only 100 up to 50. Not 1000!
If there is checkpoint nearby on your created checkpoint it will disappear since the nearby checkpoint needs to be loaded. In order to fix this. You just go to the checkpoint's range.
The half of the include is by [HiC]TheKiller's tutorial and most of it is scripted by me.
Callbacks
OnPlayerEnterCP - now supports with checkpointid - only once called when player enter on it. To make the checkpoint called again leave the CP and enter on it again.
OnPlayerLeaveCP - now supports with checkpointid - only once called when player enter on it. To make the checkpoint called again leave the CP and enter on it again.
OnPlayerCheckpointStreamIn - only once called when there is any checkpoint streamed in
OnPlayerCheckpointStreamOut - only once called when there is any checkpoint streamed out
Native
native CreatePlayerCheckpoint(playerid = -1, Float:cp_x, Float:cp_y, Float:cp_z, Float:cp_size, Float:cp_distance = 50.0);
Code:
- Creates a checkpoint like SetPlayerCheckpoint but with extended new 1 parameter! playerid = the player who will see the checkpoint. -1 for all. cp_x = x coordinates cp_y = y coordinates cp_z = z coordinates cp_size = size of checkpoint distance = distance where checkpoint can be seen returns the checkpointid
Code:
- Checks if the checkpointid inputted existed checkpointid - the checkpointid to check if it exist returns 1;
Code:
Counts all checkpoints. returns checkpoints (Total CP)
Code:
Deletes a checkpoint. Can be reshow again by doing ShowCP - checkpointid the checkpoint to hide or delete returns 1;
Code:
Toggles the player checkpoint - checkpointid to toggle returns 1;
Code:
- Checks if the inputted checkpointid is near to player checkpointid to check returns base if checkpointid is near.
Code:
- Checks if there is any checkpointid near to player returns base if there is any checkpoint near in playerid
Code:
- Gets the current checkpoint that player has streamed in
Code:
- Shows the hide checkpoint. Cannot called once in already shown checkpoint cpid - the checkpointid that will be shown
Downloadlink
http://www.solidfiles.com/d/9fdd7e295b/