09.06.2010, 02:34
pawn Код:
public OnPlayerText(playerid, text[])
{
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name))
if(IsPlayerAdmin(playerid)){
format(str, sizeof(str), "admin %s [%d]: %s", name, playerid, text);
SendClientMessageToAll(color, str);
}
else{
format(str, sizeof(str), "%s [%d]: %s", name, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), str);
}
return 0;
}