Quote:
Originally Posted by Grand_Micha
pawn Код:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0) { if(!strlen(cmdtext[4])) SendClientMessage(playerid, 0xffffffff, "USAGE: /ooc [text]"); else { new tmp[128],Batz[24]; GetPlayerName(playerid,Batz,24); format(tmp,128,"((OOC - %s: %s))",Batz,cmdtext[5]); SendClientMessageToAll(0xFFFFFFAA,tmp); } return 1; }
Here you go, kid.
|
Lolz, that's the same code i posted, you only added that batz thing....
if you want Username: ((message)) use this:
pawn Код:
format(tmp,128,"%s: ((%s))",tmp,cmdtext[5]);
it will output: Jari_Johnson:((OOC Message))