Local Chat >.<
#1

I was wondering How i change the LocalChat Color If you start Talking and when it Dissapear On the screen ,


I think I need to edit Those lines


PHP Code:
    if(strcmp(cmd"/local"true) == || strcmp(cmd"/l"true) == 0// By CuervO_NegrO
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(
gPlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridCOLOR_GREY"** You havent logged in yet!");
                return 
1;
            }
            if(
PlayerInfo[playerid][pMuted] == 1)
            {
                
SendClientMessage(playeridTEAM_CYAN_COLOR"You cannot speak, you have been silenced");
                return 
1;
            }
            new 
playercar GetPlayerVehicleID(playerid);
            new 
y,m,d;
            new 
h,mi,s;
            
getdate(y,m,d);
            
gettime(h,mi,s);
            new 
length strlen(cmdtext);
            while ((
idx length) && (cmdtext[idx] <= ' '))
            {
                
idx++;
            }
            new 
offset idx;
            new 
result[128];
            while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
            {
                
result[idx offset] = cmdtext[idx];
                
idx++;
            }
            
result[idx offset] = EOS;
            if(!
strlen(result))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USAGE: /local [local chat]");
                return 
1;
            }
            if(!
IsPlayerInAnyVehicle(playerid))
            {
                   if(
PlayerInfo[playerid][pAdminDuty] == 1)
                {
                    
format(stringsizeof(string), "Admin Says: %s"result);
                    
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    
SetPlayerChatBubble(playeridstringCOLOR_NICERED20.08000);
                    
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Local): %s",d,m,y,h,mi,ssendernameresult);
                    
ChatLog(string);
                }
                if(
PlayerInfo[playerid][pAdminDuty] == && PlayerInfo[playerid][pMaskuse] == 1)
                {
                    
format(stringsizeof(string), "Stranger Says: %s"result);
                    
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    
SetPlayerChatBubble(playeridstringCOLOR_WHITE20.08000);
                     
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Loca): %s",d,m,y,h,mi,ssendernameresult);
                    
ChatLog(string);
                }
                if(
PlayerInfo[playerid][pAdminDuty] == && PlayerInfo[playerid][pMaskuse] == 0)
                {
                    
format(stringsizeof(string), "%s Says: %s"sendernameresult);
                    
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    
SetPlayerChatBubble(playeridstringCOLOR_WHITE20.08000);
                    
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local): %s",d,m,y,h,mi,ssendernameresult);
                    
ChatLog(string);
                }
            }
            else
            {
                if(
IsModelAPlane(playercar) || IsModelABike(playercar) || IsModelAHeli(playercar) || IsModelABoat(playercar) || IsModelASpecial(playercar))
                {
                    if(
PlayerInfo[playerid][pAdminDuty] == 1)
                    {
                        
format(stringsizeof(string), "Admin Says: %s"result);
                        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                        
SetPlayerChatBubble(playeridstringCOLOR_NICERED20.08000);
                        
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Local): %s",d,m,y,h,mi,ssendernameresult);
                        
ChatLog(string);
                    }
                    if(
PlayerInfo[playerid][pAdminDuty] == && PlayerInfo[playerid][pMaskuse] == 1)
                     {
                        
format(stringsizeof(string), "Stranger Says: %s"result);
                        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                        
SetPlayerChatBubble(playeridstringCOLOR_WHITE20.08000);
                        
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Local): %s",d,m,y,h,mi,ssendernameresult);
                        
ChatLog(string);
                    }
                    if(
PlayerInfo[playerid][pAdminDuty] == && PlayerInfo[playerid][pMaskuse] == 0)
                    {
                        
format(stringsizeof(string), "%s Says: %s"sendernameresult);
                        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                        
SetPlayerChatBubble(playeridstringCOLOR_PINK20.08000);
                        
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local): %s",d,m,y,h,mi,ssendernameresult);
                        
