Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

health pickup

$
0
0
So me and my friend are working on a gamemode, so I told him to make a health pickup, but how do I change it that the player gets +10 hp?

Code:

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Health[playerid]) SetPlayerHealth(playerid,100), DestroyPickup(Health[playerid]);
    return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>