[Include] Fake Checkpoints Include
#1

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?
  • You can create several checkpoints which are all visible at the same time, without needing to stream them.
  • Besides the radius, you can also change the height, color and even add a checkpoint name which appears above it.
  • A more decent look, from far you can only see the title of the checkpoint.
  • Original/Streamed Checkpoints will not work very good on custom objects. They appear too high or on the ground of the SA map. FakeCPs will always be exact where you want them to be.
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
Reply
#2

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

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

wow Nice btw can i change my Checkpoints to this?
Reply
#5

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

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

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

This is awesome! Nicely done!
Reply
#8

Looks good, unique.
Reply
#9

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

Oh yea, forgot to change that.. Updated
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)