21.01.2008, 11:39
Checkpoint Streamer
Update 1.1 - > 1.1.1fixed: 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.