11.08.2008, 07:22
CPS V0.3
by DragSta
_________________________________________________by DragSta
What is it?
CPS is a simple, easy to use, and efficient checkpoint streamer.
Need some help?
Check out This Wiki Entry made by Mike.
What can I do with it?
The native checkpoint limit in SA-MP is one, meaning only one can be displayed at a time. This streamer (like all the other streamers) will only display the checkpoint closest to the player.
How do I use it?
It is very simple:
1. Download the .inc file from one of the links below
2. Put the .inc file in your 'includes' directory.
3. Include it into your GM/FS with '#include <cps>'
4. Make the following additions to your script:
1. Add 'StartSystem();' to OnGameModeInit/OnFilterScriptInit.
2. Add 'ClearVars(playerid);' to OnPlayerConnect.
3. Add 'SyncCheckpoints(playerid);' to OnPlayerConnect.
4. Add 'CheckpointCheck(playerid);' to the TOP of OnPlayerEnterCheckpoint.
5. Add the following callback to your script:
pawn Code:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid)
{
return 1;
}
pawn Code:
CreateCheckpoint(playerid, Float:cpX, Float:cpY, Float:cpZ, Float:cpS, Float:viewdiss); //Will create a streamed checkpoint for the specified player. Use -1 as playerid for all players
DestroyCheckpoint(cPid); //Destroys a checkpoint.
TogglePlayerCheckpoint(playerid, cpid, bool:toggle); //Toggles a checkpoint on/off for a player.
http://sampnet.co.uk/files/cpsinc.zip
Mirrors not accepted.
Everything is quite self explanitory, but if theres something you cant figure out, dont hesitate to ask
If you find any bugs or have any suggestions, please post
Thanks,
DragSta