14.10.2016, 02:23
hey guys why this stream wont work ? i mean i want to see my team mates and opponents only in that attacked turf
Under OnGameModeInit , showplayermarker(0); why is not working ? if i put it 1 i see only at war but i see in every turf not only in that attacked one
Код 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; }