[INCLUDE] ICPM - Invisible CheckPoint Manager - by Epsilon
#1

ICPM - Invisible CheckPoint Manager -
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
Reply
#2

Not bad.
Reply
#3

Thanx

Updated! More in the main post!


Epsilon
Reply
#4

looks interesting!
Reply
#5

Thanks
Reply
#6

Nice work, dont think i've seen one of these before, keep it up

-©un3o.
Reply
#7

Thank you
Reply
#8


___________ New version____________
released
Check the main post!

Epsilon
Reply
#9

Not bad!
Reply
#10

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)