Gametext for player, when GM exits
#3

Quote:
Originally Posted by Don Correlli
As you can see, OnGameModeExit doesn't have a 'playerid' parameter, so you'll just have to do a loop for all connected players:

pawn Код:
public OnGameModeExit()
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i))
    {
      GameTextForPlayer(i, "~r~Game Over~n~Loading next map...", 11000, 5);
    }
  }
  return 1;
}
Thanks, works like a charm!

=)
Reply


Messages In This Thread
Gametext for player, when GM exits - by Memoryz - 18.09.2009, 20:45
Re: Gametext for player, when GM exits - by Correlli - 18.09.2009, 20:47
Re: Gametext for player, when GM exits - by Memoryz - 18.09.2009, 21:09
Re: Gametext for player, when GM exits - by Danny_Costelo - 19.09.2009, 00:06
Re: Gametext for player, when GM exits - by Memoryz - 19.09.2009, 00:29
Re: Gametext for player, when GM exits - by KevKo95 - 19.09.2009, 00:29

Forum Jump:


Users browsing this thread: 2 Guest(s)