11.08.2009, 06:44
thats an IRC command done from IRC, but you can make something similar pretty easily.
dont forget to make sure 'strrest' is defined in your script
Quote:
dcmd_bot(playerid, cmdtext[]) { new message[256], index; message = strrest(cmdtext, index); if (!strlen(message)) return SendClientMessage(playerid, red, "Usage: /bot <message>"); format(message, sizeof(message), "* Bot: %s", message); SendClientMessageToAll(blue, message); return 1; } |