02.09.2013, 03:05
how can i make that only a team for example cops can see a player with a diferent color but
without showing it in the map
please help
without showing it in the map
please help
SetPlayerColor(playerid, 0x0000FF00);
public OnPlayerStreamIn( playerid, forplayerid )
{
if( gTeam[ playerid == gTeam[ forplayerid ] ) // CHANGE THEM TO YOURS
{
SetPlayerMarkerForPlayer( forplayerid, playerid, GetPlayerColor( playerid ) );
}
}
public OnPlayerStreamOut( playerid, forplayerid )
{
if( gTeam[ playerid == gTeam[ forplayerid ] ) // CHANGE THEM TO YOURS
{
SetPlayerMarkerForPlayer( forplayerid, playerid, GetPlayerColor( playerid ) );
}
}
#include <a_samp>
// more #include ...
// #define ...
public OnPlayerConnect(playerid)
{
// some code
return 1;
}
// other callbacks
public OnPlayerStreamIn( playerid, forplayerid )
{
if( gTeam[ playerid == gTeam[ forplayerid ] ) // CHANGE THEM TO YOURS
{
SetPlayerMarkerForPlayer( forplayerid, playerid, GetPlayerColor( playerid ) );
}
}
public OnPlayerStreamOut( playerid, forplayerid )
{
if( gTeam[ playerid == gTeam[ forplayerid ] ) // CHANGE THEM TO YOURS
{
SetPlayerMarkerForPlayer( forplayerid, playerid, GetPlayerColor( playerid ) );
}
}