[Pedido]HealthDrop/weaponDrop
#2

PHP код:
new pickup[50];
new 
pick;
public 
OnPlayerDeath(playerid,killerid,reason)
{
    new 
Float:XYZ[3];
    
GetPlayerPos(playerid,XYZ[0],XYZ[1],XYZ[2]);
    
pickup[pick+1] = CreatePickup(1240,5,XYZ[0],XYZ[1],XYZ[2]-1,GetPlayerVirtualWorld(playerid));
    
pick++;
    return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    for(new 
0sizeof(pickup); i++)
    {
        if(
pickupid == pickup[i])
        {
            new 
Float:Vida;
            
GetPlayerHealth(playeridVida);
            
SetPlayerHealth(playeridVida+30);
            
DestroyPickup(i);
            
pick--;
            return 
1;
        }
    }
    return 
1;

Atualizado.
Reply


Messages In This Thread
[Pedido]HealthDrop/weaponDrop - by seven7een - 04.06.2011, 15:17
Re: [Pedido]HealthDrop/weaponDrop - by Shadoww5 - 04.06.2011, 15:27
Re: [Pedido]HealthDrop/weaponDrop - by [R] ousenber [K] - 04.06.2011, 15:27
Re: [Pedido]HealthDrop/weaponDrop - by Shadoww5 - 04.06.2011, 15:30
Re: [Pedido]HealthDrop/weaponDrop - by seven7een - 04.06.2011, 15:34
Re: [Pedido]HealthDrop/weaponDrop - by Shadoww5 - 04.06.2011, 15:50
Re: [Pedido]HealthDrop/weaponDrop - by seven7een - 04.06.2011, 15:53
Re: [Pedido]HealthDrop/weaponDrop - by Shadoww5 - 04.06.2011, 15:57
Re: [Pedido]HealthDrop/weaponDrop - by seven7een - 04.06.2011, 15:58
Re: [Pedido]HealthDrop/weaponDrop - by Andrew_Guiga - 04.06.2011, 16:04

Forum Jump:


Users browsing this thread: 2 Guest(s)