[AJUDA] Blindagem
#1

Boa tarde galera. Dei algumas buscas aqui no fуrum para conseguir montar o meu sistema de blindagem de veнculos. Eu consegui a princнpio, mas estou tendo um problema.. O problema й que o sistema de blindagem sу funciona pro ID 0 do server..
pawn Код:
forward blindagem(playerid);
pawn Код:
public OnGameModeInit()
{
    SetTimer("blindagem", 100, 1);
}
pawn Код:
public blindagem(playerid)
{
    new carid = GetPlayerVehicleID(playerid);
    if(carid == 1)
    {
        new Float:Vida;
        if(GetVehicleHealth(carid, Vida) < 1000 )
        {
           RepairVehicle(carid);
           SetVehicleHealth(carid, 1000);
        }
    }
    return true;
}
Agradeзo se alguйm puder me ajudar a solucionar esse problema. (:
Reply


Messages In This Thread
[AJUDA] Blindagem - by marlon.dhd - 14.03.2012, 17:01
Re: [AJUDA] Blindagem - by Skun Fly - 14.03.2012, 17:07
Re: [AJUDA] Blindagem - by marlon.dhd - 14.03.2012, 17:11
Re: [AJUDA] Blindagem - by humildadeforever - 14.03.2012, 17:19
Re: [AJUDA] Blindagem - by Hiuship - 14.03.2012, 17:36
Re: [AJUDA] Blindagem - by marlon.dhd - 14.03.2012, 18:04
Re: [AJUDA] Blindagem - by Hiuship - 14.03.2012, 22:50
Re: [AJUDA] Blindagem - by steki. - 14.03.2012, 23:14
Re: [AJUDA] Blindagem - by Mercurio - 15.03.2012, 02:31
Re: [AJUDA] Blindagem - by DarkScripter - 15.03.2012, 03:39

Forum Jump:


Users browsing this thread: 5 Guest(s)