[HELP] Case scripting
#7

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
Reply


Messages In This Thread
[HELP] Case scripting - by FeniX70 - 30.03.2015, 01:57
Re: [HELP] Case scripting - by Threshold - 30.03.2015, 03:11
Re: [HELP] Case scripting - by FeniX70 - 30.03.2015, 03:18
Re: [HELP] Case scripting - by Threshold - 30.03.2015, 03:21
Re: [HELP] Case scripting - by FeniX70 - 30.03.2015, 03:29
Re: [HELP] Case scripting - by Threshold - 30.03.2015, 03:43
Re: [HELP] Case scripting - by FeniX70 - 30.03.2015, 03:50
Re: [HELP] Case scripting - by Threshold - 30.03.2015, 03:58
Re: [HELP] Case scripting - by FeniX70 - 30.03.2015, 04:06
Re: [HELP] Case scripting - by [ABK]Antonio - 30.03.2015, 04:16

Forum Jump:


Users browsing this thread: 1 Guest(s)