07.10.2010, 16:41
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/o", cmdtext, true, 10) == 0)
{
if(!strlen(cmdtext)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /o [chat]");
new str[256];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "%s: %s", str, cmdtext);
SendClientMessageToAll(COLOR_WHITE, str);
return 1;
}
return 0;
Thanks