04.04.2018, 00:05
Tente
PHP Code:
new msg[300], Float:Pos[3], PlayerName[MAX_PLAYER_NAME + 1];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
GetPlayerPos(playeris, Pos[0], Pos[1], Pos[2]);
foreach(new i: Player)
{
if(IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
{
if(aInfo[playerid][AdminL] > 0) {
format(msg, sizeof(msg), "%s[Dono] diz: %s", PlayerName, text);
}
else if(aInfo[playerid][Admin] > 0) {
format(msg, sizeof(msg), "%s[Adm] diz: %s", PlayerName, text);
}
else if(aInfo[playerid][Moderador] > 0) {
format(msg, sizeof(msg), "%s[Mod] diz: %s", PlayerName, text);
}
else if(aInfo[playerid][Ajudante] > 0) {
format(msg, sizeof(msg), "%s[Ajudante] diz: %s", PlayerName, text);
}
else if(aInfo[playerid][Corregedor] > 0) {
format(msg, sizeof(msg), "%s[Corr] diz: %s", PlayerName, text);
} else {
format(msg, sizeof(msg), "%s diz: %s", PlayerName, text);
}
SendClientMessage(i, GetPlayerColor(playerid), msg);
}
}