Jump to content
  • 0

Question

Posted

Nick:r0bi

Problema: Cand pun masca in TAB numele meu apare cu negru!

Erori / warnings:-

Lini/script:

CMD:maskon(playerid, params[])

{

        new string[120];

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)

            {

              for(new i = 0; i < MAX_PLAYERS; i++)

                {

                    if(IsPlayerConnected(i))

                    {

                        ShowPlayerNameTagForPlayer(i, playerid, 0);

                        //SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);

                        SetPlayerMarkerForPlayer(i, playerid, 00);

                        SetPlayerColor(playerid, 0xFFFFFFFF);

                  }

              }

              PlayerInfo[playerid][pMaskuse] = 1;

              SendClientMessage(playerid, COLOR_2, "Ti-ai pus Masca ! [/maskoff] ca sa o scoti.");

              GetPlayerName(playerid, sendername, sizeof(sendername));

              format(string, sizeof(string), "* %s si-a pus masca.", sendername);

              return TeamChatHit(string);

            }

        }

        return 1;

}

Ai incercat sa rezolvi singur ?: am incercat de sute de ori...fara rezultat

2 answers to this question

Recommended Posts

Posted

Poftim:

[pawn]CMD:maskon(playerid, params[])

{

        new string[120];

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)

            {

              for(new i = 0; i < MAX_PLAYERS; i++)

                {

                    if(IsPlayerConnected(i))

                    {

                        ShowPlayerNameTagForPlayer(i, playerid, 0);

                        //SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);

                        SetPlayerMarkerForPlayer(i, playerid, 00);

                  }

              }

              PlayerInfo[playerid][pMaskuse] = 1;

              SendClientMessage(playerid, COLOR_2, "Ti-ai pus Masca ! [/maskoff] ca sa o scoti.");

              GetPlayerName(playerid, sendername, sizeof(sendername));

              format(string, sizeof(string), "* %s si-a pus masca.", sendername);

              return TeamChatHit(string);

            }

        }

        return 1;

}[/pawn]

 

 

Posted

Logic, cum a spus si Adrian, trebe doar scoasa linia:

[pawn]SetPlayerColor(playerid, 0xFFFFFFFF);[/pawn]

Aceasta functie seteaza culoarea numelui pe TAB:      //SetPlayerColor(playerid, [culoare])

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.