25.03.2012, 10:54
Boas malta,eu tenho um chat,e ,no code do chat no pawn,achoq ue esta tudo direito.
Code chat :
Estoua ter problemas com o chat dos admin,eu queria,que admins nivel 1 atй 20,a cor do chat era vermelhos,adims nivel 21,a cor do chat verde,admin nivel 22,cor do chat azul,admin nivel 25 cor do chat verde,eu ja meti tudo direitihno,so que apareзe,o chat dos admins todo vermelho,o chat de admins й vermelho para todos os niveis,e eu nao queria isso...
Code chat :
pawn Код:
if(!IsPlayerInAnyVehicle(playerid) && AdminDuty[playerid] != 1 && GMDuty[playerid] != 10 || IsABike(GetPlayerVehicleID(playerid)) && AdminDuty[playerid] != 25 && GMDuty[playerid] != 10)
{
format(string, sizeof(string), "%s diz: %s", GetPlayerNameEx(playerid), text);
ProxDetector(25.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
TalkLog(string);
format(strings, sizeof(strings), "diz: %s", text);
SetPlayerChatBubble(playerid, strings, COLOR_FADE1, 25.0, 4000);
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.0,1,0,0,1,1);
SetTimerEx("Anim",1500, false, "d", playerid);
}
else if(AdminDuty[playerid] >= 22)
{
format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
ProxDetector(25.0, playerid, string,COLOR_OWNER,COLOR_OWNER,COLOR_OWNER,COLOR_OWNER,COLOR_OWNER);
TalkLog(string);
}
else if(AdminDuty[playerid] >= 21)
{
format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
ProxDetector(25.0, playerid, string,COLOR_LADUTY,COLOR_LADUTY,COLOR_LADUTY,COLOR_LADUTY,COLOR_LADUTY);
TalkLog(string);
}
else if(AdminDuty[playerid] >= 21)
{
format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
ProxDetector(25.0, playerid, string,COLOR_HADUTY,COLOR_HADUTY,COLOR_HADUTY,COLOR_HADUTY,COLOR_HADUTY);
TalkLog(string);
}
else if(AdminDuty[playerid] >= 1)
{
format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
ProxDetector(25.0, playerid, string,COLOR_ADMINDUTY,COLOR_ADMINDUTY,COLOR_ADMINDUTY,COLOR_ADMINDUTY,COLOR_ADMINDUTY);
TalkLog(string);
}
else if(GMDuty[playerid] >= 1)
{
format(string, sizeof(string), "((%s diz: %s))", GetPlayerNameEx(playerid), text);
ProxDetector(25.0, playerid, string,COLOR_GMDUTY,COLOR_GMDUTY,COLOR_GMDUTY,COLOR_GMDUTY,COLOR_GMDUTY);
TalkLog(string);
}
else
{
if(CarWindowStatus[GetPlayerVehicleID(playerid)] == 1)
{
format(string, sizeof(string), "[Vidros Abertos] %s diz: %s", GetPlayerNameEx(playerid), text);
ProxDetector(25.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
TalkLog(string);
}
else
{
format(string, sizeof(string), "[Vidros Fechados] %s diz: %s", GetPlayerNameEx(playerid), text);
ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
TalkLog(string);
}
}
return 0;
}
return 1;