09.12.2009, 12:37
It's something like this if you're using GetPlayerTeam-function:
or like this if you're using gTeam or any other variable:
You'll also need ******'s foreach-function.
pawn Код:
foreach(Player, u)
{
if(GetPlayerTeam(u) == TEAM_GROVE)
{
GameTextForPlayer(u, "Mission Passed!~n~~g~+7500$", 5000, 0);
GivePlayerMoney(u, 7500);
}
}
pawn Код:
foreach(Player, u)
{
if(gTeam[u] == TEAM_GROVE)
{
GameTextForPlayer(u, "Mission Passed!~n~~g~+7500$", 5000, 0);
GivePlayerMoney(u, 7500);
}
}