When player dies money resets
#4

I don`t understand this
Quote:

I want it where the player who dies doesn't get there money reset to $0 if they have $200,000. I want it so it takes away $7500 max.

Do you mean like if player has 5000 and dies to reset money to 0?And and do not give with - ?


Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	if(GetPlayerMoney(playerid) <= 7500)
	{
	    GivePlayerMoney(killerid, 7500);
		SetPlayerMoney(playerid, 0);
	}
	else
	{
	    GivePlayerMoney(killerid, 7500);
	    new mrand =random(10000);
	    GivePlayerMoney(playerid,-mrand);
    }
    return 1;
}
Reply


Messages In This Thread
When player dies money resets - by captainjohn - 02.04.2012, 11:12
Re: When player dies money resets - by Face9000 - 02.04.2012, 11:28
Re: When player dies money resets - by captainjohn - 02.04.2012, 11:35
Re: When player dies money resets - by TzAkS. - 02.04.2012, 11:54
Re: When player dies money resets - by captainjohn - 02.04.2012, 11:58
Re: When player dies money resets - by blank. - 02.04.2012, 11:58
Re: When player dies money resets - by captainjohn - 02.04.2012, 12:00
Re: When player dies money resets - by blank. - 02.04.2012, 12:05
Re: When player dies money resets - by captainjohn - 02.04.2012, 12:16
Re: When player dies money resets - by Itzhak E. - 02.04.2012, 12:19

Forum Jump:


Users browsing this thread: 2 Guest(s)