Health in cash bar
#10

This will set your health to the amount of money you have.
pawn Код:
public OnPlayerUpdate(playerid)
{
  new Money = GetPlayerMoney(playerid);
  SetPlayerHealth(playerid, Money);
}
This will set your money to the amount of health you have.
pawn Код:
public OnPlayerUpdate(playerid)
{
  new Float:Health = GetPlayerHealth(playerid);
  SetPlayerMoney(playerid, Health);
}

//Somewhere in script
stock SetPlayerMoney(playerid, money)
{
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, money);
}
Reply


Messages In This Thread
Health in cash bar - by Czesuaf - 02.04.2010, 17:58
Re: Health in cash bar - by ScottCFR - 02.04.2010, 18:04
Re: Health in cash bar - by Czesuaf - 02.04.2010, 20:43
Re: Health in cash bar - by MPKaboose - 02.04.2010, 20:46
Re: Health in cash bar - by Czesuaf - 02.04.2010, 20:53
Re: Health in cash bar - by westre - 02.04.2010, 20:57
Re: Health in cash bar - by Czesuaf - 02.04.2010, 21:10
Re: Health in cash bar - by westre - 02.04.2010, 22:48
Re: Health in cash bar - by Czesuaf - 03.04.2010, 11:01
Re: Health in cash bar - by bajskorv123 - 03.04.2010, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)