Markers Help
#1

iv made an admin duty command and it is working fine but it is supposed to show the on duty admin marker on minimap for every one but it isn't doing it I have this code on player update
PHP код:
        if(aDuty[playerid]==1)
        {
            for(new 
i=0i<MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i) && Logged[i]>0)
                {
                    
SetPlayerMarkerForPlayer(playeridiGetPlayerColor(playerid));
                }
            }
        } 
Reply
#2

Why not just use the admin duty color instead of GetPlayerColor?

You need to change the parameters around.

Код:
SetPlayerMarkerForPlayer(i, playerid, 0x00000FF)
Reply
#3

nevermind check that up
Reply
#4

Quote:
Originally Posted by silverms
Посмотреть сообщение
I have this code on player update
WHY? Just put it in the duty command. And if it's supposed to be for everyone you may as well just use SetPlayerColor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)