06.06.2009, 13:49
Hi guyz. I modified the gamemode SFTDM and i set that if you kill someone you earn 3000, if you die you lose 2500. If you die and have 0$, you will have -2500. How to set that if you die you can't go to minus cash?
Originally Posted by MenaceX^
When the money goes under 0, set it to 0.
|
new plmoney = GetPlayerMoney(playerid);
if(plmoney < 0)
{
SetPlayerMoney(playerid,0);
}
if(GetPlayerMoney(playerid) < 0) return ResetPlayerMoney(playerid);