[Include] MultiCommands (Use different commands at the same time!)
#10

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
Код:
//command
So I just remade your script and uploaded this one:

mcmds.inc Pastebin


Usage:

Код:
M_CMDs(playerid, params[], somevariable);
or
Код:
MultiCommands(playerid, params[], somevariable);
or if you get any warnings that a variable shadows at a proceeding level
Код:
M_CMDsEx(playerid, params[], somevariable1, somevariable2, somevariable3);
Код:
M_CMDs
Function name

Код:
playerid
Player ID to perform the multiple commands

Код:
params[]
Parameters

Код:
somevariable, somevariable1, somevariable2, somevariable3
Just put here undeclared/undefined variables (It's important for the loop inside this macro)


Example:
pawn Код:
M_CMDs(playerid, params, i);
or
pawn Код:
M_CMDs(playerid, params, ehlol);
or
pawn Код:
M_CMDs(playerid, params, randomstuff);
etc..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)