08.12.2012, 22:51
Well the issue is, after 2 maps I've made, after they change, it just says Loading Map and Tp's all players to LS to PD and GroveStreet spawn.
The issue is that it should just load map 1 again after the 2nd finishes but the problem is that when it finishes 2nd map it just tp's you to LS
Switching map
I just need help to add when the 2nd one finishes to load 1st one
The issue is that it should just load map 1 again after the 2nd finishes but the problem is that when it finishes 2nd map it just tp's you to LS
Switching map
Код:
switch ( MapChange ) { case 0: //Map 1 [Oil Factory] { if(gTeam[playerid] == Global_Risk) { SetPlayerPos(playerid, 128.7537,1414.2736,10.5975); SetPlayerFacingAngle(playerid,0.0); GivePlayerWeapon(playerid, 31, 20000); GivePlayerWeapon(playerid, 24, 10000); GivePlayerWeapon(playerid, 27, 20000); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerColor(playerid, COLOR_BLUE); } if(gTeam[playerid] == Black_List) { SetPlayerPos(playerid, 268.9013,1396.7153,10.5859); SetPlayerFacingAngle(playerid,0.0); GivePlayerWeapon(playerid, 30, 20000); GivePlayerWeapon(playerid, 24, 10000); GivePlayerWeapon(playerid, 27, 20000); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerColor(playerid, COLOR_WHITE); } } case 1: //Map 2 [The Deadly Mine] { if(gTeam[playerid] == Global_Risk) { SetPlayerPos(playerid, 899.3513,884.8102,13.1234); SetPlayerFacingAngle(playerid,0.0); GivePlayerWeapon(playerid, 31, 20000); GivePlayerWeapon(playerid, 35, 2); GivePlayerWeapon(playerid, 16, 10); GivePlayerWeapon(playerid, 24, 10000); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerColor(playerid, COLOR_BLUE); } if(gTeam[playerid] == Black_List) { SetPlayerPos(playerid, 571.3677,923.8673,-43.1887); SetPlayerFacingAngle(playerid,0.0); GivePlayerWeapon(playerid, 30, 20000); GivePlayerWeapon(playerid, 35, 10); GivePlayerWeapon(playerid, 27, 10000); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerColor(playerid, COLOR_WHITE); } } case 2: { } }
Код:
public NewMapTimer(playerid) { MapChange++; GameTextForAll("~b~ Loading new ~w~MAP",4000,3); SetTimer("StartedNewRound",4000,false); return 1; } public StartedNewRound() { for(new i = 0; i < MAX_PLAYERS; i++) { SpawnPlayer ( i ) ; switch ( MapChange ) { case 0: { SendClientMessage(i,COLOR_RED,"Map changed into Oil Factory!"); } case 1: { SendClientMessage(i,COLOR_RED,"New map loaded."); } case 2: { } } } return 1; }