27.01.2018, 17:06
(
Последний раз редактировалось Amagida; 28.01.2018 в 23:51.
)
EasyCP - Manage CheckPoints easily!
FUNCTIONS
- Normal CheckPoints
PHP код:
CreateCheckPoint(playerid, const fname[], Float:x, Float:y, Float:z, Float:size, Float:visibledistance = STREAMER_CP_SD);
HideCheckPoint(playerid, checkpointid);
ShowCheckPoint(playerid, checkpointid);
DestroyCheckPoint(checkpointid);
- Race CheckPoints
PHP код:
CreateRaceCheckPoint(playerid, fname[], type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, Float:visibledistance = STREAMER_RACE_CP_SD);
HideRaceCheckPoint(playerid, checkpointid);
ShowRaceCheckPoint(playerid, checkpointid);
DestroyRaceCheckPoint(checkpointid);
EXAMPLE
- Norma CheckPoints
PHP код:
//FUNCTION
CreateCheckPoint(playerid, TestCP, 5.0, 5.0, 5.0, 2.0);
//Callback After, Player Enters in CheckPoint.
CheckPoint:TestCP(playerid, checkpointid)
{
SendClientMessage(playerid, -1, "Wow. You entered in the checkpoint.");
return 1;
}
- Race CheckPoints
PHP код:
CreateRaceCheckPoint(playerid, TestRaceCP, 1, 555, 555, 555, 555+5, 554, 553, 2.0);
RaceCheckPoint:TestRaceCP(playerid, checkpointid)
{
SendClientMessage(playerid, -1, "Wow you entered in the Race CP");
return 1;
}
DOWNLOAD
GitHub
USED THINGS
CREDITS
- Amagida (Medzvel) - Initial work - Medzvel
- Sellize - Idea - Sellize
- Emmet_ - Basic Things From easyDialogs.inc
- IstuntmanI - Useful conversation - IstuntmanI
- BigETI - Useful conversation - BigETI