health pickup
#3

Quote:
Originally Posted by KayJ
Посмотреть сообщение
[PHP]
This should work
GetPlayerHealth doesn't return the player's health, instead you must pass a variable as a parameter.

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == Health[playerid])
    {
        new 
Float:h;
        
GetPlayerHealth(playeridh);
        
SetPlayerHealth(playeridh+10.0);
        
DestroyPickup(pickupid);
    }
    return 
1;

Reply


Messages In This Thread
health pickup - by ivndosos - 05.02.2018, 06:15
Re: health pickup - by KayJ - 05.02.2018, 06:44
Re: health pickup - by GaByM - 05.02.2018, 07:35
Re: health pickup - by Mugala - 05.02.2018, 07:56

Forum Jump:


Users browsing this thread: 1 Guest(s)