On player marker
#1

Hey guys i have a War sistem but i want to make a marker for every player in War attackers and defenders i have only this

Код HTML:
public OnPlayerStreamIn(playerid, forplayerid)
{
    if(Undercover[playerid] == 1)
	{
	    TeamColor(playerid);
		ShowPlayerNameTagForPlayer(forplayerid, playerid, 0);
		SetPlayerMarkerForPlayer( playerid, forplayerid, ( GetPlayerColor( forplayerid ) & 0xFFFFFF00 ) );
		SetPlayerMarkerForPlayer( forplayerid, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
		return 1;
	}
 	if(IsInWar1(playerid) && IsInWar1(forplayerid) || IsInWar2(playerid) && IsInWar2(forplayerid))
	{
	    new zone = GetPlayerZone(playerid);
	    if(zone == -1 || TakeON[zone] == 0 || !IsPlayerInZone(forplayerid, zone))
	    {
	        SetPlayerMarkerForPlayer( playerid, forplayerid, ( GetPlayerColor( forplayerid ) ) );
			SetPlayerMarkerForPlayer( forplayerid, playerid, ( GetPlayerColor( playerid ) ) );
	    }
	}
	else
	{
	    if(PlayerPaintballing[playerid] && PlayerPaintballing[forplayerid] || InClanWar[playerid] && InClanWar[forplayerid])
		{
			SetPlayerMarkerForPlayer( playerid, forplayerid, GetPlayerColor( forplayerid ) );
			SetPlayerMarkerForPlayer( forplayerid, playerid, GetPlayerColor( playerid ) );
		}
		else
		{
			SetPlayerMarkerForPlayer( playerid, forplayerid, ( GetPlayerColor( forplayerid ) & 0xFFFFFF00 ) );
			SetPlayerMarkerForPlayer( forplayerid, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
		}
	}
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	if(!IsInWar1(playerid) && !IsInWar2(playerid) && !IsInWar1(forplayerid) && !IsInWar2(forplayerid))
	{
	    SetPlayerMarkerForPlayer( playerid, forplayerid, ( GetPlayerColor( forplayerid ) & 0xFFFFFF00 ) );
		SetPlayerMarkerForPlayer( forplayerid, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
	}
	return 1;
}
nothing else is something wrong why i can't see my team mate's or oponent's ? can some1 help me ?
Reply


Messages In This Thread
On player marker - by StR_MaRy - 12.09.2016, 21:50
Re: On player marker - by Sew_Sumi - 12.09.2016, 23:16
Re: On player marker - by StR_MaRy - 12.09.2016, 23:18
Re: On player marker - by Sew_Sumi - 12.09.2016, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)