How to make players health decrease by 10
#3

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == THE_ID_OF_YOUR_PICKUP)
    {
        new Float: playersHealth;
        GetPlayerHealth(playerid, playersHealth);
        SetPlayerHealth(playerid, playersHealth - 10);
    }

    return 1;
}
Reply


Messages In This Thread
How to make players health decrease by 10 - by ShawtyyMacJunior - 28.07.2012, 04:01
Re: How to make players health decrease by 10 - by Larceny - 28.07.2012, 04:05
Re: How to make players health decrease by 10 - by SuperViper - 28.07.2012, 04:05

Forum Jump:


Users browsing this thread: 1 Guest(s)