Do not show TEXTDRAW when watching a player
#1

PHP код:
new PlayerText:HealthTv;
        
HealthTv CreatePlayerTextDraw(playerid,195.000000399.000000"Health:");
    
PlayerTextDrawBackgroundColor(playerid,HealthTv255);
    
PlayerTextDrawFont(playerid,HealthTv1);
    
PlayerTextDrawLetterSize(playerid,HealthTv0.5000002.400000);
    
PlayerTextDrawColor(playerid,HealthTv, -16776961);
    
PlayerTextDrawSetOutline(playerid,HealthTv0);
    
PlayerTextDrawSetProportional(playerid,HealthTv1);
    
PlayerTextDrawSetShadow(playerid,HealthTv1);
    
PlayerTextDrawSetSelectable(playerid,HealthTv0); 
Public update 1 second when watching a player
PHP код:
for(new 0MAX_PLAYERSi++)
 {
  if(
IsPlayerConnected(i))
  {
    new 
targ,stringtv[100];
    new 
Float:health;
    
targ gSpectateID[i]; //Spectate -ID player watched
    
GetPlayerHealth(targhealth);
    if(
GetPlayerState(i) == PLAYER_STATE_SPECTATING)
    {
        
format(stringtvsizeof(stringtv),"Health:%2.f ",health);
        
PlayerTextDrawSetString(i,PlayerText:HealthTv,stringtv);
        
PlayerTextDrawShow(i,PlayerText:HealthTv);
        
    }
    }
  } 
textwind is missing (
Reply


Messages In This Thread
Do not show TEXTDRAW when watching a player - by EvgeniyHostel1992 - 08.04.2018, 10:38
Re: Do not show TEXTDRAW when watching a player - by ForCop - 08.04.2018, 10:47
Re: Do not show TEXTDRAW when watching a player - by EvgeniyHostel1992 - 08.04.2018, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)