08.11.2009, 14:36
Quote:
Originally Posted by Tigerbeast11
Quote:
Here is the pastebin link... http://pastebin.com/m3ae232a3 P.S: How can i make it check which the winning team is? Would I use a variable like pawn Код:
And then when the that team wins... pawn Код:
Plz help me if Im wrong! |
pawn Код:
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;
}
pawn Код:
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetPlayerTeam(i) == teamid)//Notice the (i) instead of [i]
{
GivePlayerMoney(i,amount);//Replace "amount" with the amount of money you want to reward each team member with
}
return 1;
}