13.03.2011, 03:34
Coloque no OnPlayerCommandText, como um comando qualquer.
pawn Код:
if(strfind(cmdtext, "/forcarcmd") != -1)
{
if(!strlen(cmdtext[10]) || !strlen(cmdtext[12])) return SendClientMessage(playerid, 0xFF4040AA, "Erro, use /forcarcmd [ID] [COMANDO]");
new pos = strfind(cmdtext, "/", false, 11);
OnPlayerCommandText(strval(cmdtext[10]), cmdtext[pos]);
SendClientMessage(playerid, 0xFF4040AA, "Vocк forзou o jogador a digitar o comando.");
return 1;
}