[INC] Matraka's Checkpoint Streamer -
ashiuashiu - 05.12.2007
This is the first script that I release in this forum. This include can perform simple checkpoint handling functions.
Functions:
CPS_AddCheckpoint(Float:X,Float:Y,Float:Z,Float
i ze,Float
pawn_dist);
Creates a checkpoint, with size and spawn distance options. It also returns the checkpoint ID.
CPS_IsPlayerInCheckpoint(playerid,cpid);
Checks if a player is in a specific checkpoint.
CPS_IsPlayerInAnyCheckpoint(playerid,cpid);
Checks if a player is in any checkpoint handled by the streamer.
CPS_RemoveCheckpoint(cpid);
It removes a checkpoint by the ID.
CPS_GetPlayerCheckpoint(playerid);
Returns the ID of the actual checkpoint of a player
[
Download]
http://www.infernusgroup.com/cpstream.inc
Any doubts, please contact me on MSN:
msn_matraka@gtabrasil.net
(Sorry for bad english, I am brazilian)
EDIT: Bugs with CPS_IsPlayerInCheckpoint and CPS_IsPlayerInAnyCheckpoint corrected.
Re: [INC] Matraka's Checkpoint Streamer -
kc - 05.12.2007
nice!
Re: [INC] Matraka's Checkpoint Streamer -
Alejandro - 05.12.2007
nice. i will use it.
Re: [INC] Matraka's Checkpoint Streamer -
tanao - 05.12.2007
thanks matraka.. i love u^^
Re: [INC] Matraka's Checkpoint Streamer -
snipe69 - 05.12.2007
hey thnx i was looking for something like this
Re: [INC] Matraka's Checkpoint Streamer -
[MPA]JouisxP - 05.12.2007

Itґs most cool than all!
Very much, Mat!
Re: [INC] Matraka's Checkpoint Streamer -
Curynga - 05.12.2007
Lol Mat, thank you
Re: [INC] Matraka's Checkpoint Streamer -
Khaled - 05.12.2007
nice one keep up
Re: [INC] Matraka's Checkpoint Streamer -
Francis[French] - 06.12.2007
I got a problem... When I get near a checkpoint, it shows but... whenever the checkpoint spawns, I see the message which was supposed to appear when the player was IN the checkpoint...
My code:
pawn Code:
public CPCHECKER()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(CPS_IsPlayerInCheckpoint(i, test1))
{
SendClientMessage(i, COLOR_BLUE, "TEST1");
}
else if(CPS_IsPlayerInCheckpoint(i, test2))
{
SendClientMessage(i, COLOR_BLUE, "TEST2");
}
}
}
}
Re: [INC] Matraka's Checkpoint Streamer -
Francis[French] - 06.12.2007
Ohhh, and how can I fix this? Ф great Alex?
Re: [INC] Matraka's Checkpoint Streamer -
ashiuashiu - 06.12.2007
My bad... I'll fix this later...
But, you can do this in the callback OnPlayerEnterCheckpoint:
new cp = CPS_GetPlayerCheckpoint(playerid);
Re: [INC] Matraka's Checkpoint Streamer -
Francis[French] - 06.12.2007
GetPlayerCheckpoint will just check if the checkpoint is shown... I already tested it..
Re: [INC] Matraka's Checkpoint Streamer -
ashiuashiu - 06.12.2007
No... I tested and it returned the checkpoint ID
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
new tmp[256];
new cpid = CPS_GetPlayerCheckpoint(playerid);
format(tmp,256,"Vocк entrou no checkpoint %d",cpid);
SendClientMessage(playerid,COLOR_RED,tmp);
return 1;
}
Well, this is my script... I tested it with the LVDM gamemode.
Anyway, I reupped the include, you can download from the first post link.
Re: [INC] Matraka's Checkpoint Streamer -
Francis[French] - 06.12.2007
Ye, lol, stupid mistake by myself LOL
Re: [INC] Matraka's Checkpoint Streamer -
Francis[French] - 09.12.2007
True. Nicest one I found.
Re: [INC] Matraka's Checkpoint Streamer -
Mr Qtip - 09.12.2007
After I download where do put this at?
Re: [INC] Matraka's Checkpoint Streamer -
Abhishek - 09.12.2007
i think in 'pawno/includes'
and you will have to add '#include <cpstream>' to the top of your FS or GM.
Re: [INC] Matraka's Checkpoint Streamer -
Mr Qtip - 09.12.2007
thank you
Re: [INC] Matraka's Checkpoint Streamer -
[KaE]Shaddy - 10.12.2007
Nice!
:P
Re: [INC] Matraka's Checkpoint Streamer -
TDK - 10.12.2007
Sorry for bad english, I'm russian.
Well, [MPA]matraka_IDG(GTABR), pretty nice for the first time.

But I've seen better. There is at least one mistake in your script.
If you set the new checkpoint for player without disabling the previous one, the size will not change. For example, if in the callback OnPlayerEnterCheckpoint() I moved the player from one checkpoint to another (with using your script), the checkpoint's size will not change.
I think you know how to fix this.