14.05.2014, 18:37
pawn Код:
OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
ShowProgressBarForPlayer(playerid, VehicleBar[playerid]);
SetProgressBarValue(VehicleBar[playerid],100);
UpdateProgressBar(VehicleBar[playerid]);
return 1;
}
}
pawn Код:
OnPlayerExitVehicle(playerid)
{
HideProgressBarForPlayer(playerid, VehicleBar[playerid]);
return 1;
}