SA-MP Forums Archive
[Include] EasyCP - Creating CheckPoints easily. - 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] EasyCP - Creating CheckPoints easily. (/showthread.php?tid=648722)



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



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
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



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); ??