28.06.2012, 18:09
i have made a map chaning system but there is some problem and the problem is that i have 12 maps and all are working good but in the last map. when the last map's timer finishs then it does not reset to 1st map.
last map
and the first map
i don't know why the last map does not reset to first map. Help me please.
last map
pawn Код:
case 11: { // MFPD
SendRconCommand("mapname MFPD" );
if(gTeam[playerid] == TEAM_HUMAN) {
SetPlayerPos(playerid, -2086.5854,296.9832,41.0602);
SetPlayerFacingAngle(playerid,238.3208);
}
if(gTeam[playerid] == TEAM_ZOMBIE) {
SetPlayerPos(playerid , -1963.0413,255.7414,35.4739) ;
SetPlayerFacingAngle(playerid,358.2750);
}
pawn Код:
case 0: { // Dam Power Source
SendRconCommand("mapname Dam Power Source" );
if(gTeam[playerid] == TEAM_HUMAN) {
SetPlayerPos(playerid,-938.9497,1847.1716,5.0000);
SetPlayerInterior(playerid,17);
}
if(gTeam[playerid] == TEAM_ZOMBIE) {
SetPlayerPos(playerid ,-957.0829,1930.4469,5.0000) ;
SetPlayerInterior(playerid,17);
}
}