Jump to content
  • 0

SetPlayerMarkerForPlayer


Question

Posted

Ideea e ca ,codul prezentat de mine trebuiesa faca urmatoarele:

-sa arate "Marcarele" jucatorilor din echipa ,sa zice, Albastra doar celor din echipa albastra,iar pentru cei din echipa rosie,sa fie invizibili.

NOTA: La un moment dat codul chiar functioneaza dar cand 2 jucatori din echipe diferite ajunga aproape unul de celalalt "Marcarele" devin vizibile.

[pawn]public ShowTeamMarkers(playerid)

{

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

    {

        if (IsPlayerConnected(i))

        {

            if(gTeam[playerid] == gTeam)

            {

                SetPlayerMarkerForPlayer( playerid, i, GetPlayerColor(i) );

                SetPlayerMarkerForPlayer( i, playerid, GetPlayerColor(playerid) );

            }

            else

            {

                SetPlayerMarkerForPlayer( playerid, i, ( GetPlayerColor( i ) & 0xFFFFFF00 ) );

                SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );

            }

        }

    }

}

[/pawn]

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.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.