Jump to content
  • 0

Problema grava > Chat <


Cizda9000

Question

Salut, am o problema la Chat si nu am gasit nicaieri rezolvarea. In momentul in care te inregistrezi, si te loghezi nu pot scrie absolut nimic pe chat-ul normal, ci doar folosind /s(hout) sau /b . Insa poti scrie pe chat daca iesi din joc si intri iarasi (relog). As vrea sa stiu cum pot rezolva sa poti folosi chatul normal fara sa mai dai relog dupa inregistrare

Nu stiu neaparat daca e legat de acest cod, dar asta am eu la if (realchat) :

if (realchat)

{

    if(gPlayerLogged[playerid] == 0)

    {

        return 0;

      }

        new i;

while (text[++i])

{

if(text > 64 && text< 91) text += 32;

}

if(PlayerInfo[playerid][pAdmin] >= 1)

{

    new Colors[] = { COLOR_WHITE, COLOR_YELLOW, COLOR_LIGHTGREEN, COLOR_LIGHTRED, TEAM_GROVE_COLOR, 0x008100AA };

SetPlayerChatBubble(playerid,says: text, Colors[random(sizeof(Colors))], 50.0, 5000);

}

if(PlayerInfo[playerid][pAdmin] >= 1)

      {

        format(string, sizeof(string), " %s ", text);

        SetPlayerChatBubble(playerid, string, 0xFFFF80FF, 30.0, 8000);

        }

GetPlayerName(playerid, sendername, sizeof(sendername));

format(string, sizeof(string), "%s Says: %s", sendername, text);

ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);

return 0;

}

return 1;

}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.