[Include] Easy Script v0.1
#1

So, I was sitting down one day and I tested out a few definitions. Got no errors and I had this revolutionary idea.
This include I have created defines some things such as OnPlayerCommandText, and made it OPCT, so you only have to type in OPCT instead of the whole thing.


I dont know if this was stupid or what, but my include also contains the zcmd, foreach, sscanf2, streamer, a_samp library(time, float, a_actor and all that) all into one include so that it declutters your gm and makes it nice and clear. This also has practically all colours included. And of course, credit is given where credit is due, so everyone recieved their piece of credit.

USAGE
So in terms of color, you can use colors like COLOR_RED, COLOR_YELLOW, PM_REPLY and much much more.
In terms of the shortened functions, here is an example of one of the added ones

Код:
#define SendClientMessage SCM
#define params pams
#define return rtn
////----------//////////////----------------//////////

CMD:kewl(playerid,pams[])
{
    SCM(playerid, COLOR_ORANGE, "Just dont try me! Har har!");
    rtn 1;
} 

COMPARE TO THE ORIGINAL

CMD:kewl(playerid,params[])
{
     SendClientMessage(playerid, COLOR_ORANGE, "Just dont try me! Har har!");
     return 1;
}
As you can already see, the code has less words, and in benefits of this, this will provide smaller sizes so in return you can upload your massive script to your server MUCH faster.

If you want to suggest a include to add (such as dini) then use this format

Код:
Include Name:
Creator of Include:
DOWNLOAD LINK
https://www.solidfiles.com/v/yqyw5rP422V7v

REMEMBER! DONT INCLUDE A_SAMP AT ALL AS WHEN YOU INCLUDE <easyscript01> IT WILL HAVE A_SAMP INCLUDED FROM THE INSIDE. THIS INC CAN BASICALLY MAKE YOUR PAWNO/INCLUDE FOLDER EMPTY IF IT WASNT FOR MILLIONS OF INCLUDE FILES
Reply


Messages In This Thread
Easy Script v0.1 - by xLucy - 05.11.2016, 23:48
Re: Easy Script v0.1 - by J0sh... - 06.11.2016, 00:05
Re: Easy Script v0.1 - by Pottus - 06.11.2016, 02:24
Re: Easy Script v0.1 - by CantBeJohn - 06.11.2016, 07:05
Re: Easy Script v0.1 - by ZiGGi - 06.11.2016, 07:10
Re: Easy Script v0.1 - by CantBeJohn - 06.11.2016, 07:13
Re: Easy Script v0.1 - by PrO.GameR - 06.11.2016, 09:59
Re: Easy Script v0.1 - by Micko123 - 06.11.2016, 10:10
Re: Easy Script v0.1 - by JustMe.77 - 19.11.2016, 01:07
Re: Easy Script v0.1 - by Ivan_Ino - 19.11.2016, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)