04.03.2017, 07:52
PHP код:
public OnPlayerText(playerid,text[])
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[%i] %s", playerid, text);
SendLocalMessage(playerid, COLOR_WHITE, 7,string);
return 0;
}
if (text[0] == '@')
{
new string[128];
format(string,sizeof(string)," %s(%d): {FFFFFF}%s.",name,playerid,text[1]);
SendClientMessageToAll(COLOR_WHITE,string);
return 0;
}