06.10.2014, 20:35
pawn Код:
public OnPlayerText(playerid, text[])
{
new textv2[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
if(APlayerData[playerid][PlayerLevel] > 0) // Caso seja admin
format(textv2, sizeof (textv2), "%s(%d)[ADM]: %s", name, playerid, text);
else//caso nгo seja
format(textv2, sizeof (textv2), "%s(%d): %s", name, playerid, text);
SendPlayerMessageToAll(playerid, textv2);
return 0; // Envia apenas a mensagem acima e cancela a mensagem nativa.
}