03.04.2018, 03:07
(
Last edited by AllanSG; 03/04/2018 at 04:42 PM.
)
PHP Code:
public OnPlayerText(playerid, text[])
{
new string[50], Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
if(IsPlayerAdmin(playerid)) // Mude IsPlayerAdmin(playerid) para sua variavel de Dono
{
format(string, sizeof(string),"%s [Dono] Diz: %s", Nome, text);
SendPlayerMessageToAll(-1, string);
}
return 0;
}
PHP Code:
public OnPlayerText(playerid, text[])
{
new string[50], Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
if(IsPlayerAdmin(playerid)) // Mude IsPlayerAdmin(playerid) para sua variavel de adm
{
format(string, sizeof(string),"%s [Dono] Diz: %s", Nome, text);
SendPlayerMessageToAll(-1, string);
}
else if(IsPlayerAdmin(playerid)) // Mude IsPlayerAdmin(playerid) para sua variavel de adm
{
format(string, sizeof(string),"%s [Adm] Diz: %s", Nome, text);
SendPlayerMessageToAll(-1, string);
}
else if(IsPlayerAdmin(playerid)) // Mude IsPlayerAdmin(playerid) para sua variavel de Mod
{
format(string, sizeof(string),"%s [Mod] Diz: %s", Nome, text);
SendPlayerMessageToAll(-1, string);
}
else if(IsPlayerAdmin(playerid)) // Mude IsPlayerAdmin(playerid) para sua variavel de Ajudante
{
format(string, sizeof(string),"%s [Ajudante] Diz: %s", Nome, text);
SendPlayerMessageToAll(-1, string);
}
else
{
format(string, sizeof(string), %s: %s", Nome, text);
SendClientMessageToAll(-1, string);
}
return 0;
}