SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/06/2019, 02:25 AM   #1
nbx2000
Big Clucker
 
Join Date: Dec 2016
Posts: 139
Reputation: 2
Default ShowMenuForPlayer Problem No back

hello I have a problem ShowMenuForPlayer in the menu that appears it leaves 3 options between to the first two and it squeezes back and it does not work and it is buguea by qe back it does not work. Mark it HERE
Code:
	if(Current == Teleports)
	{
    	switch(row)
    	{
        	case 0: // Stunt zones 1
        	{
            	ShowMenuForPlayer(StuntZones1, playerid);
			}
        	case 1: // Stunt zones 2
        	{
            	ShowMenuForPlayer(StuntZones2, playerid);
			}
        	case 2: // OtherZones
        	{
				ShowMenuForPlayer(OtherZones, playerid);
			}
			case 3: // Exit
			{
				HideMenuForPlayer(Current, playerid);
				TogglePlayerControllable(playerid,true);
			}
		}
	}

	if(Current == StuntZones1)
	{
    	switch(row)
    	{
			case 0: // BigJump
        	{
				TimedTele(playerid, "", -639.9559,2328.1963,135.0000,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 1: // LSTower
        	{
				TimedTele(playerid, "", 1537.1813,-1364.6439,1882.5000,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 2: // BuildingJump
        	{
				CarSpawner(playerid,461);
				TimedTele(playerid, "", -2882.8174,-3074.8611,83.0000,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 3: // Chilliad
        	{
				TimedTele(playerid, "", -2338.1836, -1631.0298, 483.7010,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 4: cmd_stuntchilliad(playerid,"\1"); //stuntchilliad 2
        	case 5: // LVAirport
        	{
				TimedTele(playerid, "", 1299.8621,1378.2822,10.3751,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
        	}
        	case 6: // SFAirport
        	{
				TimedTele(playerid, "", -1373.3844,-258.4916,14.0000,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
        	}
			case 7: // Back here NOT BACK PROBLEM 
			{
				ShowMenuForPlayer(Teleports, playerid);
				TogglePlayerControllable(playerid,true);
			}
		}
	}

	if(Current == StuntZones2)
	{
    	switch(row)
    	{
        	case 0: // Skate park
        	{
				TimedTele(playerid, "", 1920.3247,-1402.8632,13.5703,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
        	}
			case 1: // WayToDeath
        	{
				CarSpawner(playerid,541);
				TimedTele(playerid, "", 996.6433,2787.8489,1067.7532,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 2: // Stadium
			{
				TimedTele(playerid, "", -1478.6078,1646.1399,1052.5313,  14, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 3: // MonsterCrash
        	{
				CarSpawner(playerid,444);
				TimedTele(playerid, "", -2383.9839,2909.5325,362.3510,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 4: // FreeWay
        	{
				CarSpawner(playerid,568);
				TimedTele(playerid, "",  -2847.1392,2185.9849,799.5908, 0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 5: // DeadJump
        	{
				TimedTele(playerid, "", -673.3708,-3024.7944,705.3344,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
		   	}
			case 6: // Upside Down
        	{
				CarSpawner(playerid,411);
				TimedTele(playerid, "", 391.1825,-82.5999,558.1525,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 7: // AquaPark
			{
				TimedTele(playerid, "", 284.4926,-1863.2415,2.8927,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 8: // here NOT BACK MENU  PROBLEM 
			{
				ShowMenuForPlayer(Teleports, playerid);
				TogglePlayerControllable(playerid,true);
			}
		}
	}
	if(Current == TrainStations)
	{
    	switch(row)
    	{
        	case 0: // LS
        	{
				TimedTele(playerid, "", 1734.6804,-1944.9839,13.5646,  0, 6);
				TogglePlayerControllable(playerid,true);
			}
        	case 1: // SF
        	{
				TimedTele(playerid, "", -1965.7423,161.1771,27.6875, 0, 6);
				TogglePlayerControllable(playerid,true);
			}
        	case 2: // LV1
        	{
				TimedTele(playerid, "", 1430.7799,2653.1604,11.3926, 0, 6);
				TogglePlayerControllable(playerid,true);
			}
        	case 3: // LV2
        	{
				TimedTele(playerid, "", 2848.7876,1293.9376,11.3906, 0, 6);
				TogglePlayerControllable(playerid,true);
			}
			case 4: // Back
			{
				ShowMenuForPlayer(OtherZones, playerid);
				TogglePlayerControllable(playerid,true);
			}
		}
	}

	if(Current == TuneGarages)
	{
    	switch(row)
    	{
        	case 0: // TuneGarage1
			{
				TimedTele(playerid, "", -1935.9851, 231.7287, 34.1563, 0, 6);
				TogglePlayerControllable(playerid,true);
			}
        	case 1: // TuneGarage2
        	{
				TimedTele(playerid, "", -2709.7312, 217.4238, 4.1797, 0, 6);
				TogglePlayerControllable(playerid,true);
			}
        	case 2: // TuneGarage3
        	{
				TimedTele(playerid, "", 2386.8020, 1036.3203, 10.8203, 0, 6);
				TogglePlayerControllable(playerid,true);
			}
        	case 3: // TuneGarage4
        	{
				TimedTele(playerid, "", 2644.9768, -2030.9032, 13.5540, 0, 6);
				TogglePlayerControllable(playerid,true);
			}
			case 4: // Back
			{
				ShowMenuForPlayer(OtherZones, playerid);
				TogglePlayerControllable(playerid,true);
			}
		}
	}
	if(Current == OtherZones)
	{
    	switch(row)
    	{
        	case 0: // TuneGarages
        	{
        	    ShowMenuForPlayer(TuneGarages, playerid);
			}
        	case 1: // TrainStations
        	{
				ShowMenuForPlayer(TrainStations, playerid);
			}
        	case 2: // AA
        	{
				TimedTele(playerid, "", 402.8024,2534.6926,16.700,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
        	case 3: // DragRace
        	{
				TimedTele(playerid, "", 1031.1125,-2297.4236,12.8004,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
        	}
        	case 4: // Karting
        	{
				CarSpawner(playerid,571);
				TimedTele(playerid, "", 2888.9099,1028.5667,17.0000,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 5: // Dirt
        	{
				TimedTele(playerid, "", -1299.6615,-700.7803,1056.2037,  4, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 6: // AdminCastle
			{
				if(PlayerInfo[playerid][Level] >0) {
					TimedTele(playerid, "", -2891.6179,-76.7571,4.0496,  0, 6);
					TogglePlayerControllable(playerid,true);
					SetTimerEx("setstunt",3000,0,"i", playerid);
				}
				else{
					SendClientMessage(playerid, COLOR_RED, "Only Admins can Teleport there!");
				}

		   	}
			case 7: // PinkAutos
        	{
				TimedTele(playerid, "", -1623.2146,1227.1677,7.0391,  0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
        	case 8: // Drift
        	{
				TimedTele(playerid, "",  -309.9550,1560.8075,75.3594, 0, 6);
				TogglePlayerControllable(playerid,true);
				SetTimerEx("setstunt",3000,0,"i", playerid);
			}
			case 9: // Back
			{
				ShowMenuForPlayer(Teleports, playerid);
				TogglePlayerControllable(playerid,true);
			}
		}
	}
	return 1;
}
nbx2000 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Player não congela ! ( ShowMenuForPlayer ) Skash Português/Portuguese 7 06/08/2013 01:44 AM
[GameMode] Modern War Battalation | V2.7 | Back To Back Release | 50+ Commands | 3500+ Lines | Admin System Attached Nirzor Gamemode Scripts 36 08/06/2013 04:27 PM
Problem with ShowMenuForPlayer PCheriyan007 Help Archive 12 19/06/2011 10:14 PM
/back up problem NiiRV4N4 Help Archive 3 07/05/2010 11:08 PM
[Solved]ShowMenuForPlayer won't work ruckfules99 Help Archive 3 30/03/2010 09:51 PM


All times are GMT. The time now is 04:41 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.