06.03.2014, 19:24
i've found this
but it Sends the Message Twice Like this
Can you tell me how to fix it ?
pawn Код:
new accent[64];
GetPlayerAccent(playerid, accent);
if(PlayerInfo[playerid][pAccent] != 0 && PlayerInfo[playerid][pAccent] != 1 && PlayerInfo[playerid][pMask] == 1)
{
format(string, sizeof(string), "%s %s says: %s", accent, sendername, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
else
{
format(string, sizeof(string), "%s says: %s", sendername, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
if(PlayerInfo[playerid][pMask] == 1)
{
format(string, sizeof(string), "%s Stranger says: %s", accent, text);
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
if(PlayerInfo[playerid][pBugged] == 1)
{
format(string, sizeof(string), "(bug) %s: %s", GetPlayerNameEx(playerid), text);
SendBugMessage(2, COLOR_LIGHTGREEN, string);
SendBugMessage(1, COLOR_LIGHTGREEN, string);
SendBugMessage(7, COLOR_LIGHTGREEN, string);
SendBugMessage(18, COLOR_LIGHTGREEN, string);
SendBugMessage(19, COLOR_LIGHTGREEN, string);
}
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 1 && BigEar[i] == 3)
{
format(string, sizeof(string), "(BE) %s: %s", GetPlayerNameEx(playerid), text);
SendClientMessageEx(i, COLOR_WHITE, string);
}
}
return 0;
}
Код:
Player_Name: %s Stranger:%s