30.03.2015, 03:50
public MapsChange(playerid)
{
foreach(Player,i)
{
SpawnPlayer(i);
SetPlayerHealth(i,99.0);
SetPlayerArmour(i,0.0);
ResetPlayerWeapons(i);
RemovePlayerFromVehicle(i);
switch(Maps)
{
case 0: // map1
{
SetPlayerInterior(i,0);
SendRconCommand("loadfs map1");
Minutes =0; // 0:40 min
Seconds =40; // 0:40 min
Maps = 1;
}
case 1: // map2
{
SetPlayerInterior(i,0);
SendRconCommand("unloadfs map1");
SendRconCommand("loadfs map2");
Minutes =0; // 0:40 min
Seconds =40; // 0:40 min
Maps = 2;
}
case 2:
{
SetPlayerInterior(i,0);
SendRconCommand("unloadfs map2");
Minutes =0; // 0:40 min
Seconds =1; // 0:40 min
Maps = 0;
}
}
}
return 1;
}
i tried something difference now but still nothing happends
{
foreach(Player,i)
{
SpawnPlayer(i);
SetPlayerHealth(i,99.0);
SetPlayerArmour(i,0.0);
ResetPlayerWeapons(i);
RemovePlayerFromVehicle(i);
switch(Maps)
{
case 0: // map1
{
SetPlayerInterior(i,0);
SendRconCommand("loadfs map1");
Minutes =0; // 0:40 min
Seconds =40; // 0:40 min
Maps = 1;
}
case 1: // map2
{
SetPlayerInterior(i,0);
SendRconCommand("unloadfs map1");
SendRconCommand("loadfs map2");
Minutes =0; // 0:40 min
Seconds =40; // 0:40 min
Maps = 2;
}
case 2:
{
SetPlayerInterior(i,0);
SendRconCommand("unloadfs map2");
Minutes =0; // 0:40 min
Seconds =1; // 0:40 min
Maps = 0;
}
}
}
return 1;
}
i tried something difference now but still nothing happends