SetPlayerMakrerForPlayer - Need help plzz
#1

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 ^^
Reply
#2

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);
}
Reply
#3

I used this..

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


Forum Jump:


Users browsing this thread: 1 Guest(s)