[Include] [INC] CPS - CheckPoint Streamer by DragSta
#1

CPS V0.3
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;
}
5. You can now use the following functions:
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.
Download!
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
Reply


Messages In This Thread
[INC] CPS - CheckPoint Streamer by DragSta - by domidom - 11.08.2008, 07:22
Re: [INC] CPS - CheckPoint Streamer by DragSta - by kc - 11.08.2008, 12:13
Re: [INC] CPS - CheckPoint Streamer by DragSta - by OrlGiNS - 11.08.2008, 12:18
Re: [INC] CPS - CheckPoint Streamer by DragSta - by whooper - 11.08.2008, 14:33
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 11.08.2008, 14:43
Re: [INC] CPS - CheckPoint Streamer by DragSta - by almighty - 15.08.2008, 01:14
Re: [INC] CPS - CheckPoint Streamer by DragSta - by OrlGiNS - 15.08.2008, 09:49
Re: [INC] CPS - CheckPoint Streamer by DragSta - by almighty - 15.08.2008, 11:28
Re: [INC] CPS - CheckPoint Streamer by DragSta - by [Jay] - 15.08.2008, 20:59
Re: [INC] CPS - CheckPoint Streamer by DragSta - by Mikep - 12.09.2008, 18:52
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 12.09.2008, 19:35
Re: [INC] CPS - CheckPoint Streamer by DragSta - by Mikep - 12.09.2008, 20:12
Re: [INC] CPS - CheckPoint Streamer by DragSta - by OrlGiNS - 13.09.2008, 10:41
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 13.09.2008, 11:05
Re: [INC] CPS - CheckPoint Streamer by DragSta - by OrlGiNS - 13.09.2008, 12:21
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 14.09.2008, 00:49
Re: [INC] CPS - CheckPoint Streamer by DragSta - by GTAIV2008 - 08.10.2008, 14:14
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 18.10.2008, 14:38
Re: [INC] CPS - CheckPoint Streamer by DragSta - by [JD]dimitri - 24.10.2008, 18:21
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 24.10.2008, 18:30
Re: [INC] CPS - CheckPoint Streamer by DragSta - by BioFreeze - 20.11.2008, 17:15
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 20.11.2008, 21:32
Re: [INC] CPS - CheckPoint Streamer by DragSta - by Karlip - 20.11.2008, 21:54
Re: [INC] CPS - CheckPoint Streamer by DragSta - by BioFreeze - 21.11.2008, 15:00
Re: [INC] CPS - CheckPoint Streamer by DragSta - by Mikep - 21.11.2008, 15:19
Re: [INC] CPS - CheckPoint Streamer by DragSta - by BioFreeze - 21.11.2008, 15:59
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 22.11.2008, 12:24
Re: [INC] CPS - CheckPoint Streamer by DragSta - by BioFreeze - 22.11.2008, 15:13
Re: [INC] CPS - CheckPoint Streamer by DragSta - by BioFreeze - 04.12.2008, 18:01
Re: [INC] CPS - CheckPoint Streamer by DragSta - by domidom - 04.12.2008, 19:15
Re: [INC] CPS - CheckPoint Streamer by DragSta - by refshal - 08.07.2009, 20:09
Re: [INC] CPS - CheckPoint Streamer by DragSta - by Nero_3D - 08.07.2009, 20:20
Re: [INC] CPS - CheckPoint Streamer by DragSta - by refshal - 08.07.2009, 20:23
Re: [INC] CPS - CheckPoint Streamer by DragSta - by Klutty - 08.07.2009, 21:06
Re: [INC] CPS - CheckPoint Streamer by DragSta - by Klutty - 08.07.2009, 21:37
Re: [INC] CPS - CheckPoint Streamer by DragSta - by refshal - 09.07.2009, 09:13
Re: [INC] CPS - CheckPoint Streamer by DragSta - by Klutty - 09.07.2009, 09:22
Re: [INC] CPS - CheckPoint Streamer by DragSta - by refshal - 09.07.2009, 09:31
Re: [INC] CPS - CheckPoint Streamer by DragSta - by GTAIV2008 - 13.07.2009, 13:02
Re: [INC] CPS - CheckPoint Streamer by DragSta - by smoker08 - 13.07.2009, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)