[Include] Amirab's Streamed Checkpoint Manager (ASCPM.inc) v1.0
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)