Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

[Include] MULTI COLERED FUNCTIONAL CP [by Razor]

$
0
0
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
Callbacks:
PHP Code:

OnPlayerEnterCheckpointEx(playeridcheckpoint[], CPID)
OnPlayerExitCheckpointEx(playeridcheckpoint[], CPID)
//extas:
OnPlayerTextInCP(playeridname[], CPIDtext[])
OnPlayerKeyStateChangeInCP(playeridname[], CPIDnewkeysoldkeys

Functions:
PHP Code:

CreatePlayerCheckPoint(playeridname[29] = ""CPType:typeFloat:xFloat:yFloat:zworldid = -1interiorid = -1);
CreateCheckPoint(name[29] = ""CPType:typeFloat:xFloat:yFloat:zworldid = -1interiorid = -1forplayer= -1);
IsPlayerInCheckpointEx(playeridname[]);
IsPlayerInAnyCheckpointEx(playerid);
DestroyCheckPointCPID);
//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=youtu.be

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/GMr8SxwC [V 1.3]
GitHub: https://github.com/RodrigoDornelles/MCF-CheckPoint [V 1.4]

Viewing all articles
Browse latest Browse all 18226

Trending Articles