27.05.2010, 11:57
but when only 1 is left alive, it does nothing.. :S
pawn Код:
forward counterleft();
public counterleft()
{
if(countalive[0] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(gTeam[i] == TEAM_DEATH)
{
GameTextForPlayer (i, "~r~mission failed!", 3000, 0);
}
for(new i = 0; i < MAX_PLAYERS; i++)
if(gTeam[i] == TEAM_ALIVE)
{
GivePlayerMoney (i,object_bonus);
PlayerPlaySound (i, 1062, 0.0, 0.0, 0.0);
GameTextForPlayer (i, "mission passed!~n~~w~6500$", 3000, 0); }
}
return 1;
}