A problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: A problem (
/showthread.php?tid=392523)
A problem -
x96664 - 14.11.2012
Hi, I wanted to make the playermarkers for the npcs in my server invisible by doing this:
pawn Код:
forward ShowNPCMarker (playerid);
public ShowNPCMarker(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(IsPlayerNPC(playerid))
{
SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00 );
}
}
}
}
But they are still visible on the minimap, please help me!
Re: A problem -
kanersps - 14.11.2012
I dont realy know whats wrong and if i use this in my script it just works?
Re: A problem -
x96664 - 14.11.2012
Quote:
Originally Posted by kanersps
I dont realy know whats wrong and if i use this in my script it just works?
|
On the minimap the player marker icons are visible but I want them to be INvisible.
Re: A problem -
3ventic - 16.11.2012
Do you call the function anywhere?
Re: A problem -
ShOoBy - 16.11.2012
That's not the right way to make the markers invisible on the minimap.. instead of that add this:
PHP код:
forward ShowNPCMarker ();
public ShowNPCMarker()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && IsPlayerNPC(i))
{
SetPlayerColor(i, GetPlayerColor(i) - (GetPlayerColor(i) & 0x000000FF) - 255);
}
}
}
This is a snippet taken from 0Hide, gratz to Zh3r0 for his script :
https://sampforum.blast.hk/showthread.php?tid=262414