#include <progressbar>
OnGameModeInit:
/*-----------*/
kocsihp = CreateProgressBar(548.00, 57.00, 58.50, 5.50, 4448426, 1000.0);
/*------------*/
Mod teteje:
new Bar:kocsihp;
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetTimer(\"asder\",500,1);
}
return 1;
}
/*----------------------------------*/
forward asder(playerid);
public asder(playerid)
{
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
SetProgressBarValue(kocsihp, health);
UpdateProgressBar(kocsihp, playerid);
return 1;
}
/*----------------------------------*/