26.12.2010, 16:55
You mean a chat with a command or.. ?
Here:
Wrote it quickly, don't know if it will work fine.
Here:
pawn Код:
if (strcmp("/g", cmdtext, true, 1) == 0)
{
new string[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "[GLOBAL][ID:%d]%s: %s", playerid, pName, cmdtext);
return SendClientMessageToAll(0xFFFFFFAA, string);
}

