Help with pickup
#1

How can i like when someone goes to that pickup it heals them?






Reply
#2

Use SetPlayerHealth(playerid, Float:health) on OnPlayerPickupPickup.
Reply
#3

HEALPICKUP = CreatePickup....

onplayerpickuppickup


pawn Код:
if(pickupid == HEALPICKUP)
{
SetPlayerHealth(playerid,100);
}
Reply
#4

under OnPlayerPickupPickup, SetPlayerHealth ..

pawn Код:
// TOP
new healthpickup;

// ONGAMEMODEINIT
healthpickup = CreatePickup(....

// ONPLAYERPICKUPPICKUP

if ( pickupid == healthpickup )
{
SetPlayerHealth(playerid, 100);
}
Reply
#5

didnt work D:
Reply
#6

It should work i tried it !
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)