chat help
#1

I have problem on my rp server .. some players cant write anything .. they can write but its not showing in chat they can just use /s(hout) /l(ow) /w(ink)

pawn Код:
if (realchat)
    {
        new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
            for(new b = 0; b < sizeof brojevi; b++)
            {
                new tekst = strlen(text);
                for(new i = 0; i<tekst; i++)
                    {
                    if(text[i] == brojevi[b])
                    text[i] = '*' ;
                       
                    }
            }
        if(gPlayerLogged[playerid] == 0)
        {
            return 0;
        }
        GetPlayerName(playerid, sendername, sizeof(sendername));
   
            if(PlayerInfo[playerid][pMaskuse] == 1)
            {
                format(string, sizeof(string), "Stranac kaze: %s", text);
                ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    ChatLog(string);
            }
            else
            {
                format(string, sizeof(string), " [%d] %s kaze: %s",playerid, sendername, text);
                ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    ChatLog(string);
            }
        }
        else
        {
            new carid = GetPlayerVehicleID(playerid);
            new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
            if(IsAPlane(carid) || IsABike(carid) || IsABoat(carid) || IsADjubretar(carid) || IsASweeper(carid) || IsARibar(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
            {
                if(PlayerInfo[playerid][pMaskuse] == 1)
                {
                    format(string, sizeof(string), "Stranac kaze: %s", text);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                        ChatLog(string);
                }
                else
                {
                    format(string, sizeof(string), " [%d] %s kaze: %s", playerid,sendername, text);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                        ChatLog(string);
                }
            }
            else
            {
                if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
                {
                        new brojevi[] = { '1','2','3','4','5','6','7','8','9'};
            for(new b = 0; b < sizeof brojevi; b++)
            {
                new tekst = strlen(text);
                for(new i = 0; i<tekst; i++)
                    {
                    if(text[i] == brojevi[b])
                    text[i] = '*' ;

                    }
            }
                    if(PlayerInfo[playerid][pMaskuse] == 1)
                    {
                        format(string, sizeof(string), "(Prozor Zatvoren) Stranac kaze: %s" ,text);
                        ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            ChatLog(string);
                    }
                    else
                    {
                        format(string, sizeof(string), "(Prozor Zatvoren) [%d] %s kaze: %s",playerid, sendername, text);
                        ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            ChatLog(string);
                    }
                }
                else
                {
                    if(PlayerInfo[playerid][pMaskuse] == 1)
                    {
                        format(string, sizeof(string), "(Prozor Otvoren) Stranac kaze: %s", text);
                        ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            ChatLog(string);
                    }
                    else
                    {
                        format(string, sizeof(string), "(Prozor Otvoren) [%d] %s kaze: %s", playerid,sendername, text);
                        ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                            ChatLog(string);
                    }
                }
            }
        }
        return 0;
}
Reply


Messages In This Thread
chat help - by Stereotype - 25.08.2012, 17:41
Re: chat help - by Akira297 - 25.08.2012, 17:45
Re: chat help - by Stereotype - 25.08.2012, 17:48
Re: chat help - by Stereotype - 25.08.2012, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)