Jump to content
  • 0

Aceeasi problema .


3xTaSY

Question

Deci, am inlocuit SendPlayerMessageToAll cu SendClientMessageToAll, si acum, pe server, imi apare ceva de genul:

(Admin)(1): Text ..............

Adica, nu-mi apare nick-ul in fata.

[pawn]

SetPlayerChatBubble(playerid, text, 0xFF9900AA, 200.0, 10000);

   

    if(AccInfo[playerid][Level] > 0 && AccInfo[playerid][Hide] == 1)

    {

          format(PText, 256, "{15FF00}(%d): {FF0000}%s",playerid, text);

          SendClientMessageToAll(playerid, PText);

          return 0;

    }

    else if(AccInfo[playerid][Level] > 0 && AccInfo[playerid][Hide] == 0)

    {

          format(PText, 256, "{1900FF}(Admin){15FF00}(%d): {FFFFFF}%s", playerid, text);

          SendClientMessageToAll(playerid, PText);

          return 0;

    }

    else if(AccInfo[playerid][pVip] > 0)

    {

          format(PText, 256, "{FF0000}(VIP){15FF00}(%d): {FFFFFF}%s", playerid, text);

          SendClientMessageToAll(playerid, PText);

          return 0;

    }

    else if(AccInfo[playerid][Level] < 1 && AccInfo[playerid][pVip] < 1)

    {

          format(PText, 256, "{15FF00}(%d): {FFFFFF}%s", playerid, text);

          SendClientMessageToAll(playerid, PText);

          return 0;

    }

    return 1;

    }

[/pawn]

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

SetPlayerChatBubble(playerid, text, 0xFF9900AA, 200.0, 10000);
    new nume[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nume, sizeof(nume));

    if(AccInfo[playerid][Level] > 0 && AccInfo[playerid][Hide] == 1)
    {
          format(PText, 256, "{15FF00}(%d)(%s): {FF0000}%s",playerid,nume, text);
          SendClientMessageToAll(playerid, PText);
          return 0;
    }
    else if(AccInfo[playerid][Level] > 0 && AccInfo[playerid][Hide] == 0)
    {
          format(PText, 256, "{1900FF}(Admin){15FF00}(%d)(%s): {FFFFFF}%s", playerid,nume, text);
          SendClientMessageToAll(playerid, PText);
          return 0;
    }
    else if(AccInfo[playerid][pVip] > 0)
    {
          format(PText, 256, "{FF0000}(VIP){15FF00}(%d)(%s): {FFFFFF}%s", playerid,nume, text);
          SendClientMessageToAll(playerid, PText);
          return 0;
    }
    else if(AccInfo[playerid][Level] < 1 && AccInfo[playerid][pVip] < 1)
    {
          format(PText, 256, "{15FF00}(%d)(%s): {FFFFFF}%s", playerid,nume, text);
          SendClientMessageToAll(playerid, PText);
          return 0;
    }
    return 1;
    }

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

el vrea asa...

Nume(ADMIN)(1): TEXT

Dar cum iai dat tu (gireada) , daca o sa faca asa

format(PText, 256, "%s{1900FF}(Admin){15FF00}(%d): {FFFFFF}%s",name , playerid, text);

o sa aiba MEREU numele negru , nu i se coloreaza numele dupa cum il are el normal:D pt ca el are acest "Bubble" in LuxAdmin si deaceea , sa il mute in GM trebuie sa mute tot lux adminu cred..:))

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

aha si cum faci sa ti se schimbe culoarea la nume cand dai /changemycolor ? :)) ca nu cred ca vrea sa aibe toti adminii si vipi aceeasi culoare mereu la nume

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

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.