01.02.2012, 18:24
How i can make this in my server when you get healt or armour to get money
new health;
health = CreateDynamicPickup(1240, X,Y,Z,VW); // Replace the X Y Z VW with Your Cordinates and Virtural World
if(pickupid == health)
{
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid,COLOR,"You have Bought Health");
return 1;
}
First of all , You have to Add at the Top ,
PHP код:
PHP код:
PHP код:
|
if(pickupid == health)
{
if (GetPlayerMoney(playerid) < 1000)
{
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid,COLOR,"You have Bought Health");
}
return 1;
}