ChatLog(string);
                    }
                }
                else
                {
                    if(
VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
                    {
                           if(
PlayerInfo[playerid][pAdminDuty] == 1)
                        {
                            
format(stringsizeof(string), "(Windows Shut) Admin Says: %s"result);
                            
SetPlayerChatBubble(playeridstringCOLOR_NICERED10.08000);
                            
ProxDetector(10.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Windows Shut): %s",d,m,y,h,mi,ssendernameresult);
                            
ChatLog(string);
                        }
                        if(
PlayerInfo[playerid][pAdminDuty] == && PlayerInfo[playerid][pMaskuse] == 1)
                        {
                            
format(stringsizeof(string), "(Windows Shut) Stranger Says: %s"result);
                            
SetPlayerChatBubble(playeridstringCOLOR_WHITE10.08000);
                            
ProxDetector(10.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Windows Shut): %s",d,m,y,h,mi,ssendernameresult);
                            
ChatLog(string);
                        }
                        if(
PlayerInfo[playerid][pAdminDuty] == && PlayerInfo[playerid][pMaskuse] == 0)
                        {
                            
format(stringsizeof(string), "(Windows Shut) %s Says: %s"sendernameresult);
                            
SetPlayerChatBubble(playeridstringCOLOR_PINK1.08000);
                            
ProxDetector(10.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Windows Shut): %s",d,m,y,h,mi,ssendernameresult);
                            
ChatLog(string);
                        }
                    }
                    else
                    {
                        if(
PlayerInfo[playerid][pAdminDuty] == 1)
                        {
                            
format(stringsizeof(string), "(Windows Open) Admin Says: %s"result);
                            
SetPlayerChatBubble(playeridstringCOLOR_NICERED20.08000);
                            
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Windows Open): %s",d,m,y,h,mi,ssendernameresult);
                            
ChatLog(string);
                        }
                        if(
PlayerInfo[playerid][pAdminDuty] == && PlayerInfo[playerid][pMaskuse] == 1)
                        {
                            
format(stringsizeof(string), "(Windows Open) Stranger Says: %s"result);
                            
SetPlayerChatBubble(playeridstringCOLOR_WHITE20.08000);
                            
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Windows Open): %s",d,m,y,h,mi,ssendernameresult);
                            
ChatLog(string);
                        }
                        if(
PlayerInfo[playerid][pAdminDuty] == && PlayerInfo[playerid][pMaskuse] == 0)
                        {
                            
format(stringsizeof(string), "(Windows Open) %s Says: %s"sendernameresult);
                            
SetPlayerChatBubble(playeridstringCOLOR_WHITE20.08000);
                            
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Windows Open): %s",d,m,y,h,mi,ssendernameresult);
                            
ChatLog(string);
                        }
                    }
                }
            }
        }
        return 
1;
    } 
When i edit Those COLOR_WHITE to COLOR_PINK it will only Dissapear when you talk but The color white will still be white on your screen how i fix that
Reply


Messages In This Thread
Local Chat >.< - by miley1 - 18.05.2012, 17:19
Re: Local Chat >.< - by milanosie - 18.05.2012, 17:28
Re: Local Chat >.< - by miley1 - 18.05.2012, 17:34
Re: Local Chat >.< - by miley1 - 18.05.2012, 17:36
Re: Local Chat >.< - by milanosie - 18.05.2012, 17:41
Re: Local Chat >.< - by miley1 - 18.05.2012, 17:50
Re: Local Chat >.< - by miley1 - 18.05.2012, 17:55
Re: Local Chat >.< - by milanosie - 18.05.2012, 17:56
Re: Local Chat >.< - by miley1 - 18.05.2012, 17:59
Re: Local Chat >.< - by miley1 - 18.05.2012, 18:03
Re: Local Chat >.< - by milanosie - 18.05.2012, 18:06
Re: Local Chat >.< - by miley1 - 18.05.2012, 18:07
Re: Local Chat >.< - by JAMMIEISFTW - 18.05.2012, 18:07
Re: Local Chat >.< - by Audi_Quattrix - 18.05.2012, 18:36
Re: Local Chat >.< - by miley1 - 18.05.2012, 19:12
Re: Local Chat >.< - by miley1 - 18.05.2012, 19:14
Re: Local Chat >.< - by milanosie - 18.05.2012, 19:25
Re: Local Chat >.< - by miley1 - 18.05.2012, 19:26
Re: Local Chat >.< - by milanosie - 18.05.2012, 19:29
Re: Local Chat >.< - by miley1 - 18.05.2012, 19:33

Forum Jump:


Users browsing this thread: 3 Guest(s)