- 0
Problema grava > Chat <
-
Similar Content
-
- 6 replies
- 252 views
-
- 1 answer
- 405 views
-
- 4 replies
- 219 views
-
- 3 answers
- 393 views
-
- 3 replies
- 188 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Cizda9000
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