Jump to content

Ath9

Membru
  • Posts

    171
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Ath9

  1.     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.

  2. new stringsss[128];

    TextDrawShowForPlayer(i, Td-ul de la speed);

    TextDrawSetString(Td-ul de la speed, stringsss);

    format(stringsss, 100, "Speed: ~y~%d ~w~KM/H",GetVehicleSpeed(vehicleid));

    si undeva la inceputul gm-ului adauga stock-ul:

     

     

    stock GetVehicleSpeed(vehicleid)
    {
        new Float:a,Float:b,Float:c,vel;
        GetVehicleVelocity(vehicleid, a, b, c);

        vel = floatround(floatsqroot(a*a + b*b + c*c)*180);
        return vel;
    }

     

     

  3. Pai lock/unlock trebuie sa vezi, pentru ca daca masina e deschisa, hidetextdrawforplayer(i, lock[playerid] sau invers, si la benzina ai 100 L, si acel L(litri) se suprapune cu xlitri. Incearca sa pui in loc de 

     

    1. if(!IsABike(vehicle))
    2.                                 {
    3.                                         TextDrawShowForPlayer(i, Fuell);
    4.                                         format(str2,sizeof(str2),"BENZINA: ~y~%d% ~w~L", Gas[vehicle]);
    5.                                         TextDrawSetString(Benzina, str2);
    6.                                         TextDrawShowForPlayer(i, Benzina);
    7.                                         TextDrawShowForPlayer(i, xlitri);
    8.                                 }
    pune asta
    if(!IsABike(vehicle))
    1.                                 {
    2.                                         TextDrawShowForPlayer(i, Fuell);
    3.                                         format(str2,sizeof(str2),"BENZINA: ~y~%d%", Gas[vehicle]);
    4.                                         TextDrawSetString(Benzina, str2);
    5.                                         TextDrawShowForPlayer(i, Benzina);
    6.                                         TextDrawShowForPlayer(i, xlitri);
    7.                                 }
×
×
  • 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.