Cash Money lost
#1

If i died. and it stole some of the cash. as i search it was a money default takes -100 cash from you.
Anyhow to do this? like it shows the fake money then if i spawn again. it show the real money

Save / load in mysql
Код:
PlayerInfo[playerid][Money]
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new currentCash = GetPlayerMoney(playerid);
    if (currentCash >= 100) currentCash += 100;
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, currentCash);
  	return 1;
}
Reply


Messages In This Thread
Cash Money lost - by DerickClark - 10.02.2017, 02:38
Re: Cash Money lost - by haikalbintang - 10.02.2017, 03:34
Re: Cash Money lost - by DerickClark - 10.02.2017, 03:36
Re: Cash Money lost - by DerickClark - 10.02.2017, 11:45
Re: Cash Money lost - by haikalbintang - 10.02.2017, 11:57
Re: Cash Money lost - by DerickClark - 10.02.2017, 12:07
Re: Cash Money lost - by DerickClark - 10.02.2017, 21:29
Re: Cash Money lost - by Hansrutger - 10.02.2017, 21:32
Re: Cash Money lost - by DerickClark - 10.02.2017, 21:34
Re: Cash Money lost - by Hansrutger - 10.02.2017, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)