[Include] [MACROS] ycmd, easy & usefull cmd system
#21

Quote:
Originally Posted by The Toni
Посмотреть сообщение
Yesssss I can and you can...:P
Ohh well then don't.

Sorry for going off topic.
Reply
#22

Uhh...

Quote:
What It?
It Easy cmd system, Vety usefull for filterscrits where you cant use strtok function

I think there's something wrong with your grammer, Did you say very useful because you also said:

Quote:
cmd Speed
Sory But Speed is not Fantastic...

Yeah usefull Right, i think you meant Useless.
Reply
#23

thanks)
*****
Reply
#24

I had a test and it is his results.

ZCMD - 132
DCMD - 1675
YCMD - 2134

Don't use format function in you marcos. it slows down command execution
Reply
#25

It looks like DCMD or ZCMD
Reply
#26

Has anyone tried it?
Reply
#27

L O L.

I still prefer ZCMD + SSCANF, no way someone could do better.
Reply
#28

I think this is usefull only for newbies..
Reply
#29

This is worth nothing, as it's no where faster then DCMD or ZCMD. If you are looking for something which is "noob friendly", use ZCMD. It's the fastest command processor and works VERY well with ******'s sscanf include/plugin. It's not worth using, at all.
Reply
#30

Just for the fun of it i made it a lil bit faster and named it scmd for "Super Command"!!!!!!!!



Enjoy,

KEEP ME IN CREDITS!!!!! xDDDDDD

pawn Код:
#include <a_samp>//Credits to SA-MP Developers!
#include <sscanf2>//Credits to whoever made this!

#define scmd(%1) if(!strcmp(cmdtext,%1,true,strlen(%1))&&((!strlen(cmdtext[strlen(%1)])&&format(params,sizeof(params),""))||(cmdtext[strlen(%1)]==' '&&format(params,sizeof(params),"%s",cmdtext[strlen(%1)+1]))))
#define call_scmd(%1) format(params,sizeof(params),""%1" %s",params),CallLocalFunction("OnPlayerCommandText","ds",playerid,params)

public OnPlayerCommandText(playerid, cmdtext[])
{
    new params[128];
    scmd("/say")//A simple /say command :D
    {
        new getplayerid, msg, pName[24], string[128];
        if(sscanf(params, "d", msg)) return SendClientMessage(playerid,0x0,"USAGE: /say [msg]");
        GetPlayerName(getplayerid, pName, sizeof(pName));
        format(string,sizeof(string),"* %s [%d] Says: %s",pName,getplayerid,msg);
        SendClientMessageToAll(0x0,string);
        return true;
    }
    else scmd("/msg") return call_scmd("/say");//Also /msg will show /say :O!
   
    scmd("/help")//A simple /help command :D
    {
        SendClientMessageToAll(0x0,"Help Messages..");
        return true;
    }
    else scmd("/info") return call_scmd("/help");//Also /info will show /help :O!
   
    scmd("/ban")//A simple /ban command :D
    {
        new getplayerid, bName[24], str[128], Reason[64];
        if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,0x0,"Your Not An Admin!");
        if(sscanf(params, "Ud",getplayerid, Reason)) return SendClientMessage(playerid,0x0,"USAGE: /ban [id] [reason]");
        GetPlayerName(getplayerid, bName, sizeof(bName));
        format(str,sizeof(str),"%s [%d] Has Been Banned! [Reason: %s]",bName, getplayerid, Reason);
        SendClientMessageToAll(0x0,str);
        BanEx(getplayerid,str);
        return true;
    }
    return false;
}
//No more str-crap :D
((ZCMD FTW!))
Reply
#31

Greetings YmOn good work
Reply
#32

I'm using and I will Maravilla Use a translator to write this, I speak Spanish
Reply
#33

****** ycmd is the best!!
it's only modified strcmp ;/
Reply
#34

Great Job but no one can really beat those top 3 include for me:

ZCMD,YSI,sscanf

those are faster include today that use of professional scripters
Reply
#35

Quote:
Originally Posted by GAMER_PS2
Посмотреть сообщение
Great Job but no one can really beat those top 3 include for me:

ZCMD,YSI,sscanf

those are faster include today that use of professional scripters
Yes, but some do not understand ZCMD, YCMD and sscanf ...
This type Cmd will serve learners.
Use again speak Spanish translator.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)