[Solved]Give one team money and not the other...
#2

At the end of the gamemode (Whatever callback defines the end of a gamemode)

Add:
pawn Код:
//-------------------------[Winning Team]---------------------------------------------
for(new i = 0; i <= MAX_PLAYERS; i++)
{
  if(IsPlayerConnected(i) && GetPlayerTeam(i) == teamid)//Replace "teamid" with the variable determinning the winning team
  {
    GivePlayerMoney(i,amount);//Replace "amount" with the amount of money you want to reward each team member with
  }
  return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)