How can I make admins available on map when they go on-duty with the color cyan?
#7

Quote:
Originally Posted by Elie1996
Посмотреть сообщение
What she did was replace All of your un-neccessary lines, which check if the player is an admin.
You had each line check each level, which is un-needed, since anyone's admin level whom is higher than 1 is considered an admin.
So she replaced:
if(/*check if player is admin level 1*/)

pawn Код:
if(Playerinfo[playerid][pAdmin] == 1)
{
 SetPlayerColor(playerid,COLOR_CYAN);
}
if(Playerinfo[playerid][pAdmin] == 2)
{
 SetPlayerColor(playerid,COLOR_CYAN);
}
....
//ETC
With a shorter Code, which is also more efficient:
pawn Код:
if(Playerinfo[playerid][pAdmin] >= 1) // DIFFERENCE LIES HERE! INSTEAD OF " Playerinfo == 1 --> Playerinfo == 2" etc, she put: playerinfo >=1
{
 SetPlayerColor(playerid,COLOR_CYAN);
}
As for your main question, you will have to set the player's marker as visible, I believe it should work when you add this code in:
I dont mean to change player's color. I mean:

When an admin goes on duty , all players can found him on the radar (map) (Marked with the color cyan)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)