Szerző Téma: FS hiba...(Prog.bar)  (Megtekintve 353 alkalommal)

dexi

  • Vendég
FS hiba...(Prog.bar)
« Dátum: 2011. december 27. - 16:10:16 »
0 Show voters
#define FILTERSCRIPT
#include <a_samp>
#include <progressbar>
#pragma tabsize 0
new Bar:kocsihp;
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnFilterScriptInit()
{
SetTimer(\"asder\",500,1);
kocsihp = CreateProgressBar(548.00, 57.00, 58.50, 5.50, 4448426, 1000.0);
HideProgressBarForAll(kocsihp);
return 1;
}
public OnFilterScriptExit()
{
DestroyProgressBar(kocsihp);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{            SetTimer(\"kesleltetes\",2000,0);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
HideProgressBarForPlayer(playerid,kocsihp);
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
 
/*----------------------------------*/
forward asder(playerid);
public asder(playerid)
{
        /*-----*/
              new Float:health;
               GetVehicleHealth(GetPlayerVehicleID(playerid), health);
               SetProgressBarValue(kocsihp, health);
               UpdateProgressBar(kocsihp, playerid);
   return 1;
}
/*----------------------------------*/
forward kesleltetes(playerid);
public kesleltetes(playerid)
{
ShowProgressBarForPlayer(playerid,kocsihp);
return 1;
}

 
Itt az FS-em. Valamiért nem tünik el a prog bar mikor kiszállok a kocsiból.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal