08.07.2010, 02:21
[Include] [MACROS] ycmd, easy & usefull cmd system
08.07.2010, 02:32
Uhh...
I think there's something wrong with your grammer, Did you say very useful because you also said:
Yeah usefull Right, i think you meant Useless.
Quote:
What It? It Easy cmd system, Vety usefull for filterscrits where you cant use strtok function |
Quote:
cmd Speed Sory But Speed is not Fantastic... |
12.07.2010, 00:53
thanks)
*****
*****
12.07.2010, 06:58
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
ZCMD - 132
DCMD - 1675
YCMD - 2134
Don't use format function in you marcos. it slows down command execution
27.10.2010, 11:36
It looks like DCMD or ZCMD
27.10.2010, 12:07
Has anyone tried it?
27.10.2010, 18:52
L O L.
I still prefer ZCMD + SSCANF, no way someone could do better.
I still prefer ZCMD + SSCANF, no way someone could do better.
27.10.2010, 19:04
I think this is usefull only for newbies..
27.10.2010, 19:18
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.
17.02.2011, 14:36
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
((ZCMD FTW!))
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
18.02.2011, 15:51
Greetings YmOn good work
09.11.2011, 22:08
I'm using and I will Maravilla Use a translator to write this, I speak Spanish
10.11.2011, 11:20
****** ycmd is the best!!
it's only modified strcmp ;/
it's only modified strcmp ;/
13.11.2011, 08:12
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
ZCMD,YSI,sscanf
those are faster include today that use of professional scripters
15.11.2011, 13:30
Quote:
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 |
This type Cmd will serve learners.
Use again speak Spanish translator.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)