07.03.2012, 16:05
Although I like this idea since now you can use multiple commands at once.
Anyways this version might been made in stock and there are server which uses commands like
So I just remade your script and uploaded this one:
mcmds.inc Pastebin
Usage:
or
or if you get any warnings that a variable shadows at a proceeding level
Function name
Player ID to perform the multiple commands
Parameters
Just put here undeclared/undefined variables (It's important for the loop inside this macro)
Example:
or
or
etc..
Anyways this version might been made in stock and there are server which uses commands like
Код:
//command
mcmds.inc Pastebin
Usage:
Код:
M_CMDs(playerid, params[], somevariable);
Код:
MultiCommands(playerid, params[], somevariable);
Код:
M_CMDsEx(playerid, params[], somevariable1, somevariable2, somevariable3);
Код:
M_CMDs
Код:
playerid
Код:
params[]
Код:
somevariable, somevariable1, somevariable2, somevariable3
Example:
pawn Код:
M_CMDs(playerid, params, i);
pawn Код:
M_CMDs(playerid, params, ehlol);
pawn Код:
M_CMDs(playerid, params, randomstuff);