[Ajuda] Sistema de blindagem
#1

Estou tentando fazer um sistema de blindagem simples sу que nгo obtenho nenhum resultando
Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    new Float:Vida;
    if(vehicleid == IsAPCCar(vehicleid))
    {
        if(GetVehicleHealth(vehicleid, Vida) < 1000)
        {
           RepairVehicle(vehicleid);
        }
        return 1;
    }
    return 1;
}
Estou usando o wiki samp como base > https://sampwiki.blast.hk/wiki/RepairVehicle
O carro nгo estб "Blindando"
Reply
#2

Metodo Ex:
pawn Код:
public OnVehicleDamageStatusUpdate( vehicleid, playerid )
{
      new Float:FLife;
      if( GetVehicleHealth( vehicleid, FLife ) ! = GetPVarFloat( playerid, "Old_Health_Car" ) )
              return RepairVehicle( vehicleid );
      SetPVarFloat( playerid, "OHC", GetVehicleHealth( vehicleid, FLife ) );
      return 1;
}
Use lуgica, crie algoritimos.
Reply
#3

Obrigado cara pelas dicas estarei mais atento agora em diante!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)