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