SA-MP Forums Archive
SetPlayerMakrerForPlayer - Need help plzz - 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)
+--- Thread: SetPlayerMakrerForPlayer - Need help plzz (/showthread.php?tid=312985)



SetPlayerMakrerForPlayer - Need help plzz - oli67 - 23.01.2012

Hey, I've got a problem, on my TDM server I've made a class system with a sniper class. I've tried to make the sniper class invisible on they map but it don't work.

My code:

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
 {
  SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
 }
Bye Oli67

PS: The team color in the chat must be the same & sorry for bad english ^^


Re: SetPlayerMakrerForPlayer - Need help plzz - MAVERICKS - 23.01.2012

you can check out here:
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
btw use this:
pawn Код:
// Make player 42 see player 1 as a red marker
SetPlayerMarkerForPlayer( 42, 1, 0xFF0000FF );
 
// Make the players marker an invisible white (chat will be white but marker will be gone).
SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
 
// Make the players marker invisible to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );
 
// Make the players marker fully opaque (solid) to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) | 0x000000FF ) );
pawn Код:
public OnGameModeInit()
{
    // Player markers only visible to near players
    ShowPlayerMarkers(2);
}
pawn Код:
public OnGameModeInit()
{
    LimitPlayerMarkerRadius(100.0);
}



Re : SetPlayerMakrerForPlayer - Need help plzz - oli67 - 23.01.2012

I used this..

ShowPlayerMarkers is only for OnGameModeInit
The players must be invisible on the minimap only if they have the sniper class ^^