Help with taxes
#1

Hello guys,i've made this code for let pay automatically at the player the taxes:

pawn Код:
new random_money = 1000+random(15000);
    for(new i=GetMaxPlayers()-1; i >=0; i--)
    {
        if(!IsPlayerConnected(i))continue;
        GivePlayerMoney(i,-random_money);
        new string[128];
        format(string, 100, "You paid %d$ in taxes to finance the State.", random_money);
        SendClientMessage(i,COLOR_GREEN, string);
Everything works fine,i need now to show how much taxes IN TOTAL where paid.

Ex: "You paid %d$ in taxes to finance the State.Global tax pays: %d"

How?Thanks.
Reply


Messages In This Thread
Help with taxes - by Face9000 - 02.01.2012, 19:02
Re: Help with taxes - by Norck - 02.01.2012, 19:07
Re: Help with taxes - by Face9000 - 02.01.2012, 19:09
Re: Help with taxes - by Norck - 02.01.2012, 19:15
Re: Help with taxes - by Norck - 02.01.2012, 19:17
Re: Help with taxes - by Face9000 - 02.01.2012, 19:22

Forum Jump:


Users browsing this thread: 2 Guest(s)