23.12.2009, 14:09
Try this:
Or something like that.
Code:
if(!strcmp(cmdtext, "/o", true, 2)) { if(!cmdtext[2])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /o [message]"); new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "(([OOC Global] %s: %s))", str, cmdtext[3]); SendClientMessageToAll(COLOR_RED, str); return 1; }