[UNSOLVED!!]Talking as a channel bot...
#3

thats an IRC command done from IRC, but you can make something similar pretty easily.

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;
}

dont forget to make sure 'strrest' is defined in your script
Reply


Messages In This Thread
[UNSOLVED!!]Talking as a channel bot... - by DEJORDZTA - 11.08.2009, 04:50
Re: Talking as a channel bot... - by dice7 - 11.08.2009, 06:31
Re: Talking as a channel bot... - by Ez - 11.08.2009, 06:44
Re: Talking as a channel bot... - by DEJORDZTA - 27.08.2009, 04:38
Re: Talking as a channel bot... - by DEJORDZTA - 27.08.2009, 05:29
Re: Talking as a channel bot... - by DEJORDZTA - 29.08.2009, 09:41
Re: [SOLVED!!]Talking as a channel bot... - by Abernethy - 29.08.2009, 09:44
Re: [SOLVED!!]Talking as a channel bot... - by DEJORDZTA - 30.08.2009, 04:52
Re: [UNSOLVED!!]Talking as a channel bot... - by DEJORDZTA - 11.09.2009, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)