30.03.2018, 10:24
thanks that worked but party,
i've made a simple command to test it
now it changes the map and respawns, but ONLY los santos!
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; }
Код:
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; }