02.12.2015, 19:52
Quote:
Is there any way to return commands like in ZCMD?
I mean this: Код:
CMD:command(playerid, params[]) { return cmd_anothercommand(playerid, params); } |
pawn Код:
#define CallCommand(%0,%1) CallLocalFunction("OnPlayerCommandText","is",%0,%1)
#define Y_COMMANDS_NO_IPC
#include <YSI\y_commands>
pawn Код:
/*Your Code (and yes YCMD can handle ZCMD syntax):
CMD:command(playerid, params[])
{
return CallCommand(playerid, params);
}
My Code:*/
CMD:fakecmd(playerid, params[])
{
new cmd_and_params[136], targetplayer;
sscanf(params, "us[136]", targetplayer, cmd_and_params);
return CallCommand(targetplayer, cmd_and_params);
}