|
CALLBACK: SubeBarraMotor(playerid) { if(GetProgressBarValue(BMotor[playerid]) < 100.0) { SetProgressBarValue(BMotor[playerid],GetProgressBarValue(BMotor[playerid])+5.0); UpdateProgressBar(BMotor[playerid], playerid); return 1; } else { KillTimer2(playerid,TIMER_BMOTOR); SetProgressBarValue(BMotor[playerid],0.0); HideProgressBarForPlayer(playerid, BMotor[playerid]); new veh = GetPlayerVehicleID(playerid); new rand = random( ;if(VGas[veh] > 1.0) { switch (rand) { case 0,1,2,3,4: { AutoRol(playerid,"enciende el motor del vehнculo"); EncenderMotor(veh); } |