06.01.2014, 00:31
(
Последний раз редактировалось NaS; 06.01.2014 в 15:14.
)
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?
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
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.
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