Jump to content

Question

Posted

Problema intalnita (descriere): Totul merge ok. Structura e bine facuta insa in joc nu imi apare text-drawul ce ar trebuii sa apara
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):

public OnGameModeInit()
{
        for(new i=0;i<MAX_PLAYERS;i++){
        SafeText[i] = TextDrawCreate(60.000000, 426.000000, "SafeZone");
		TextDrawBackgroundColor(SafeText[i], 255);
		TextDrawFont(SafeText[i], 3);
		TextDrawLetterSize(SafeText[i], 0.369999, 1.300000);
		TextDrawColor(SafeText[i], -1);
		TextDrawSetOutline(SafeText[i], 1);
		TextDrawSetProportional(SafeText[i], 1);
		TextDrawUseBox(SafeText[i], 1);
		TextDrawBoxColor(SafeText[i], 255);
		TextDrawTextSize(SafeText[i], 118.000000, 2.000000);
		}
return 1;
public OnPlayerConnect(playerid)
{
    for(new Sz; Sz < MAX_SZ; Sz++)
    {
    	for(new i=0;i<MAX_PLAYERS;i++)
		{
  			if(IsPlayerInRangeOfPoint(playerid,50.0,1795.181030,-1863.689941,13.574766) || IsPlayerInRangeOfPoint(playerid,50.0,1545.241210,-1683.332763,13.556713) || IsPlayerInRangeOfPoint(playerid,35.0,-57.749824,-1130.877807,1.078125) || IsPlayerInRangeOfPoint(playerid,40.0,382.820648,-2070.391845,7.835937) || IsPlayerInRangeOfPoint(playerid,35.0, 1469.504760,-1023.742126,23.833103) || IsPlayerInRangeOfPoint(playerid,200.0, -380.148132,-1428.575439,25.726562))
			{
	 			TextDrawShowForPlayer(i, SafeText[i]);
			}
 			if(!(IsPlayerInRangeOfPoint(playerid,50.0,1795.181030,-1863.689941,13.574766) || IsPlayerInRangeOfPoint(playerid,50.0,1545.241210,-1683.332763,13.556713) || IsPlayerInRangeOfPoint(playerid,35.0,-57.749824,-1130.877807,1.078125) || IsPlayerInRangeOfPoint(playerid,40.0,382.820648,-2070.391845,7.835937) || IsPlayerInRangeOfPoint(playerid,35.0, 1469.504760,-1023.742126,23.833103) || IsPlayerInRangeOfPoint(playerid,200.0, -380.148132,-1428.575439,25.726562)))
			{
				TextDrawHideForPlayer(i, SafeText[i]);
			}
		}
	}
	return 1;
}


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da 

2 answers to this question

Recommended Posts

  • 0
Posted

    foreach(Player, i)
    {
        if(IsPlayerInRangeOfPoint(i, 40.0, x,y,z)) 
         {
             TextDrawShowForPlayer(i, SafeZone);
        }
        else if(IsPlayerInRangeOfPoint(i, 40.0,x,y,z)) 
         {
             TextDrawShowForPlayer(i, SafeText);
        }
         else if(IsPlayerInRangeOfPoint(i, 50.0,x,y,z)) 
         {
             TextDrawShowForPlayer(i, SafeText[i]);
        }
        else if(IsPlayerInRangeOfPoint(i, 30.0 ,x,y,z)) 
         {
             TextDrawShowForPlayer(i, SafeText);
        }
        else if(IsPlayerInRangeOfPoint(i, 50.0,x,y,z)) 

      {
             TextDrawShowForPlayer(i, SafeText);
        }
        else if(IsPlayerInRangeOfPoint(i, 30.0,x,y,z)) 
         {
             TextDrawShowForPlayer(i, SafeText);
        }
        else if(IsPlayerInRangeOfPoint(i, 30.0,x,y,z)) 
         {
             TextDrawShowForPlayer(i, SafeText);
         }
         else
         {
             TextDrawHideForPlayer(i, SafeText);
         }
    }

 

pune asta la public OtherTimer();

si tot asa poti sa adaugi cate vrei tu.

+1 daca te-am ajutat.

Respect acestei comunitati, dar mai presus respect membrilor ei !

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.