cautati: if (realchat)
si sub
GetPlayerName(playerid, sendername, sizeof(sendername));
puneti:
if (PlayerInfo[playerid][pDonateRank] >= 1 && PlayerInfo[playerid][pHelper] == 0 && PlayerInfo[playerid][pAdmin] == 0)
{
format(string, sizeof(string), "[V.I.P]%s Says: %s", sendername, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
else if (PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[playerid][pAdmin] == 0)
{
format(string, sizeof(string), "[Helper]%s Says: %s", sendername, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
else if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(string, sizeof(string), "[Admin]%s Says: %s", sendername, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
else if (PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pDonateRank] == 0 && PlayerInfo[playerid][pHelper] == 0)
{
format(string, sizeof(string), "%s Says: %s", sendername, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}