01.02.2012, 18:37
First of all , You have to Add at the Top ,
, Then , Under ongamemodeinit , Add :
- Now. under OnPlayerPickupPickup , Add :
And you are done
PHP код:
new health;
PHP код:
health = CreateDynamicPickup(1240, X,Y,Z,VW); // Replace the X Y Z VW with Your Cordinates and Virtural World
PHP код:
if(pickupid == health)
{
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid,COLOR,"You have Bought Health");
return 1;
}