29.09.2014, 18:06
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/say",true,4))
{
if(!cmdtext[4]) return SendClientMessage(playerid,-1,"USAGE:/say [text]");
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name))
format(string, sizeof(string), "(( %s)) says: %s ", name, cmdtext[5]);
return SendClientMessageToAll(0xffffff, string);
}
return 1;
}