Jump to content
  • 0

Intrebare SetPlayerChatBubble


hopingsteam

Question

Deci am asa:

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

        {

            format(string, sizeof(string), "[Admin]: %s ", text);

SetPlayerChatBubble(playerid, string, 0xFFFF00FF||0x008ACCFF||0xD26900FF||0x00A452FF||0x804040FF, 30.0, 8000);

        }

Vreau atunci cand un admin scrie mai mute prop. fiecare prop. sa fie colorata cumva ! Ei bine eu am bagat codul de mai sus si numai negru scrie :(( !

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

Guest farse

|| e 'logical' nu random .

 if(PlayerInfo[playerid][pAdmin] >= 1)
         {
             format(string, sizeof(string), "[Admin]: %s ", text);
new color;
switch(random(5))
{
case 0:color=0xFFFF00FF;
case 1:color=0x008ACCFF;
case 2:color=0xD26900FF;
case 3:color=0x00A452FF;
case 4:color=0x804040FF;
}
          SetPlayerChatBubble(playerid, string,color, 30.0, 8000);
         }

Link to comment
Share on other sites

public OnPlayerSpawn(playerid)

{

    PlayerInfo[playerid][spawnAngle] = 0.0; //so when you leave and another player comes, the camera will start from start

    PlayerInfo[playerid][spawnDance] = true; //to not execute to much timers

    ShowPlayerNameTagForPlayer(playerid, i, 0);

error 017: undefined symbol "i"

Link to comment
Share on other sites

Guest farse

ShowNameTags( 0 ); http://wiki.sa-mp.com/wiki/ShowNameTags

SetNameTagDrawDistance( 10); http://wiki.sa-mp.com/wiki/SetNameTagDrawDistance

Astea le pui la OnGameModeInit

Link to comment
Share on other sites

if(strcmp(cmd, "/parcareinfo", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if(PlayerToPoint(5.0, playerid, 3914.6191,-745.1755,10.0126))

{

SendClientMessage(playerid, COLOR_GRAD2, "  Nu esti langa parcare!");

return 1;

}

        SendClientMessage(playerid, COLOR_WHITE,"*** Parcare *** Daca ai venit aici, inseamna ca vrei sa te distrezi.");

SendClientMessage(playerid, COLOR_WHITE,"*** Parcare *** Pentru a nu ramane masina ta pe strada, parcheaz-o in parcare !");

SendClientMessage(playerid, COLOR_WHITE,"*** Parcare *** Te sfatuim sa angajezi un bodyguard pentru a nu fi furata masina.");

SendClientMessage(playerid, COLOR_WHITE,"*** Parcare *** Daca nu e parcata regulamentar (ex. ocupa 3 locuri) vei primi amenda !");

}

return 1;

}

Ce este gresit ... Daca dau /parcareinfo de la coordonatele de mai sus imi spune ca nu sunt langa parcare, desi eu sunt acolo :(

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.