Pedido alguйm pode passar drop weapons e life
#8

@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);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)