SA-MP Forums Archive
ZCMD - 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: ZCMD (/showthread.php?tid=486755)



ZCMD - MatriXgaMer - 10.01.2014

Hmm how can i make 2 command in one, i mean one is full and one is shorter if you dont understand me here is the code i was wondering if this would work:

CMD(playerid, params[]) && CMDoc(playerid, params[])


Re: ZCMD - Stinged - 10.01.2014

You should read its page.
https://sampforum.blast.hk/showthread.php?tid=91354

pawn Код:
COMMAND:something(playerid, params[])
{
  // some stuff here
  return 1;
}
pawn Код:
COMMAND:another(playerid, params[])
{
  return cmd_something(playerid, params);
}



Re: ZCMD - MatriXgaMer - 10.01.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
You should read its page.
https://sampforum.blast.hk/showthread.php?tid=91354

pawn Код:
COMMAND:something(playerid, params[])
{
  // some stuff here
  return 1;
}
pawn Код:
COMMAND:another(playerid, params[])
{
  return cmd_something(playerid, params);
}
Thanks mate!