SA-MP Forums Archive
/OOC and /O - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /OOC and /O (/showthread.php?tid=104467)



/OOC and /O - ForceFive - 24.10.2009

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[])




Re: /OOC and /O - Danny_Costelo - 24.10.2009

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



Re: /OOC and /O - Correlli - 24.10.2009

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