Questions
#3

Quote:
Originally Posted by Don Correlli
It's something like this if you're using GetPlayerTeam-function:
pawn Код:
foreach(Player, u)
{
  if(GetPlayerTeam(u) == TEAM_GROVE)
  {
    GameTextForPlayer(u, "Mission Passed!~n~~g~+7500$", 5000, 0);
    GivePlayerMoney(u, 7500);
  }
}
or like this if you're using gTeam or any other variable:
pawn Код:
foreach(Player, u)
{
  if(gTeam[u] == TEAM_GROVE)
  {
    GameTextForPlayer(u, "Mission Passed!~n~~g~+7500$", 5000, 0);
    GivePlayerMoney(u, 7500);
  }
}
You'll also need ******'s foreach-function.
hvala, i just want to ask you coreli is this as include ? or what i think its include let me try
Reply


Messages In This Thread
Questions - by Lajko1 - 09.12.2009, 12:32
Re: Questions - by Correlli - 09.12.2009, 12:37
Re: Questions - by Lajko1 - 09.12.2009, 13:10
Re: Questions - by Correlli - 09.12.2009, 13:12
Re: Questions - by Lajko1 - 09.12.2009, 13:20
Re: Questions - by Correlli - 09.12.2009, 13:26
Re: Questions - by Lajko1 - 09.12.2009, 15:48
Re: Questions - by Correlli - 09.12.2009, 16:28

Forum Jump:


Users browsing this thread: 3 Guest(s)