detecting map
#4

thanks that worked but party,

i've made a simple command to test it

Код:
CMD:changemap(playerid, params[])
{
  
   GameTextForAll("~y~LOADING NEW MAP", 4000, 6);
   SetTimer("StartNewMap", 4000, false);
   
   return 1;
}
now it changes the map and respawns, but ONLY los santos!


Код:
public MapTimer(playerid)
{

   MapChange++;
   
   if( MapChange == MapCount )
   
   MapChange = 0;

   GameTextForAll("~y~LOADING NEW MAP", 4000, 6);
   SetTimer("StartNewMap", 4000, false);

   return 1;
}

public StartNewMap()
{

   for(new i = 0; i < MAX_PLAYERS; i++) {
      SpawnPlayer(i);


	  switch( MapChange )
	  {
	      case 0: SendClientMessage(i, -1, "{FFFF99}[SERVER]: The map has been changed! (Map: Los Santos)");
	      case 1: SendClientMessage(i, -1, "{FFFF99}[SERVER]: The map has been changed! (Map: Bayside)");
	      case 2: SendClientMessage(i, -1, "{FFFF99}[SERVER]: The map has been changed! (Map: Las Payasdas)");
	  }
  }

   return 1;
}
Reply


Messages In This Thread
detecting map - by ivndosos - 30.03.2018, 09:17
Re: detecting map - by Staark - 30.03.2018, 09:50
Re: detecting map - by AdamsLT - 30.03.2018, 09:51
Re: detecting map - by ivndosos - 30.03.2018, 10:24
Re: detecting map - by AdamsLT - 30.03.2018, 10:35
Re: detecting map - by ivndosos - 30.03.2018, 10:53

Forum Jump:


Users browsing this thread: 2 Guest(s)