10.09.2011, 18:52
Oh, wait, I found a problem:
After the explosion, it should say Mission Passed, but it only gave me the money and the game text didnt come up :/
pawn Code:
forward RedsWin();
public RedsWin()
{
for(new i; i < MAX_PLAYERS; i++)
if(Team[i] == TEAM_RED && IsPlayerConnected(i))
{
GameTextForPlayer(i,"Mission Passed! ~N~~g~$7500",0,4500);
GivePlayerMoney(i,7500);
}
else
{
GameTextForPlayer(i,"~r~Mission Failed!",0,4500);
}
SetTimer("OnGameModeExit",4500,0);
}