SA-MP Forums Archive
Pedido alguйm pode passar drop weapons e life - 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: Pedido alguйm pode passar drop weapons e life (/showthread.php?tid=278787)



Pedido alguйm pode passar drop weapons e life - rugal - 23.08.2011

O tуpico jб diz alguйm pode passar eu to no iPhone aн preciso que post pastebin obg desde jб


Re: Pedido alguйm pode passar drop weapons e life - histire - 23.08.2011

veja se isso ajuda
http://pastebin.com/nzrnW2b9


Re: Pedido alguйm pode passar drop weapons e life - rugal - 23.08.2011

Vo testar logo eu edito depois vejo geito de por drop hp de vida


Re: Pedido alguйm pode passar drop weapons e life - rugal - 24.08.2011

Mals pelo double alguйm tem 1 mais curtinho


Re: Pedido alguйm pode passar drop weapons e life - histire - 24.08.2011

como assim? O.o


Re: Pedido alguйm pode passar drop weapons e life - rugal - 24.08.2011

Ruim tenho q digitar muito aн acabo nгo copilando


Re: Pedido alguйm pode passar drop weapons e life - Macintosh - 24.08.2011

http://www.4shared.com/file/21049984...rmas_SAMP.html

O de life nгo entendi bem, ele irб dropar o life? o.O


Re: Pedido alguйm pode passar drop weapons e life - Dolby - 24.08.2011

@Edit
Criei aqui,caso de algo errado avise:
pawn Код:
#include <a_samp>
new HealthDropado;
new Drop;
new Float:Health;
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerHealth(playerid,Health) > 0)
    {
        HealthDropado = GetPlayerHealth(playerid,Health);
        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid,x,y,z);
        Drop = CreatePickup(1240,4,x,y,z-0.8);
    }
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Drop)
    {
    SetPlayerHealth(playerid,Health +HealthDropado);
    DestroyPickup(Drop);
    }
    return 1;
}
e Obrigado a Piter por ter min ajudado na funзao
pawn Код:
SetPlayerHealth(playerid,Health +HealthDropado);



Re: Pedido alguйm pode passar drop weapons e life - rugal - 25.08.2011

Deu Maninho ja