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
#2

RAvens roleplay uses proxdetector..
Search for that
Reply
#3

ah i hate it But anyway thanks >.<
Reply
#4

Thanks bro A question i cant edit it to ProxDetector(20.0, playerid, string,COLOR_PINK); instead of ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);?


Edited Ah i just found out its very outdated stuff could Anyone explain how u might Turn The chat Color that dissapear on my screen into PINK?
Reply
#5

No, just replace them all with COLOR_PINK..
Thats how proxdetector works.
Reply
#6

Bro if it work i will Rep you keep going u do great
Reply
#7

Quote:

C:\Users\Snor!\Desktop\Real Life ENG\gamemodes\audi.pwn(41192) : error 017: undefined symbol "COLOR_PINK1"
C:\Users\Snor!\Desktop\Real Life ENG\gamemodes\audi.pwn(41221) : error 017: undefined symbol "COLOR_PINK1"
C:\Users\Snor!\Desktop\Real Life ENG\gamemodes\audi.pwn(41251) : error 017: undefined symbol "COLOR_PINK1"
C:\Users\Snor!\Desktop\Real Life ENG\gamemodes\audi.pwn(41279) : error 017: undefined symbol "COLOR_PINK1"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Others aint giving errors all been moved to Pink 1 pink 2 etc how i fix?
Reply
#8

You did not define COLOR_PINK1

ADd on top of the script:

pawn Code:
#define COLOR_PINK1 0xFF66FFAA
Reply
#9

Quote:
Originally Posted by milanosie
View Post
You did not define COLOR_PINK1

ADd on top of the script:

pawn Code:
#define COLOR_PINK1 0xFF66FFAA
Ill try bro 2 rep for u if it work
Reply
#10

Ah sorry For the spam Milan but Also ther others arent Defined , Please tell me the codes lol? Ill give you 4 rep points ,Also pls give me some link for the color ids so i may do it my own next time


#define COLOR_PINK2 0xFF66FFAA
#define COLOR_PINK3 0xFF66FFAA
#define COLOR_PINK4 0xFF66FFAA
#define COLOR_PINK5 0xFF66FFAA

Probally wont work because this aint same 2

#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
Reply
#11

I do not care about rep points but go ahead.

E01BBC
C429A8
9C518E
8C6585

Just made those myself, I can be wrong though.
Not that good with RGB codes

And put AA after all, thats the transparancy
Reply
#12

Ill try it haha ty and here you rep points other 2 tomorrow i think i can only once 24 hours
Reply
#13

use
pawn Code:
#Define COLOR_COLORNAME 0xCOLORCODE
Next time :P
Reply
#14

LOL Ur Gamemode is Called audi same as my Stunt Gamemode
Reply
#15

Lol AWESUME xD
Reply
#16

Milan If i write i see it As lightpink If others write i see it as Dark pink might to Give me only might pink/.?
Reply
#17

that depends on the distance,

the 5th color is far away,
the 4th closer.
etc.

lighter means that the ohte rplayer is closer

you can jsut use COLOR_PINK1 for all 5
Reply
#18

LOL! why didnt you tell me that before XD
Reply
#19

Quote:
Originally Posted by miley1
View Post
LOL! why didnt you tell me that before XD
I told you COLOR_PINK


You made it COLOR_PINK1...

So you are the one who changed the code, not me.
Why do I need to tell you that you are having pepsi if Im handing you a pepsi?

You drink cola instead....


If you get what I mean
Reply
#20

lol... i do know what ya mean haha , [[ Ima take a pepsi right now anyway ]]
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)