07.11.2009, 15:35
At the end of the gamemode (Whatever callback defines the end of a gamemode)
Add:
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;
}