SA-MP Forums Archive
Converting A command To My Gamemode - 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)
+--- Thread: Converting A command To My Gamemode (/showthread.php?tid=354809)



Converting A command To My Gamemode - kepa333 - 28.06.2012

Hi I need somehelp Ive seen a Cool Filterscript wich i very like but when i put it into my script all my commands wont work anymore

It looks like this
command(flash, playerid, params[])


And this is how i Make Commands In my own Script

if(strcmp(cmd, "/ahm", true) == 0)

Can i just Replace That or ? help please


Respuesta: Converting A command To My Gamemode - Chris1337 - 28.06.2012

this

pawn Код:
command(flash, playerid, params[])
is with ZCMD , a command processor


Re: Converting A command To My Gamemode - kepa333 - 28.06.2012

So i couldt Just Turn it into
PHP код:
if(strcmp(cmd"/flash"true) == 0
?


Re: Converting A command To My Gamemode - SKAzini - 28.06.2012

How can
pawn Код:
command(flash, playerid, params[])
Be ZCMD? As far as I know its
pawn Код:
COMMAND:flash(playerid, params[])
//and
CMD:flash(playerid, params[])