SA-MP Forums Archive
[Include] Dynamic Checkpoints || Create Checkpoints in 1 line! || BETA - 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] Dynamic Checkpoints || Create Checkpoints in 1 line! || BETA (/showthread.php?tid=311103)



Checkpoint Creator - Create Checkpoints With 1 Line || PUBLIC BETA || R2 || Incorporated Gaming - Snowman12 - 15.01.2012

Welcome

I decided to create this for my server a little while ago however wasn't really motivated enough to do so. After a few hours of thinking today then after a rather pleasant conversation with RealCop228 I decided to make a version to release.

Information

In order to use this script you must have the following things downloaded:

Code:
Streamer.inc
a_samp.inc :P
YSI/y_hooks.inc
Features

I have created a few features that will come in handy when making a command; this being X, Y, Z and interior for when a player enters that checkpoint so no need to mess around with OnPlayerEnterDynamicCP. However you will need to create an checkpoint inside of the building also.

Natives

pawn Code:
native CreateDynamicCheckpoint(CheckpointName[28], Float: X, Float: Y, Float: Z, Float: Size, Float: EX, Float: EY, Float: EZ, Interior = -1,  EInterior = -1);

R2-
native DestroyDynamicCheckpoint(ID);
There is only 1 current native however I may make a destroy checkpoint also.

Download!

R1 - Old Download.
R2 - New Download.

I have chosen not to upload it to any sites but post it on pastebin.com instead if you have any problems then add:
pawn Code:
#pragma tabsize 0
At the top of the script.

Terms and conditions

1) No mirrors
2) No releasing this script without my permission
3) No moaning that if it doesn't work


The script is currently TESTED.

If someone would like to test and it and let me know it would be most kind. Also in need of a example command. It's 05:37 here so I really cannot be asked.

Enjoy!

Thanks to everyone involved and the creators of the following includes:

Streamer
YSI
SA:MP :P

Thank you !

Change Log

R1 - Released 15/2/2012
R2 - Added saving and loading system you will now need Y_INI.
R2 - Added DestroyDynamicCheckpoint

More updates coming soon.

Credit to Lorenc.


Re: Dynamic Checkpoints || Create Checkpoints in 1 line! || BETA - T0pAz - 15.01.2012

Looks good!


Re: Dynamic Checkpoints || Create Checkpoints in 1 line! || BETA - Snowman12 - 15.01.2012

Thanks bro


Re: Dynamic Checkpoints || Create Checkpoints in 1 line! || BETA - Snowman12 - 16.01.2012

UPDATED to R2


Re: Dynamic Checkpoints || Create Checkpoints in 1 line! || BETA - Snowman12 - 02.02.2012

bug fix