Prima Pagină
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

[SA:MP]Real Chat Color for Admin

2 participanți

In jos

[SA:MP]Real Chat Color for Admin   Empty [SA:MP]Real Chat Color for Admin

Mesaj  Cristi Mier Ian 11, 2012 4:50 am

Descriere: Acest script va face ca chatul adminilor sa apara colorat:

Cautam:



Cod:
if (realchat)




si de la acesta functie if (realchat) pana la } return 0; inlocuim cu:


Cod:
Cod:
if (realchat)
    {
        if(gPlayerLogged[playerid] == 0)
        {
            return 0;
          }
        new i;
        while (text[++i])
        {
            if(text[i] > 64 && text[i]< 91) text[i] += 32;
        }
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            new Colors[] = { COLOR_WHITE, COLOR_YELLOW, COLOR_LIGHTGREEN, TEAM_ORANGE_COLOR, 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;
    }

Cristi
Administrator
Administrator

Mesaje : 139
Data nasterii : 13/04/1990
Data de inscriere : 10/01/2012
Varsta : 34
Localizare : Bucurestii
Stare de spirit : Indragostit

http://pariucuviata.dust.tv/

Sus In jos

[SA:MP]Real Chat Color for Admin   Empty Re: [SA:MP]Real Chat Color for Admin

Mesaj  RobiCR9 Mier Ian 11, 2012 5:00 am

foarte tare :X

RobiCR9
V.I.P
V.I.P

Mesaje : 252
Data nasterii : 04/06/1993
Data de inscriere : 11/01/2012
Varsta : 30
Localizare : Valcea
Stare de spirit : buna :x

Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum