EasyCP - Manage CheckPoints easily. -
Amagida - 27.01.2018
EasyCP - Manage CheckPoints easily!
FUNCTIONS
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);
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);
MAX LENGTH of function name wouldn't be more then
27 character.
EXAMPLE
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;
}
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
Re: EasyCP - Creating CheckPoints easily. -
Sellize - 27.01.2018
Great job, this can be very, very useful! Looking forward to any future updates
Re: EasyCP - Creating CheckPoints easily. -
Zeth - 27.01.2018
Great job, looking forward for race checkpoints support.
Re: EasyCP - Creating CheckPoints easily. -
Amagida - 27.01.2018
Quote:
Originally Posted by Sellize
Great job, this can be very, very useful! Looking forward to any future updates
|
Thanks! I'm waiting for updates too
Re: EasyCP - Creating CheckPoints easily. -
Amagida - 27.01.2018
UPDATED
- Now include uses streamer CreateDynamicCP.
- Now you can make as much CheckPoints you want, anyway callbacks are gonna work ok.
- Removed automatic destroy of checkpoint and added checkpointid in the callback function. So now it looks like this:
PHP код:
CheckPoint:TestCP2(playerid, checkpointid)
{
return 1;
}
- Added HideCheckPoint(playerid, checkpointid) function.
- Added ShowCheckPoint(playerid, checkpointid) function.
- Added DestroyCheckPoint(checkpointid) function.
- And main thing: Optimised code
Thanks
IstuntmanI and
BigETI for useful conversations.
Re: EasyCP - Creating CheckPoints easily. -
DarkBr - 27.01.2018
Good work.
Re: EasyCP - Creating CheckPoints easily. -
Pottus - 27.01.2018
How about some advanced features.
Код:
CreateCheckPointChain();
DestroyCheckPointChain(chainid);
AddCheckPointToChain(chainid, checkpointid);
StartCheckPointChain(playerid, chainid);
StopCheckPointChain(playerid);
forward OnPlayerEnterChainCP(playerid, chainid, checkpointid, chainpos);
Just some concept functions, automation of a chain of checkpoints is vital.
Re: EasyCP - Creating CheckPoints easily. -
Amagida - 27.01.2018
Quote:
Originally Posted by Pottus
How about some advanced features.
Код:
CreateCheckPointChain();
DestroyCheckPointChain(chainid);
AddCheckPointToChain(chainid, checkpointid);
StartCheckPointChain(playerid, chainid);
StopCheckPointChain(playerid);
forward OnPlayerEnterChainCP(playerid, chainid, checkpointid, chainpos);
Just some concept functions, automation of a chain of checkpoints is vital.
|
Will think about it. Thanks for suggestion.
Re: EasyCP - Creating CheckPoints easily. -
Mugala - 28.01.2018
Good work.
Re: EasyCP - Creating CheckPoints easily. -
BulletRaja - 28.01.2018
Great Job
Re: EasyCP - Creating CheckPoints easily. -
PepsiCola23 - 28.01.2018
i like this things that make work easier..
good job
Re: EasyCP - Creating CheckPoints easily. -
Amagida - 28.01.2018
UPDATED
- Now include supports Race CheckPoints.
- Now you can make Race CheckPoint using CreateRaceCheckPoint(playerid, fname[], type, Float: x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float: size, Float:visibledistance = STREAMER_RACE_CP_SD);
- You can response when player enters in race checkpoint like this:
PHP код:
RaceCheckPoint:TestRaceCP(playerid, checkpointid)
{
return 1;
}
- Added HideRaceCheckPoint(playerid, checkpointid) function.
- Added ShowRaceCheckPoint(playerid, checkpointid) function.
- Added DestroyRaceCheckPoint(checkpointid) function.
Re: EasyCP - Creating CheckPoints easily. -
RogueDrifter - 28.01.2018
Good job.
Re: EasyCP - Creating CheckPoints easily. -
Unkovic - 29.01.2018
Gj
Re: EasyCP - Creating CheckPoints easily. -
Amagida - 24.02.2018
Quote:
Originally Posted by Unkovic
Gj
|
Thanks!
Re: EasyCP - Creating CheckPoints easily. -
N3cromancer - 22.05.2018
Nice include bro, i only have one issue when i use
CreateCheckPoint but it not appear on the map, i have all includes required but nothing happen
Re: EasyCP - Creating CheckPoints easily. -
NewFreeroamStunt - 23.05.2018
Quote:
Originally Posted by N3cromancer
Nice include bro, i only have one issue when i use CreateCheckPoint but it not appear on the map, i have all includes required but nothing happen
|
already use ShowCheckPoint(playerid, checkpointid); ??