05.06.2017, 18:28
(
Last edited by RazorGuigo; 08/06/2017 at 01:15 AM.
)
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:
CP types:
Callbacks:
Functions:
Processing of CheckPoints:
[Briefly FS demonstrative of include]
Print Screens & Video:
https://www.youtube.com/watch?v=u1nG...ature=*********
Notes:
Link for download:
Pastebin : https://pastebin.com/7YkVhPWD [V 1.5]
GitHub: https://github.com/RodrigoDornelles/MCF-CheckPoint [V 1.5]
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 |
PHP Code:
CP_ARROW
CP_CIRCLE_BIG
CP_CIRCLE
CP_INVISIBLE
PHP Code:
OnPlayerEnterCheckpointEx(playerid, checkpoint[], CPID)
OnPlayerExitCheckpointEx(playerid, checkpoint[], CPID)
//extas:
OnPlayerTextInCP(playerid, name[], CPID, text[])
OnPlayerKeyStateChangeInCP(playerid, name[], CPID, newkeys, oldkeys)
PHP Code:
CreatePlayerCheckPoint(playerid, name[29] = "", CPType:type = CP_CIRCLE, color= 0x99FF0000, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1);
CreateCheckPoint(name[29] = "", CPType:type = CP_CIRCLE, color= 0x99FF0000, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, forplayer= -1);
IsPlayerInCheckpointEx(playerid, name[]);
IsPlayerInAnyCheckpointEx(playerid);
IsPlayerInCP(playerid, CPID);
DestroyCheckPoint( CPID);
//colors
SetCheckPointColor(CPID, color=0x99FF0000);
//movement
SetCPtoPos( CPID, Float:x=0.0, Float:y=0.0, Float:z=0.0);
MoveCPtoPos( CPID, Float:x=0.0, Float:y=0.0, Float:z=0.0, Float:speed= 2.0);
//attachґs CP
AttachCPtoObject( CPID, objectid, Float:x=0.0, Float:y=0.0, Float:z=0.0);
AttachCPtoPlayer( CPID, playerid, Float:x=0.0, Float:y=0.0, Float:z=0.0);
AttachCPtoVehicle( CPID, vehicleid, Float:x=0.0, Float:y=0.0, Float:z=0.0);
AttachCPtoCP( CPID, CPattached, Float:x=0.0, Float:y=0.0, Float:z=0.0);
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;
}
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
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 |
Pastebin : https://pastebin.com/7YkVhPWD [V 1.5]
GitHub: https://github.com/RodrigoDornelles/MCF-CheckPoint [V 1.5]