Jump to content
  • 0

Chat


Versace

Question

Am adaugat ca cei care au vip sa aiba scrisul colorat cand scriu pe chat dar apare si [VIP]says si says: apar 2 mesaje 

   	if (realchat)
	{
	    if(gPlayerLogged[playerid] == 0)
	    {
	        return 0;
      	}
    if(PlayerInfo[playerid][pHelper] > 0 || PlayerInfo[playerid][pAdmin] > 0)
        {
            format(string, sizeof(string), "{#FFFFFF} %s{FFFFFF} Says: %s", sendername, text);
            SetPlayerChatBubble(playerid, string, 0xF6F6F6FF, 20.0, 8000);
        }
		GetPlayerName(playerid, sendername, sizeof(sendername));
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		SetTimerEx("AntiChatSpam", 1000, false, "i", playerid);
        Ptexted[playerid] = 1;
       	if(Ptexted[playerid] == 1 && PlayerInfo[playerid][pAdmin] == 0)
       	{
        SendClientMessage(playerid, COLOR_WHITE, "{CCFF99}[AntiSpam] {ffffff}Wait 2 seconds!");
        return 0;
       	}
		GetPlayerName(playerid, sendername, sizeof(sendername));
		if(PlayerInfo[playerid][pDonateRank] > 0)
		{
		format(string, sizeof(string), "{4200F7}[V.I.P] %s{FFFFFF} Says: %s", sendername, text);
		}
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		SetTimerEx("AntiChatSpam", 1000, false, "i", playerid);
        Ptexted[playerid] = 1;
		return 0;
	}
	return 1;
}

Daca scot vip-ul tot la fel se scriu doua randuri in chat de 2 ori.

Vreau daca ai vip sa-ti apara doar un rand

Daca nu ai vip sa-ti apara cu alb ca civl,sau ca restul,doar la vip sa apara cu culorea respectiva.

Edited by w1zzan
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.