SA-MP Forums Archive
[Include] Amirab's Streamed Checkpoint Manager (ASCPM.inc) v1.0 - 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] Amirab's Streamed Checkpoint Manager (ASCPM.inc) v1.0 (/showthread.php?tid=513587)



Amirab's Streamed Checkpoint Manager (ASCPM.inc) v1.0 - amirab - 17.05.2014

Hi all,
Today i wanna release my first INCLUDE

Why Did I Script This?!

I know all of you know () in samp we can't set id for checkpoints
because SA-MP didn't return id for SetPlayerCheckpoint
I had this problem before but now i don't i wanna share it whit begginers and newbie scripters
because it's good for them

Funcations:

PHP Code:
1. CreateCheckpoint(Float:cpxFloat:cpyFloat:cpzFloat:cpsize);
2. RemoveCheckpoint(cpid);
3. GetPlayerCheckpoint(playerid); 
1. CreateCheckpoint for create/make checkpoints easily and you can set an id Example :

PHP Code:
 CP_CityHall CreateCheckpoint(.............); 
---------------------------------------------------------------------------------------------------

2. RemoveCheckpoint to remove/destroy a checkpoint and not all checkpoints :

PHP Code:
 RemoveCheckpoint(CP_CityHall); 
---------------------------------------------------------------------------------------------------

3. GetPlayerCheckpoint this funcation gets the id of checkpoint that player is in it :

PHP Code:
public OnPlayerEnterCheckpoint(playerid)
{
     if(
GetPlayerCheckpoint(playerid) == CP_CityHall)
     {
         
// Codes
     
}
    return 
1;


idea for nex version: Add DrawDistance , Interior , VirtualWorld .

I Hope You Like It




Downloads:


SolidFiles.com

Upir.ir

PasteBin



if you like it : +REP