02.01.2012, 19:02
Hello guys,i've made this code for let pay automatically at the player the taxes:
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.
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);
Ex: "You paid %d$ in taxes to finance the State.Global tax pays: %d"
How?Thanks.