29.04.2010, 11:46
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerToTeamColor(playerid);
if(gTeam[playerid] == TEAM_GREEN) {
GameTextForPlayer(playerid,
"~b~Kill Spetznatz",
6000,5);
}
else if(gTeam[playerid] == TEAM_BLUE) {
GameTextForPlayer(playerid,
"~b~Kill USA",
6000,5);
}
for (new i = 0, max = GetMaxPlayers(); i < max; i++)
{
if (i != playerid)
{
if (playerid's team is not the same as i's team)
{
// Make the players marker invisible to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used
SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
ShowPlayerNameTagForPlayer(i, playerid, false);
}
}
}
return 1;
}
return 0;
}