19.06.2013, 23:56
Alguem Sabe Qual a Funзao Para Fazer o Veiculo Parar Quando Acabar a Gasolina
forward semgasolinamanololokao(playerid);
public semgasolinamanololokao(playerid)
{
if(variavelgasolina[playerid] == 0)
{
RemovePlayerFromVehicle(playerid);
// outras funзхes abaixo
SendClientMessage( playerid, -1, " Sem gasolina manolo lokгo ");
}
else
{
//funзгo
}
}
forward SemGasolina(playerid); public SemGasolina(playerid) { new engine,lights,alarm,doors,bonnet,boot,objective; new vehicleid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); if(variavelgasolina[playerid] == 0) { if(engine == VEHICLE_PARAMS_ON) { SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); SendClientMessage(playerid, -1, "Vocк estб sem gasolina."); } } }