SA-MP Forums Archive
Something wrong about this? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Something wrong about this? (/showthread.php?tid=230425)



Something wrong about this? - KaleOtter - 23.02.2011

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.


Re: Something wrong about this? - deather - 23.02.2011

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;
}



Re: Something wrong about this? - KaleOtter - 23.02.2011

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


Re: Something wrong about this? - KaleOtter - 23.02.2011

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


Re: Something wrong about this? - deather - 24.02.2011

Sorry my bad.

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