SA-MP Forums Archive
help with teams money - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with teams money (/showthread.php?tid=133010)



help with teams money - Fonsie - 10.03.2010

Hi
Im have a tdm

i want to make a textdraw with showing the team with the most money like:

~Team Grove is leading with $743874~

Anyone can help me?


Re: help with teams money - Fedee! - 10.03.2010

pawn Код:
new str[128];
format(str,128,"~~w~Team Grove ~g~is leading ~w~with $%i~",TeamCash);
GameTextForAll(str, 5000, 3);
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
  if(!IsPlayerConnected(i) && GetPlayerTeam == TEAM_GROOVE) continue;
  GetPlayerMoney(playerid);
}
It should work.. (not tested)


Re: help with teams money - Fonsie - 10.03.2010

Thanks ill test it now


Re: help with teams money - Fonsie - 10.03.2010

Works but how do i change Team Grove in the team that is really leading