[Include] [INC] LCS 1.1.1 [REL: 6 Aug 2008]| Checkpoint Streamer
#1

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.
Reply
#2

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

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

Nice one Luxury!
Reply
#5

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?
Reply
#6

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
Reply
#7

Keep up the good work
Reply
#8

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.
Reply
#9

does this allow using more than 1 checkpoint?
Reply
#10

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
Reply
#11

Mabye you add this functions:

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


The script is without the functions nice, too.
Reply
#12

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);

Reply
#13

and race checkpoints ?
Reply
#14

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

LOL isnt work !!!
Reply
#16

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

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

well when i do:
LCS_OnPlayerEnterCheckpoint(playerid, checkpointid

aint work its problem with checkpointid lol
Reply
#19

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!
Reply
#20

Does this support distance spawning too? :S
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)