SA-MP Forums Archive
[Include] Fake Checkpoints Include - 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] Fake Checkpoints Include (/showthread.php?tid=485832)



Fake Checkpoints Include - NaS - 06.01.2014

Fake CPs v1.0 by NaS

Hi SA-MP community!

Today I decided to release my label-checkpoint system I did some time ago.

With this include, you can create checkpoints which are built with 3D Text Labels.

Why use this include instead of the original ones/streamed checkpoints?
How is it working?

It uses Incognito's Streamer Plugin for the 3D Text Labels and the areas.

How do I use this include?

Put the fakecps.inc file into your pawno/include folder and include it at the top of your script (#include <fakecps>). Make sure to include Incognito's Streamer Plugin before you include this file.

Put these callbacks into your script:

public OnPlayerEnterFakeCP(playerid, fakecpid)
public OnPlayerLeaveFakeCP(playerid, fakecp)


You can then create checkpoints through the function CreateFakeCP (detailed function info can be found withing the include file).

How do they look like?

Here are some examples (the yellow round platform is not included):






Which functions do I have to control the checkpoints?

Please take a look at the include file. They are all described there.

You can change the limit of checkpoints by defining "MAX_FAKECPS" before including this file like this:

#define MAX_FAKECPS 25

You can also change the text of the labels surrounding the checkpoint by defining "FCP_CP_TEXT" like this:

#define FCP_CP_TEXT "xXx"




I hope you find this useful an like it.
If I have more ideas what to extend/change I will update this include.

Current Version: 1.0

Download

Pastebin


Re: Fake Checkpoints Include - Pottus - 06.01.2014

I like the way the coding looks in this include, it's exactly how a dynamic system should be designed.


AW: Fake Checkpoints Include - NaS - 06.01.2014

Thanks Yeah it's pretty easy and effective this way.


Re: Fake Checkpoints Include - ToiletDuck - 06.01.2014

wow Nice btw can i change my Checkpoints to this?


AW: Fake Checkpoints Include - NaS - 06.01.2014

Sure you can, do you use streamed checkpoints (like CreateDynamicCheckpoint from the streamer plugin)?


Re: AW: Fake Checkpoints Include - ToiletDuck - 06.01.2014

Quote:
Originally Posted by NaS
Посмотреть сообщение
Sure you can, do you use streamed checkpoints (like CreateDynamicCheckpoint from the streamer plugin)?
nop, only objects i streamed..

i might use this


Re: Fake Checkpoints Include - Kar - 06.01.2014

the fuck lmao *pictures* reminds me of ps1 games.

This is awesome! Nicely done!


Re: Fake Checkpoints Include - iZN - 06.01.2014

Looks good, unique.


Re: Fake Checkpoints Include - xeeZ - 06.01.2014

May I ask why are you using #pragma unused instead of stock?


AW: Fake Checkpoints Include - NaS - 06.01.2014

Oh yea, forgot to change that.. Updated