Miscellany
public text v1 · immutablepublic OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256],name[32]; GetPlayerName(playerid, name, sizeof(name));
new index; cmd = strtok(cmdtext, index);
if(!strcmp(cmd, "/o", true || !strcmp(cmd, "/ooc", true))
{
new tmp[256],msg[256];
text = strtok(cmdtext, index);
format(msg, sizeof(msg), "2[%i] <\2;%s\2;> %s", playerid, name, text); // [0] <jacob> hi
ircSay(EchoConnection, EchoChan, msg);
}
return 1;
}