27.08.2009, 12:45
ICPM - Invisible CheckPoint Manager -
By Epsilon
By Epsilon
Intro:
When I wrote a tutorial for the hungarian scripters about the PlayerToPoint I called this function Invisible Checkpoint. Think a little bit about it. It was true a bit or not?
So i got this idea from my said expression, and I made this -useful?- include
Info:
This is an include what you can use if you want to make invisible checkpoints. This useful for house system's, teleport points and any other familiar ideas.
Functions:
CreateICp(x,y,z,siz);
IsValidICp(icp);
GetFreeICpSlot();
DestroyICp(icpid);
IsPlayerInAnyICp(pid);
GetPlayerICp(pid);
IsPlayerInICp(pid,icpid);
ToggleICpsForPlayer(playerid,bool: itoggle);
ToggleICpsForAll(bool: itoggle);
Callbacks:
OnPlayerEnterInvisibleCP(playerid,icpid)
OnPlayerLeaveInvisibleCP(playerid,icpid)
Warning:
[b]
- You can add things for the 2 callbacks
- The last 2 function will not work in an other function so u should add it to the end of ur script
- You must not edit,copy this include without my permission!
- To escape some bug you should not make a icp to the 0,0,0 coords or with 0 size.
- Default the system isn't active for the player's so you have to active it (ToggleICpsForPlayer).
f.e. at connect
- If you add more Invisible checkpoints than 500 change it in the include at line 5
Download:
First version (for less i.checkpoints): http://solidfiles.com/d/BZ75
Second version (for many i.checkpoints): http://solidfiles.com/d/Q378
Newest release: http://solidfiles.com/d/OOeP
Install
To install my include follow the given points!
- Download the include
- Put the downloaded file to /pawno/include directory of our server
- Open our filterscript/gamemode
- Put the #include icpm or #include icpmv2 (according to the version, you use) line under #include <a_samp>
- If no #include <a_samp> line add it and check the previous point
- Make invisible checkpoint by using the new functions
Example
eMines filterscript: http://forum.sa-mp.com/index.php?topic=138419.0
Note
Sorry for my bad english, and no mirrors pls!
PS: Thank you for the 166 downloads at the older versions!
Epsilon