SA-MP Forums Archive
[Include] [INC] LCS 1.1.1 [REL: 6 Aug 2008]| Checkpoint Streamer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] LCS 1.1.1 [REL: 6 Aug 2008]| Checkpoint Streamer (/showthread.php?tid=23120)

Pages: 1 2


[INC] LCS 1.1.1 [REL: 6 Aug 2008]| Checkpoint Streamer - [LDT]LuxurY - 21.01.2008

Checkpoint Streamer
Update 1.1 - > 1.1.1
fixed: dissapearing of checkpoint depends on distance
edit MAX_CHDIS if you want more distance (default: 50.0)
bonus: complitely indented code.

So, the number of checkpoint defined to 1024, but it can be changed by yourself. It can be unlimited. :P

So, functions:
LCS_Load(); //put in OnGameModeInit
LCS_SetPlayerStaticCheck(playerid,checkpointid);
LCS_RemovePlayerStaticCheck(playerid);
LCS_GetPlayerStaticCheck(playerid);
LCS_CreateCheckpoint(Float,Float:y,Float:z,Float ize);
LCS_IsValidCheckpoint(checkpointid);
LCS_DestroyCheckpoint(checkpointid);
LCS_GetCheckpointData(checkpointid,&Float,&Float :y,&Float:z,&Floatize);
LCS_GetClosestCheckpoint(playerid);
LCS_IsPlayerInCheckpoint(playerid,checkpointid);
LCS_SetCheckpointData(checkpointid,Float,Float:y ,Float:z,Floatize);
LCS_GetPlayerCheckpointIn(playerid);
LCS_IsPlayerInAnyCheckpoint(playerid);
LCS_IsAnyPlayerInCheckpoint(checkpointid);



Callbacks:
LCS_OnPlayerEnterCheckpoint(playerid,checkpointid) ;
LCS_OnPlayerLeaveCheckpoint(playerid,checkpointid) ;



Install:
1. Put LCS.inc in directory .../pawno/include/
2. Put #include <LCS> in your script (after #include <a_samp>)
3. Put LCS_Load(); in OnGameModeInit() or OnFilterScriptInit()

Download v.1.1.1:
Pastebin
GTAscript.ru
SendSpace.com
RapidShare.com

Download v.1.1:
GTAscript.ru
SendSpace.com
RapidShare.com


Download v.1.0:
GTAscript.ru
SendSpace.com
RapidShare.com

Report bugs if they exist.

Cheers, LuxurY.


Re: [INC] LCS [1.0] | Checkpoint Streamer - Jashugan - 21.01.2008

Quick question as I know nothing about checkpoint streamers - can you have more than one checkpoint at the same time using this?


Re: [INC] LCS [1.0] | Checkpoint Streamer - cmg4life - 21.01.2008

yes, the thing is, they appear on the map at the same time ?


Re: [INC] LCS [1.0] | Checkpoint Streamer - Grove - 21.01.2008

Nice one Luxury!


Re: [INC] LCS [1.0] | Checkpoint Streamer - Jashugan - 21.01.2008

So let me get this straight, using this I can have normal checkpoints (CreateCheckpoint) and an additional streaming checkpoint that wont destroy the first checkpoint?


Re: [INC] LCS [1.0] | Checkpoint Streamer - [LDT]LuxurY - 21.01.2008

Quote:
Originally Posted by Jashugan
So let me get this straight, using this I can have normal checkpoints (CreateCheckpoint) and an additional streaming checkpoint that wont destroy the first checkpoint?
you'd use only the streaming checkpoints. btw, other checkpoint must be deleted


Re: [INC] LCS [1.0] | Checkpoint Streamer - Zaka - 21.01.2008

Keep up the good work


Re: [INC] LCS [1.0] | Checkpoint Streamer - Jashugan - 21.01.2008

Quote:
Originally Posted by [LDT
LuxurY ]
Quote:
Originally Posted by Jashugan
So let me get this straight, using this I can have normal checkpoints (CreateCheckpoint) and an additional streaming checkpoint that wont destroy the first checkpoint?
you'd use only the streaming checkpoints. btw, other checkpoint must be deleted
This is useless for me then. Oh well.


Re: [INC] LCS [1.0] | Checkpoint Streamer - snipe69 - 21.01.2008

does this allow using more than 1 checkpoint?


Re: [INC] LCS [1.0] | Checkpoint Streamer - [LDT]LuxurY - 22.01.2008

Quote:
Originally Posted by [M
Snipe ]
does this allow using more than 1 checkpoint?
no. It's a limited amount. This include only changes the checkpoint by the distance


Re: [INC] LCS [1.0] | Checkpoint Streamer - Rafelder_GRF - 22.01.2008

Mabye you add this functions:

LCS_IsPlayerInCheckpoint(playerid, checkpointid)
LCS_IsPlayerInAnyCheckpoint(playerid)
LCS_IsAnyPlayerInCheckpoint(checkpointid)


The script is without the functions nice, too.


Re: [INC] LCS [1.0] | Checkpoint Streamer - [LDT]LuxurY - 22.01.2008

Quote:
Originally Posted by Rafelder_GRF
Mabye you add this functions:

LCS_IsPlayerInCheckpoint(playerid, checkpointid)
LCS_IsPlayerInAnyCheckpoint(playerid)
LCS_IsAnyPlayerInCheckpoint(checkpointid)


The script is without the functions nice, too.
ok =) added:
Quote:

LCS_IsPlayerInCheckpoint(playerid,checkpointid);
LCS_SetCheckpointData(checkpointid,Float,Float:y ,Float:z,Floatize);
LCS_GetPlayerCheckpointIn(playerid);
LCS_IsPlayerInAnyCheckpoint(playerid);
LCS_IsAnyPlayerInCheckpoint(checkpointid);




Re: [INC] LCS 1.1 [REL: 22 Jan 2008]| Checkpoint Streamer - snipe69 - 23.01.2008

and race checkpoints ?


Re: [INC] LCS 1.1 [REL: 22 Jan 2008]| Checkpoint Streamer - [LDT]LuxurY - 23.01.2008

Quote:
Originally Posted by [M
Snipe ]
and race checkpoints ?
not yet


Re: [INC] LCS 1.1 [REL: 22 Jan 2008]| Checkpoint Streamer - rawen360 - 06.02.2008

LOL isnt work !!!


Re: [INC] LCS 1.1 [REL: 22 Jan 2008]| Checkpoint Streamer - rawen360 - 06.02.2008

Good Job some problems with start but everything either its good
GOOD JOB



Re: [INC] LCS 1.1 [REL: 22 Jan 2008]| Checkpoint Streamer - [LDT]LuxurY - 06.02.2008

Quote:
Originally Posted by rawen360
Good Job some problems with start but everything either its good
GOOD JOB
thanks, but what problems?


Re: [INC] LCS 1.1 [REL: 22 Jan 2008]| Checkpoint Streamer - rawen360 - 07.02.2008

well when i do:
LCS_OnPlayerEnterCheckpoint(playerid, checkpointid

aint work its problem with checkpointid lol


Re: [INC] LCS 1.1 [REL: 22 Jan 2008]| Checkpoint Streamer - [LDT]LuxurY - 07.02.2008

Quote:
Originally Posted by rawen360
well when i do:
LCS_OnPlayerEnterCheckpoint(playerid, checkpointid

aint work its problem with checkpointid lol
LCS_OnPlayerEnterCheckpoint is a callback!
look in the example script. It works OK!


Re: [INC] LCS 1.1 [REL: 22 Jan 2008]| Checkpoint Streamer - Puffmac - 07.02.2008

Does this support distance spawning too? :S