Something wrong about this?
#1

I still see a white marker. And this is the only way I found on forum and wiki to hide player marker.

Код:
// OnPlayerconnect
	SetPlayerColor(playerid, White);
	for(new All = 0; All < MAX_PLAYERS; All++)
	{
		SetPlayerMarkerForPlayer(All, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00));
	}
And I don't want to use ShowPlayerMarkers because this will remove the markers. And I want to disable and enable them somethings for some players.
Reply
#2

Better use,
Код:
public OnGameModeInit()
{
ShowPlayerMarkers(0);
}
Fore more info,
ShowPlayerMarkers

And actually yours would have worked if you had done it this way,

Код:
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, White);
for(new All = 0; All < MAX_PLAYERS; All++)
{
SetPlayerMarkerForPlayer(playerid, All, 0xFFFFFF00);
}
return 0;
}
Reply
#3

K thanks I will test it.
Like I said if I use ShowPlayerMakers then I won't be able to enable them ingame for players.
Like if a player use /find
Things like that
Reply
#4

Doesnt work:
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, White);
for(new All = 0; All < MAX_PLAYERS; All++)
{
SetPlayerMarkerForPlayer(playerid, All, 0xFFFFFF00);
}
return 0;
}
Reply
#5

Sorry my bad.

Here
Код:
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, White);
for(new All = 0; All < MAX_PLAYERS; All++)
{
SetPlayerMarkerForPlayer(playerid, All, 0xFFFFFF00);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)