17.05.2014, 06:30
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:
1. CreateCheckpoint for create/make checkpoints easily and you can set an id Example :
---------------------------------------------------------------------------------------------------
2. RemoveCheckpoint to remove/destroy a checkpoint and not all checkpoints :
---------------------------------------------------------------------------------------------------
3. GetPlayerCheckpoint this funcation gets the id of checkpoint that player is in it :
idea for nex version: Add DrawDistance , Interior , VirtualWorld .
I Hope You Like It
Downloads:
SolidFiles.com
Upir.ir
PasteBin
if you like it : +REP
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:cpx, Float:cpy, Float:cpz, Float:cpsize);
2. RemoveCheckpoint(cpid);
3. GetPlayerCheckpoint(playerid);
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