Re: [MACROS] ycmd, easy & usefull cmd system -
Lorenc_ - 08.07.2010
Quote:
Originally Posted by The Toni
Yesssss I can and you can...:P
|
Ohh well then don't.
Sorry for going off topic.
Re: [MACROS] ycmd, easy & usefull cmd system -
FreshKilla - 08.07.2010
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.
Re: [MACROS] ycmd, easy & usefull cmd system -
YmOn - 12.07.2010
thanks)
*****
Re: [MACROS] ycmd, easy & usefull cmd system -
Romanius - 12.07.2010
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
Re: [MACROS] ycmd, easy & usefull cmd system -
Brian_Furious - 27.10.2010
It looks like DCMD or ZCMD
Re: [MACROS] ycmd, easy & usefull cmd system -
eXtr1kE - 27.10.2010
Has anyone tried it?
Re: [MACROS] ycmd, easy & usefull cmd system -
Zh3r0 - 27.10.2010
L O L.
I still prefer ZCMD + SSCANF, no way someone could do better.
Re: [MACROS] ycmd, easy & usefull cmd system -
The_Moddler - 27.10.2010
I think this is usefull only for newbies..
Re: [MACROS] ycmd, easy & usefull cmd system -
Scenario - 27.10.2010
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.
Re: [MACROS] ycmd, easy & usefull cmd system -
YungGee - 17.02.2011
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!))
Re: [MACROS] ycmd, easy & usefull cmd system -
Misha_Konsta - 18.02.2011
Greetings YmOn good work
Re: [MACROS] ycmd, easy & usefull cmd system -
digman - 09.11.2011
I'm using and I will Maravilla Use a translator to write this, I speak Spanish
Re: [MACROS] ycmd, easy & usefull cmd system -
filipyoyo - 10.11.2011
****** ycmd is the best!!
it's only modified strcmp ;/
Re: [MACROS] ycmd, easy & usefull cmd system -
GAMER_PS2 - 13.11.2011
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
Respuesta: Re: [MACROS] ycmd, easy & usefull cmd system -
digman - 15.11.2011
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.