21.05.2014, 00:06
Como o MultiKill disse irб precisar usar a callback OnPlayerText, vou deixar um exemplo:
@off: Tu foste mais rapido a postar que eu DiiMeNoR
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
if(playerInfo[playerid][pAdmin] > 0) //Isto irб verficar se o jogador й admin, substituia playerInfo[playerid][pAdmin] pela variavel que voce usar
{
format(string, sizeof(string), "%s {FFFFFF}[STAFF] - %s", GetPlayerName(playerid), text); //Formata a string com a estrutura "Nome [STAFF] - Texto"
SendClientMessageToAll(GetPlayerColor(playerid), string); //Envia a string para todos os jogadores
}
else //Caso nгo for
{
format(string, sizeof(string), "%s {FFFFFF} - %s", GetPlayerName(playerid), text); //Formata a string com a estrutura "Nome - Texto"
SendClientMessageToAll(GetPlayerColor(playerid), string); //Envia a string para todos os jogadores
}
return 0;
}
