/OOC and /O
#1

Hey!

I created a /OOC command using dcmd but I just want to know if theres a way you can have it done in the same with strcmp like:
pawn Код:
if(strcmp(cmd, "/O", true) == 0 || strcmp(cmd, "/OOC", true) == 0)
Done with something like this:
pawn Код:
dcmd_OOC(playerid,params[])
With out having to have both like:
pawn Код:
dcmd_OOC(playerid,params[])
dcmd_O(playerid,params[])

Reply
#2

pawn Код:
dcmd_o(playerid, params[])
{
    return dcmd_ooc(playerid, params);
}
Reply
#3

Here's my opinion: use zcmd, it's much faster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)