Need help hide player marker for team - 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: Need help hide player marker for team (
/showthread.php?tid=421332)
Need help hide player marker for team -
Broker - 09.03.2013
hello guys.. i make hide player marker for team.. the function is : "Hide player marker team for another team"
the script :
pawn Код:
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i ) || i == playerid ) continue;
if( GetPlayerTeam( playerid ) != GetPlayerTeam( i ) )
{
SetPlayerMarkerForPlayer( playerid, i, 0xFFFFFF00 );
SetPlayerMarkerForPlayer( i, playerid, 0xFFFFFF00 );
// Hide the player's marker from someone on the other team, and vice-versa
}
}
whats wrong ?
Re: Need help hide player marker for team -
DaRk_RaiN - 09.03.2013
pawn Код:
//Try this
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( GetPlayerTeam( playerid ) != GetPlayerTeam( i ) && i != playerid )
{
SetPlayerMarkerForPlayer( playerid, i, 0xFFFFFF00 );
SetPlayerMarkerForPlayer( i, playerid, 0xFFFFFF00 );
}
}
Re: Need help hide player marker for team -
Broker - 09.03.2013
Quote:
Originally Posted by DaRk_RaiN
pawn Код:
//Try this for( new i = 0; i < MAX_PLAYERS; i++ ) { if( GetPlayerTeam( playerid ) != GetPlayerTeam( i ) && i != playerid ) { SetPlayerMarkerForPlayer( playerid, i, 0xFFFFFF00 ); SetPlayerMarkerForPlayer( i, playerid, 0xFFFFFF00 ); } }
|
no work