SA-MP Forums Archive
[AJUDA] Blindagem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Blindagem (/showthread.php?tid=351718)



[AJUDA] Blindagem - iDeagle_Hurley - 17.06.2012

Tipo;

quem ja viu em algum server
tipo um Sistemas para Carro de tipo
o Cara vai ate uma "Cordenada" й buzina
ai vai enche a blindagem para ele 100%
tipo que poder me ajudar criar isto
tipo fazer o code; pra mim
ou explica pra mim como faz
eu dou +repu

Coordenada - do local que eu quero:
Код:
1620.3082,-1888.6422,13.5480 //Coordenada para Blindar o veiculo
Obrigado@!@


Respuesta: [AJUDA] Blindagem - Digao - 17.06.2012

clica aqui


Re: [AJUDA] Blindagem - iDeagle_Hurley - 17.06.2012

tem como explicar neste poste^^
mermoo?


Respuesta: [AJUDA] Blindagem - Digao - 17.06.2012

Vocк quer que a lataria que esteja 1000 de hp do carro vire 2000 ? й isso ?


Re: [AJUDA] Blindagem - iDeagle_Hurley - 17.06.2012

tipo usei esse code:
й conseguir mas
agora queria explicaзгo de como
colocar "Blindagem" no velocimetro
se possivel ajuda aew!
vlw!

code que estou usando:

Quote:
Originally Posted by paulor
Посмотреть сообщение
Mais simples impossivel! Pegue como base...
pawn Код:
SetTimer("Blindado", 500, true);//OnGameModeInit

//Fim GM
stock Blindado()
{
    for(new vehicleid = 0; vehicleid < MAX_VEHICLES; ++vehicleid)
    {
        if(CarroBlindado[vehicleid] == 1)
        {
            SetVehicleHealth(vehicleid, 1000);
        }
    }
    return 1;
}

CMD:blindar(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "ErrOr - Entre em um veiculo!");
    if(CarroBlindado[vehicleid] == 1) return SendClientMessage(playerid, -1, "ErrOr - O Veiculo jб й blindado!");
   
    if(IsPlayerInRangeOfPoint(playerid, 3, X, Y, Z)//Coords do local
    {
        CarroBlindado[vehicleid] = 1;
        SendClientMessage(playerid, -1, "InFo - Veiculo Blindado com sucesso!");
    }
    else SendClientMessage(playerid, -1, "ErrOr - Vocк nгo esta no local determinado!");
    return 1;
}



Respuesta: [AJUDA] Blindagem - Digao - 17.06.2012

Ve as variaiveis de seu gamemode

@off

tu jogava bpg ? '-


Re: Respuesta: [AJUDA] Blindagem - iDeagle_Hurley - 17.06.2012

Quote:
Originally Posted by Digao
Посмотреть сообщение
tu jogava bpg ? '-
nunca joguei no bpg pqp?


Respuesta: [AJUDA] Blindagem - Digao - 17.06.2012

nada, que eu vi um cara com nick igual o seu... rs


Re: [AJUDA] Blindagem - iDeagle_Hurley - 17.06.2012

ok entao..

hehehe@


Re: [AJUDA] Blindagem - EditPawn - 17.06.2012

Use:
- OnPlayerKeyStateChange para apertar o H
- SetVehicleHealth