[Include] MULTI COLERED FUNCTIONAL CP [by Razor]
#1

introduction:
This include it is simple but it is useful, the main purpose is to create several CPs that are visible at the same time! Besides having some extra colors as optional, and also several unique functions!

Features:
Quote:

+ Several CheckPoints are visible at the same time for the player
+ You can interact with more than one checkpoint at a time
+ You can move the checkpoint where you want it
+ Higher Performance and Precision than CheckPoint Normal
+ Stability, and visibility without glitchs (unlike DynCP)
+ Intuitive and easy-to-use syntax

CP types:
PHP Code:
CP_ARROW
CP_CIRCLE_BIG
CP_CIRCLE
CP_INVISIBLE 
Callbacks:
PHP Code:
OnPlayerEnterCheckpointEx(playeridcheckpoint[], CPID)
OnPlayerExitCheckpointEx(playeridcheckpoint[], CPID)
//extas:
OnPlayerTextInCP(playeridname[], CPIDtext[])
OnPlayerKeyStateChangeInCP(playeridname[], CPIDnewkeysoldkeys
Functions:
PHP Code:
CreatePlayerCheckPoint(playeridname[29] = ""CPType:type CP_CIRCLEcolor0x99FF0000Float:xFloat:yFloat:zworldid = -1interiorid = -1);
CreateCheckPoint(name[29] = ""CPType:type CP_CIRCLEcolor0x99FF0000Float:xFloat:yFloat:zworldid = -1interiorid = -1forplayer= -1);
IsPlayerInCheckpointEx(playeridname[]);
IsPlayerInAnyCheckpointEx(playerid);
IsPlayerInCP(playeridCPID);
DestroyCheckPointCPID);
//colors
SetCheckPointColor(CPIDcolor=0x99FF0000);
//movement
SetCPtoPosCPIDFloat:x=0.0Float:y=0.0Float:z=0.0);
MoveCPtoPosCPIDFloat:x=0.0Float:y=0.0Float:z=0.0Float:speed2.0);
//attachґs CP
AttachCPtoObjectCPIDobjectidFloat:x=0.0Float:y=0.0Float:z=0.0);
AttachCPtoPlayerCPIDplayeridFloat:x=0.0Float:y=0.0Float:z=0.0);
AttachCPtoVehicleCPIDvehicleidFloat:x=0.0Float:y=0.0Float:z=0.0);
AttachCPtoCPCPIDCPattachedFloat:x=0.0Float:y=0.0Float:z=0.0); 
Processing of CheckPoints:
PHP Code:
CPEnter:Pref(playerid)
{
  
SendClientMessage(playerid, -1"You entered the City Hall CP!");
  return 
1;
}
CPExit:Pref(playerid)
{
  
SendClientMessage(playerid, -1"You left the CP in the city hall!");
  return 
1;

[Briefly FS demonstrative of include]

Print Screens & Video:



https://www.youtube.com/watch?v=u1nG...ature=*********

Notes:
  • Initial version with basic functionality, soon you will have many more new things!
  • If you want to give suggestions, constructive criticism or improvements, be polite!
  • Really like and will use? Then evaluate, and GIVE ME RP! Hahahah: P
Creditos:
Quote:
RazorGuigo -> Initial Release, Ideas, Extra Functionality, Colors, Features ...
Dayvison ->Internal Operation of the refurbished CPs!
OKStyle-> 5 new Color CheckPoints added in V1.3

Link for download:

Pastebin : https://pastebin.com/7YkVhPWD [V 1.5]
GitHub: https://github.com/RodrigoDornelles/MCF-CheckPoint [V 1.5]
Reply


Messages In This Thread
MULTI COLERED FUNCTIONAL CP [by Razor] - by RazorGuigo - 05.06.2017, 18:28
CHANGELOG: - by RazorGuigo - 05.06.2017, 18:30
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by iKarim - 05.06.2017, 19:45
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by CheezIt - 05.06.2017, 20:21
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by RazorGuigo - 05.06.2017, 21:21
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by Spmn - 05.06.2017, 21:42
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by Nominal - 05.06.2017, 21:48
I do not understand what you are saying... - by RazorGuigo - 05.06.2017, 21:57
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by [G]am3r - 05.06.2017, 22:21
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by Pottus - 05.06.2017, 22:23
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by coool - 06.06.2017, 06:38
about rotation in z - by RazorGuigo - 06.06.2017, 12:42
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by paulommu - 07.06.2017, 23:48
NEW UPDATE! - by RazorGuigo - 08.06.2017, 00:55
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by Immortal99 - 08.06.2017, 10:58
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by Dayvison_ - 09.06.2017, 00:37
Re: MULTI COLERED FUNCTIONAL CP [by Razor] - by Meck - 15.06.2017, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)