Problem
#1

I have a gamemode files it works without any error. if i edit its pwn file changing some strings and compile it. it's compiled and if i entered commands in game, its executed but return Server: Unknown command
Reply
#2

Why it happens??
Reply
#3

You need to show us your command which cause this, They are a lot of possibilities
Reply
#4

Teamviewer please
Reply
#5

No please, Put here. No private help, Everything stays here.
Reply
#6

I have bunch of strcmp commands, that's all executed and returns Server: Unknown Command.
Reply
#7

Give only one, I'll help you with it, And the others you fix them by yourself, I won't fix a bunch of commands even if we are under Team Viewer.
Reply
#8

Код:
if(strcmp(cmd, "/enter", true) == 0)
	{
		if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerJustDied[playerid] != 0) return SendClientMessage(playerid, COLOR_GRAD1, " You are unable to do that at this time.");
		for(new i = 0;i < sizeof(EntranceRef);i++)
		{
			if(
				IsPlayerInRangeOfPoint(playerid,2,Entrances[i][outside_x],Entrances[i][outside_y],Entrances[i][outside_z]) &&
				GetPlayerVirtualWorld(playerid) == Entrances[i][outside_w] &&
				GetPlayerInterior(playerid) == Entrances[i][outside_i])
			{
			    if(strlen(Entrances[i][dpassword])) // has a pass
				{
				    ShowPlayerDialog(	playerid,
										DIALOG_ID_PLAYER_PASS,
										DIALOG_STYLE_INPUT,
										"Door Password",
										"Please enter the door's password to enter.",
										"Okay",
										"Cancel");
					return 1;
				}
				if(Entrances[i][dfaction] == 0)
				{
				    SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
					SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
					SetPlayerInterior(playerid,Entrances[i][inside_i]);
					SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
					SetCameraBehindPlayer(playerid);
					if(Entrances[i][freeze])
					{
				    	FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
					}
				}
			    if(Entrances[i][dfaction] == 1)
			    {
			        if(IsACop(playerid) || IsAnAgent(playerid))
	    			{
	    			    SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
						SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
						SetPlayerInterior(playerid,Entrances[i][inside_i]);
						SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
						SetCameraBehindPlayer(playerid);
						if(Entrances[i][freeze])
						{
				    		FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
						}
	    			}
			    }
			    if(Entrances[i][dfaction] == 2)
			    {
			        if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
	        		{
			            SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
						SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
						SetPlayerInterior(playerid,Entrances[i][inside_i]);
						SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
						SetCameraBehindPlayer(playerid);
						if(Entrances[i][freeze])
						{
				    		FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
						}
			        }
			    }
			    if(Entrances[i][dfaction] == 5)
			    {
			        if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
	        		{
			            SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
						SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
						SetPlayerInterior(playerid,Entrances[i][inside_i]);
						SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
						SetCameraBehindPlayer(playerid);
						if(Entrances[i][freeze])
						{
				    		FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
						}
			        }
			    }
			    if(Entrances[i][dfaction] == 8)
			    {
			        if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8	)
	        		{
			            SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
						SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
						SetPlayerInterior(playerid,Entrances[i][inside_i]);
						SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
						SetCameraBehindPlayer(playerid);
						if(Entrances[i][freeze])
						{
				    		FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
						}
			        }
			    }
				return 1;
			}
		}
		if(IsPlayerInRangeOfPoint(playerid,2,2045.6656,-1912.9945,13.5469))
		{
		    SetPlayerPos(playerid, -2029.8702,-119.6247,1035.1719);
		    SetPlayerInterior(playerid, 3);
		    format(string, sizeof(string), "~b~Welcome to the DMV");
			displayCenterHUDInfo(playerid,  string, 8);
		}
		
		for(new h = 1; h < sizeof(HouseInfo); h++)
		{
			if(IsPlayerInRangeOfPoint(playerid,1.0,HouseInfo[h][hOutsideX], HouseInfo[h][hOutsideY], HouseInfo[h][hOutsideZ]))
			{
			    if(HouseInfo[h][hLocked] != 1)
			    {
					SetPlayerPos(playerid,HouseInfo[h][hInsideX],HouseInfo[h][hInsideY],HouseInfo[h][hInsideZ]);
					SetPlayerFacingAngle(playerid,HouseInfo[h][hInsideA]);
					SetPlayerInterior(playerid,HouseInfo[h][hInterior]);
					SetPlayerVirtualWorld(playerid,h);
					PlayerInfo[playerid][pInt] = HouseInfo[h][hInterior];
					PlayerInfo[playerid][pVirtualWorld] = h;
					SetCameraBehindPlayer(playerid);
					new string34[75];
					format(string34, sizeof(string34), "~b~%s", HouseInfo[h][hTag]);
					displayCenterHUDInfo(playerid,  string34, 8); //display for 8 seconds
				}
				else
				{
				    SendClientMessage(playerid, COLOR_RED, "** This house is locked!");
				}
				break;
			}
		}
		for(new g = 1; g < MAX_GARAGES; g++){
			if(IsPlayerInRangeOfPoint(playerid, 4.0, GarageInfo[g][gOutsideX], GarageInfo[g][gOutsideY], GarageInfo[g][gOutsideZ])){
				if(GarageInfo[g][gCreated] != 0){
					if(GarageInfo[g][gLocked] != 1){
						if(IsPlayerInAnyVehicle(playerid)){
							new vhid = GetPlayerVehicleID(playerid);
							SetVehiclePos(vhid, GarageInfo[g][gInsideX], GarageInfo[g][gInsideY], GarageInfo[g][gInsideZ]);
							SetVehicleVirtualWorld(vhid, g);
							for(new l = 0; l < MAX_PLAYERS;l++){
								if(IsPlayerConnected(l)){
									if(GetPlayerVehicleID(l) == vhid){
										SetPlayerVirtualWorld(l,g);
										PlayerInfo[l][pVirtualWorld] = g;
									}
								}
							}
							SetVehicleZAngle(vhid, GarageInfo[g][gInsideA]);
						}
						else{
							SetPlayerPos(playerid, GarageInfo[g][gInsideX], GarageInfo[g][gInsideY], GarageInfo[g][gInsideZ]);
							SetPlayerVirtualWorld(playerid,g);
							SetCameraBehindPlayer(playerid);
							SetPlayerFacingAngle(playerid, GarageInfo[g][gInsideA]);
							PlayerInfo[playerid][pVirtualWorld] = g;
						}
						FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
					}
					else{
						SendClientMessage(playerid, COLOR_RED, "** This garage is locked!");
					}
				}
				break;
			}
		}
		for(new b = 0; b < sizeof(BizInfo); b++)
		{
			if(IsPlayerInRangeOfPoint(playerid,2.0,BizInfo[b][bOutsideX], BizInfo[b][bOutsideY], BizInfo[b][bOutsideZ]))
			{
				if(BizInfo[b][bLocked]) return SendClientMessage(playerid,COLOR_GREY,"   This business is closed, come back later.");
				if(PlayerInfo[playerid][pBizKey] != b && BizInfo[b][bProducts] <= 0) return SendClientMessage(playerid, COLOR_GREY,"   This business has no products, come back later.");
				if(PlayerInfo[playerid][pBizKey] != b && BizInfo[b][bEntryFee] > 0)
				{
					if(GetMoney(playerid) >= BizInfo[b][bEntryFee])
					{
						GiveMoney(playerid,-BizInfo[b][bEntryFee]);
						BizInfo[b][bTill] += BizInfo[b][bEntryFee];
						format(string, sizeof(string), "~r~-$%d", BizInfo[b][bEntryFee]);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					else
					{
					    return SendClientMessage(playerid, COLOR_GRAD2, "   You cannot afford the entry fee !");
					}
				}
				if(BizInfo[b][bType] == 1) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buygun to buy (il)legal guns from this ammunation.");
				else if(BizInfo[b][bType] == 2) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy food from this business.");
				else if(BizInfo[b][bType] == 3 || BizInfo[b][bType] == 5) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy items from this business.");
				else if(BizInfo[b][bType] == 4) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /drink to buy a drink from this business.");
				else if(BizInfo[b][bType] == 5) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy items from this business.");
				else if(BizInfo[b][bType] == 6) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy clothes from this business.");
				else if(BizInfo[b][bType] == 7) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy donuts from this business.");
				else if(BizInfo[b][bType] == 8) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy food from this business.");
				else if(BizInfo[b][bType] == 9) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy food from this business.");
				else if(BizInfo[b][bType] == 10) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   This business type hasn't been scripted yet.");
				else if(BizInfo[b][bType] == 11) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   This business type hasn't been scripted yet.");
				else if(BizInfo[b][bType] == 12) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   This business type hasn't been scripted yet.");
				SetPlayerVirtualWorld(playerid, b);
				SetPlayerInterior(playerid, BizInfo[b][bInsideInt]);
				SetPlayerPos(playerid, BizInfo[b][bInsideX],BizInfo[b][bInsideY],BizInfo[b][bInsideZ]);
				SetPlayerFacingAngle(playerid,BizInfo[b][bInsideAng]);
				SetCameraBehindPlayer(playerid);
			}
		}
		if(IsPlayerInRangeOfPoint(playerid, 3.0, 2353.1772, -1463.4822, 24.0000)) // Hidden Package Store ( Tiki Heaven )
		{
			SetPlayerInterior(playerid, 69);
			PlayerInfo[playerid][pInt] = 69;
			SetPlayerPos(playerid, 2367.1083, -1468.6744, 921.81);
			GameTextForPlayer(playerid, "~w~Tiki Store", 5000, 1);
			SetPlayerFacingAngle(playerid, 0.0);
			SetCameraBehindPlayer(playerid);
		}
		// Nick Exo's Shit
		if(IsPlayerInRangeOfPoint(playerid, 2, 2127.51, 2379.54, 10.82)) // Outside -> Casino
		{
			SetPlayerPos(playerid, 2018.60, 1017.88, 996.87);
			SetPlayerInterior(playerid, 10);
			PlayerInfo[playerid][pInt] = 10;
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle(playerid, 90.0);
			displayCenterHUDInfo(playerid,  "~b~exo's casino", 8); //display for 8 seconds
		}
		if(IsPlayerInRangeOfPoint(playerid, 2, 2102.55, 2425.19, 60.81)) // Roof -> Casino
		{
			SetPlayerPos(playerid, 1963.58, 1062.94, 994.46);
			SetPlayerInterior(playerid, 10);
			PlayerInfo[playerid][pInt] = 10;
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle(playerid, 149.07);
			displayCenterHUDInfo(playerid,  "~b~exo's casino", 8); //display for 8 seconds
		}
		if(IsPlayerInRangeOfPoint(playerid, 2, 2124.05, 2404.77, 52.05)) // Office -> Casino
		{
			SetPlayerPos(playerid, 1963.49, 972.88, 994.46);
			SetPlayerInterior(playerid, 10);
			PlayerInfo[playerid][pInt] = 10;
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle(playerid, 27.18);
			displayCenterHUDInfo(playerid,  "~b~exo's casino", 8); //display for 8 seconds
		}
		if(IsPlayerInRangeOfPoint(playerid, 2, 2124.05, 2404.77, 52.05)) // Office -> Casino
		{
			SetPlayerPos(playerid, 1963.49, 972.88, 994.46);
			SetPlayerInterior(playerid, 10);
			PlayerInfo[playerid][pInt] = 10;
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle(playerid, 27.18);
			displayCenterHUDInfo(playerid,  "~b~exo's casino", 8); //display for 8 seconds
		}
		if(IsPlayerInRangeOfPoint(playerid, 3.0, 1519.02, -1453.92, 14.20)) // VIP Club
		{
			if(PlayerInfo[playerid][pDonateRank] >= 1)
			{
				SetPlayerInterior(playerid, 69);
				PlayerInfo[playerid][pInt] = 69;
				SetPlayerPos(playerid, 1532.51, -1461.23, 1037.01);
				displayCenterHUDInfo(playerid,  "~p~vip club", 8); //display for 8 seconds
				SetPlayerFacingAngle(playerid, 180.0);
				SetCameraBehindPlayer(playerid);
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "** You must be a VIP to enter the VIP lounge!");
			}
		}
		if(IsPlayerInRangeOfPoint(playerid, 3.0, 2275.39, -930.02, 28.04)) // VIP Black Market
		{
			if(PlayerInfo[playerid][pDonateRank] >= 2)
			{
				SetPlayerInterior(playerid, 7);
				PlayerInfo[playerid][pInt] = 7;
				SetPlayerVirtualWorld(playerid, 426);
				PlayerInfo[playerid][pVirtualWorld] = 426;
				SetPlayerPos(playerid, 315.70, -143.01, 999.60);
				displayCenterHUDInfo(playerid,  "~b~blackmarket", 8); //display for 8 seconds
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "   Use /purchase to purchase some weapons.");
				SetPlayerFacingAngle(playerid, 0.0);
				SetCameraBehindPlayer(playerid);
			}
			else
			{
			    SendClientMessage(playerid, COLOR_RED, "** You are not a Silver or Gold VIP!");
			}
		}
		if(IsPlayerInRangeOfPoint(playerid, 3, 1310.0685,-1367.6198,13.5382))
		{
		    if(PlayerInfo[playerid][pLevel] <= 1)
		    {
		        SendClientMessage(playerid, COLOR_GRAD1, "  Level 1's can not join paintball!");
		        return 1;
			}
			DisplayDialogForPlayer(playerid, PAINTBALLDIALOG);
		}
		if(IsPlayerInRangeOfPoint(playerid,3.0,2257.5410,-70.9750,31.6016)) //Hitmen HQ Entrance
		{
			if(PlayerInfo[playerid][pMember] != 8) return 1;
			SetPlayerInterior(playerid, 6);
			SetPlayerVirtualWorld(playerid,666);
			SetPlayerPos(playerid, 1243.1086,231.2560,1120.6713);
			SetPlayerFacingAngle(playerid, 269.1526);
			displayCenterHUDInfo(playerid,  "~b~Headquarters", 8); //display for 8 seconds
			SetCameraBehindPlayer(playerid);
			FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
		}
		if(IsPlayerInRangeOfPoint(playerid,3.0,1266.4169,234.3889,25.0487)) //Sector 9 HQ Entrance
		{
			if(PlayerInfo[playerid][pMember] != 666) return 1;
			SetPlayerInterior(playerid, 6);
			SetPlayerVirtualWorld(playerid,667);
			SetPlayerPos(playerid, 1243.1086,231.2560,1120.6713);
			SetPlayerFacingAngle(playerid, 269.1526);
			displayCenterHUDInfo(playerid,  "~b~Headquarters", 8); //display for 8 seconds
			SetCameraBehindPlayer(playerid);
			FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
		}
		if(IsPlayerInRangeOfPoint(playerid,3.0,648.9398,-1353.9165,13.5472)) //SANews Main Entrance
		{
			SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid, 1178.7751,-769.4749,1125.2416);
			SetPlayerFacingAngle(playerid, 279.6350);
			displayCenterHUDInfo(playerid,  "~b~SANews Headquarters", 8); //display for 8 seconds
			SetCameraBehindPlayer(playerid);
			FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
		}
		if(IsPlayerInRangeOfPoint(playerid,3.0,735.3615,-1362.4121,25.6922)) //SANews Roof Entrance
		{
			SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid, 1205.3856,-766.7225,1125.2416);
			SetPlayerFacingAngle(playerid, 90.5383);
			displayCenterHUDInfo(playerid,  "~b~SANews Headquarters", 8); //display for 8 seconds
			SetCameraBehindPlayer(playerid);
			FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
		}
		if(IsPlayerInRangeOfPoint(playerid,3.0,758.1264,-1355.6842,13.9799)) //SANews BackDoor Entrance
		{
			SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid, 1209.2451,-757.5836,1125.2416);
			SetPlayerFacingAngle(playerid, 16.3777);
			displayCenterHUDInfo(playerid,  "~b~SANews Headquarters", 8); //display for 8 seconds
			SetCameraBehindPlayer(playerid);
			FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
		}
		if(IsPlayerInRangeOfPoint(playerid,3.0,681.5620,-474.2185,16.5363)) //Outlaws HQ
		{
			SetPlayerInterior(playerid, 1);
			SetPlayerPos(playerid, 678.2614,-464.6447,-25.6172);
			SetPlayerFacingAngle( playerid, 0.0000);
			displayCenterHUDInfo(playerid,  "~b~The Welcome Pump", 8); //display for 8 seconds
			PlayerInfo[playerid][pInt] = 1;
			SetCameraBehindPlayer(playerid);
		}
		for(new i = 0; i < MAX_VEHICLES; i++)
		{
			if(GetVehicleModel(i) == 519)
			{
				new Float:shax, Float:shay, Float:shaz;
				GetVehiclePos(i, shax, shay, shaz);
				if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz)) //Found a shamal.
				{
                    strmid(sendername, PlayerRPName(playerid), 0, MAX_PLAYER_NAME);
					if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal.");
					else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
					ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					SetPlayerVirtualWorld(playerid, i);
					SetPlayerInterior(playerid,1);
					SetPlayerPos(playerid,2.57, 33.14, 1200);
					displayCenterHUDInfo(playerid,  "~b~Shamal", 8); //display for 8 seconds
					GivePlayerGun(playerid, 46);
					return 1;
				}
			}
		}
		if(IsPlayerInRangeOfPoint(playerid, 3.0, 375.59, -2076.85, 8.41)) // Fishing Store
		{
		    SetPlayerInterior(playerid, 69);
			PlayerInfo[playerid][pInt] = 69;
			SetPlayerPos(playerid, 357.57, -2067.90, 979.80);

			displayCenterHUDInfo(playerid,  "~b~Bait Shop~n~~w~ Type ~r~/store~w~ to buy", 8); //display for 8 seconds

	       	SetPlayerFacingAngle(playerid, 270.0000);
	       	SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3, 2625.9407, -1112.6112, 67.9953)) // East Coast Families Enter (Front)
		{
			SetPlayerPos(playerid, 2807.4290, -1165.7354, 1025.5703);
			SetPlayerInterior(playerid, 8);
			PlayerInfo[playerid][pInt] = 8;
			SetPlayerVirtualWorld(playerid, 10);
			PlayerInfo[playerid][pVirtualWorld] = 10;
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle( playerid, 180.0);
			displayCenterHUDInfo(playerid,  "~b~East Cost Families~n~Crib", 8); //display for 8 seconds

		}
		else if(IsPlayerInRangeOfPoint(playerid, 3, 2611.2366, -1111.1881, 68.2453)) // East Coast Families Enter (Back)
		{
			SetPlayerPos(playerid, 2807.1748, -1171.8784, 1025.5703);
			SetPlayerInterior(playerid, 8);
			PlayerInfo[playerid][pInt] = 8;
			SetPlayerVirtualWorld(playerid, 10);
			PlayerInfo[playerid][pVirtualWorld] = 10;
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle( playerid, 0.0);
			displayCenterHUDInfo(playerid,  "~b~East Cost Families~n~Crib", 8); //display for 8 seconds
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.5, 2618.9412, -1118.4761, 67.9953)) // East Coast Families Enter (Side)
		{
			SetPlayerPos(playerid, 2819.5872,-1172.9215,1025.5703);
			SetPlayerInterior(playerid, 8);
			PlayerInfo[playerid][pInt] = 8;
			SetPlayerVirtualWorld(playerid, 10);
			PlayerInfo[playerid][pVirtualWorld] = 10;
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle(playerid, 90.0);
			displayCenterHUDInfo(playerid,  "~b~East Cost Families~n~Crib", 8); //display for 8 seconds
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.5, 2616.8911, -1118.1410, 70.8499)) // East Coast Families Enter (Window)
		{
			SetPlayerPos(playerid, 2817.0349,-1165.4685,1029.1719);
			SetPlayerInterior(playerid, 8);
			PlayerInfo[playerid][pInt] = 8;
			SetPlayerVirtualWorld(playerid, 10);
			PlayerInfo[playerid][pVirtualWorld] = 10;
			SetCameraBehindPlayer(playerid);
			SetPlayerFacingAngle(playerid, 180.0);
			displayCenterHUDInfo(playerid,  "~b~East Cost Families~n~Crib", 8); //display for 8 seconds
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,611.0699,-583.6415,18.1517)) //SAST
		{
			SetPlayerInterior(playerid, 5);
			SetPlayerPos(playerid, 322.2817,303.3415,999.1484);
			SetPlayerFacingAngle(playerid, 0.0000);

			displayCenterHUDInfo(playerid,  "~b~Colonel's office", 8); //display for 8 seconds

			PlayerInfo[playerid][pInt] = 5;
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,906.9045,-915.5287,57.7345) && GetPlayerVirtualWorld(playerid) == 0) //Mafia Roof
		{
			SetPlayerInterior(playerid, 1);
			SetPlayerVirtualWorld(playerid, 2);
			SetPlayerPos(playerid, -794.9364,490.3830,1376.1953);
			PlayerInfo[playerid][pInt] = 1;
			PlayerInfo[playerid][pVirtualWorld] = 2;
			SetPlayerFacingAngle(playerid, 0.00000);
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,1777.4604,-1664.0137,14.4343)) //FBI HQ
		{
			SetPlayerInterior(playerid, 10);
			SetPlayerPos(playerid, 246.40,110.84,1003.22);
			SetPlayerFacingAngle(playerid, 0.0000);

            displayCenterHUDInfo(playerid,  "~b~Federal Bureau of Investigation", 8); //display for 8 seconds

			PlayerInfo[playerid][pInt] = 10;
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1498.4185,-2182.5278,14.1682)) //FIRE DEPARTMENT ENTERANCE
		{
			SetPlayerInterior(playerid, 3);
			SetPlayerPos(playerid, 368.0984,162.2898,1019.9844);
			PlayerInfo[playerid][pInt] = 3;

			displayCenterHUDInfo(playerid,  "~b~Fire Department Head Quarters", 8); //display for 8 seconds

			SetPlayerFacingAngle(playerid, 90.0);
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1172.6975, -1325.3914, 15.4019)) //HOSPITAL GROUND ENTER
		{
			SetPlayerInterior(playerid, 70);
			SetPlayerPos(playerid, 1199.0801,-1366.3083,1017.8790);
			PlayerInfo[playerid][pInt] = 70;

			displayCenterHUDInfo(playerid,  "~b~All Saints Medical Center", 8); //display for 8 seconds

			SetPlayerFacingAngle(playerid, 271.3973);
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1154.5345, -1343.6583, 26.6953)) //HOSPITAL ROOF ENTER
		{
			SetPlayerInterior(playerid, 70);
			SetPlayerPos(playerid, 1216.2145,-1379.2618,1029.4714);
			PlayerInfo[playerid][pInt] = 70;
			displayCenterHUDInfo(playerid,  "~b~All Saints Medical Center", 8); //display for 8 seconds
			SetPlayerFacingAngle(playerid, 1.0922);
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3, 1564.8468,-1666.1549,28.3956)) //LSPD Roof-LSPD Entrance
		{
		    if(GetPlayerVirtualWorld(playerid) == 0)
			{
				SetPlayerInterior(playerid, 6);
				SetPlayerPos(playerid,242.7468,66.3155,1003.6406);
				SetCameraBehindPlayer(playerid);
				displayCenterHUDInfo(playerid,  "~b~Los Santos Police Department", 8); //display for 8 seconds
				SetPlayerFacingAngle(playerid, 270.0);
				PlayerInfo[playerid][pInt] = 6;
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3, 1554.5262,-1675.7283,16.1953)) //LSPD-Entrance
		{
		   	if(GetPlayerVirtualWorld(playerid) == 0)
			{
				SetPlayerInterior(playerid, 6);
				SetPlayerPos(playerid,246.7284,62.6640,1003.6406);
				SetCameraBehindPlayer(playerid);
				displayCenterHUDInfo(playerid,  "~b~Los Santos Police Department", 8); //display for 8 seconds
				SetPlayerFacingAngle(playerid, 0.0);
				PlayerInfo[playerid][pInt] = 6;
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3, 1568.6840,-1691.0090,5.8906)) //Garage-LSPD Entrance
			{
   		        if(GetPlayerVirtualWorld(playerid) == 0)
				{
			    	SetPlayerInterior(playerid, 6);
			    	SetPlayerPos(playerid,246.4211,87.0546,1003.6406);
			    	SetCameraBehindPlayer(playerid);
					displayCenterHUDInfo(playerid,  "~b~Los Santos Police Department", 8); //display for 8 seconds
			    	SetPlayerFacingAngle(playerid, 180.0000);
			    	PlayerInfo[playerid][pInt] = 6;
			}
	   	}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,1480.9606,-1772.3036,18.7958)) //City Hall Entrance
			{
			    SetPlayerInterior(playerid, 3);
                SetPlayerPos(playerid, 390.7296,173.7785,1008.3828);
			    SetPlayerFacingAngle(playerid, 90.0000);
          		displayCenterHUDInfo(playerid,  "~b~Cityhall", 8); //display for 8 seconds
                PlayerInfo[playerid][pInt] = 3;
				SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3, 1895.2286,-2021.3555,13.5469)) // Latin Kings
		{
			SetPlayerPos(playerid, 2569.4885,-1301.9822,1044.1250);
			SetCameraBehindPlayer(playerid);
			SetPlayerInterior(playerid, 2);
			PlayerInfo[playerid][pInt] = 2;

			displayCenterHUDInfo(playerid,  "~b~South Side Locotes", 8); //display for 8 seconds
			SetPlayerFacingAngle(playerid, 90.0000);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3, 2073.2996,-1583.2520,13.4744)) // Idlewood Rydas
		{
			SetPlayerPos(playerid, 446.7476, 507.4956, 1001.4195);
			SetCameraBehindPlayer(playerid);
			SetPlayerInterior(playerid, 12);
			PlayerInfo[playerid][pInt] = 12;
			SetPlayerVirtualWorld(playerid, 299);
			PlayerInfo[playerid][pVirtualWorld] = 299;

			displayCenterHUDInfo(playerid,  "~b~Idlewood Rydas", 8); //display for 8 seconds

			SetPlayerFacingAngle(playerid, 0.0000);
		}
		else if(IsPlayerInRangeOfPoint(playerid, 3, 2447.8350,-1962.6876,13.5469)) //Los Santos Export Depot
		{
			SetPlayerPos(playerid,2573.0928,-1302.0148,1044.1250);
			SetCameraBehindPlayer(playerid);
			PlayerInfo[playerid][pInt] = 2;
			SetPlayerInterior(playerid, 2);

			displayCenterHUDInfo(playerid,  "~b~Los Santos ~n~Export Depot HQ", 8); //display for 8 seconds

			SetPlayerFacingAngle(playerid, 270.0000);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,51.9720,-292.6349,1.7031)) //Drug Factory
		{
			SetPlayerInterior(playerid, 1);
			SetPlayerPos(playerid, 2205.2314,1551.5662,1008.4103);
			SetPlayerFacingAngle(playerid, 270.7354);

			displayCenterHUDInfo(playerid,  "~b~Ballas Crib", 8); //display for 8 seconds

			PlayerInfo[playerid][pInt] = 1;
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,2000.0439,-1114.1256,27.1250)) //Ballas HQ
		{
			SetPlayerVirtualWorld(playerid, 1);
			SetPlayerInterior(playerid, 2);
			SetPlayerPos(playerid, 2468.5376,-1698.2233,1013.5078);
			SetPlayerFacingAngle(playerid, 90.0000);

			displayCenterHUDInfo(playerid,  "~b~Ballas Crib", 8); //display for 8 seconds

			PlayerInfo[playerid][pInt] = 2;
			PlayerInfo[playerid][pVirtualWorld] = 1;
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,1997.8634,-1104.3289,26.7813)) //Ballas HQ 2
		{
			SetPlayerVirtualWorld(playerid, 1);
			SetPlayerInterior(playerid, 2);
			SetPlayerPos(playerid, 2451.2813,-1685.8804,1013.5078);
			SetPlayerFacingAngle(playerid, 180.0000);
			displayCenterHUDInfo(playerid,  "~b~Ballas Crib", 8); //display for 8 seconds
			PlayerInfo[playerid][pInt] = 2;
			PlayerInfo[playerid][pVirtualWorld] = 1;
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,2756.3127,-1182.7612,69.4033)) //The Walton Cartels HQ
		{
			SetPlayerInterior(playerid, 12);
			SetPlayerPos(playerid, 1142.8920,6.3150,1000.6797);
			SetPlayerFacingAngle(playerid, 90.0000);
			displayCenterHUDInfo(playerid,  "~b~The Walton Cartels HQ", 8); //display for 8 seconds
			PlayerInfo[playerid][pInt] = 12;
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,1191.2216,-1652.8029,13.9285)) //Triads HQ
		{
			SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid, 763.1277,-49.8147,1000.5859);
			SetPlayerFacingAngle(playerid, 0.0000);

			displayCenterHUDInfo(playerid,  "~b~Yakuza Dojo", 8); //display for 8 seconds

			PlayerInfo[playerid][pInt] = 6;
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,2183.1687,-2668.6416,17.8828)) //South Side Renegades HQ
		{
			SetPlayerInterior(playerid, 18);
			PlayerInfo[playerid][pInt] = 18;
			SetPlayerPos(playerid, 1249.7102,-28.1984,1001.0362);
			SetPlayerFacingAngle(playerid, 270.0);

			displayCenterHUDInfo(playerid,  "~b~South Side Renegades", 8); //display for 8 seconds

			SetCameraBehindPlayer(playerid);
			PlayerInfo[playerid][pVirtualWorld] = 299;
			SetPlayerVirtualWorld(playerid, 299);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0, 233.2956,1840.2114,17.6406)) // Cafeteria Enterance
		{
			SetPlayerInterior(playerid, 4);
			SetPlayerPos(playerid, 459.2668, -88.6474, 999.5547);
			SetPlayerFacingAngle(playerid, 89.9299);
			PlayerInfo[playerid][pInt] = 4;

			displayCenterHUDInfo(playerid,  "~b~Cafeteria", 8); //display for 8 seconds

			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,201.3625,1869.4546,13.1406)) //Prison
		{
		    if(!IsANG(playerid))
		    {
				new numofngs = 0;
				foreach(Player, i)
				{
				    if(IsANG(i))
				    {
				        numofngs++;
					}
				}
				if(numofngs >= 3)
				{
					SetPlayerInterior(playerid, 69);
					SetPlayerPos(playerid, 1804.9424,-1576.6188,1636.9736);
					displayCenterHUDInfo(playerid,  "~b~Detention Facility", 8); //display for 8 seconds
					SetPlayerFacingAngle(playerid, 90.0000);
					PlayerInfo[playerid][pInt] = 69;
					SetCameraBehindPlayer(playerid);
                    FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
				}
				else
				{
				    SendClientMessage(playerid, COLOR_RED, "There needs to be 3 NGs on for you to enter here!");
				}
			}
			else
			{
				SetPlayerInterior(playerid, 69);
				SetPlayerPos(playerid, 1804.9424,-1576.6188,1636.9736);
				displayCenterHUDInfo(playerid,  "~b~Detention Facility", 8); //display for 8 seconds
				SetPlayerFacingAngle(playerid, 90.0000);
				PlayerInfo[playerid][pInt] = 69;
				SetCameraBehindPlayer(playerid);
				FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0, 2232.89, -1333.48, 23.98)) //Church
		{
			SetPlayerInterior(playerid, 69);
			PlayerInfo[playerid][pInt] = 69;
			SetPlayerPos(playerid, -1269.07, 77.78, 992.04);
			FreezePlayer(playerid, FREEZE, ENTER_FREEZE);

			displayCenterHUDInfo(playerid,  "~b~Los Santos Chapel", 8); //display for 8 seconds

			SetPlayerFacingAngle(playerid, 180.0000);
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0, 1462.3500, -1011.3336, 26.8438)) // Bank
		{
			SetPlayerInterior(playerid, 69);
			PlayerInfo[playerid][pInt] = 69;
			SetPlayerPos(playerid, 1415.490, -986.773, 1639.78);

			displayCenterHUDInfo(playerid,  "~b~Los Santos Bank", 8); //display for 8 seconds

			SetPlayerFacingAngle(playerid, 270.0000);
			SetCameraBehindPlayer(playerid);
			SetPlayerTime(playerid, 12, 0);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,177.0772,1840.2100,17.6406)) //Infirmary
		{
			SetPlayerPos(playerid, 268.7222,1862.8405,8.7578);

			displayCenterHUDInfo(playerid,  "~b~Infirmary", 8); //display for 8 seconds

			SetPlayerFacingAngle(playerid, 180.0);
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,3.0,141.6423,1875.4824,17.8434)) //Locker Room
		{
			SetPlayerInterior(playerid, 18);
			SetPlayerPos(playerid, -217.7308,1402.6931,27.7734);

			displayCenterHUDInfo(playerid,  "~b~Locker Room", 8); //display for 8 seconds

			SetPlayerFacingAngle(playerid, 90.0000);
			PlayerInfo[playerid][pInt] = 18;
			SetCameraBehindPlayer(playerid);
		}
		else if(IsPlayerInRangeOfPoint(playerid,8.0,-2111.5686,-443.9720,38.7344))
		{
			SetPlayerInterior(playerid,4);
			SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);

			displayCenterHUDInfo(playerid,  "~b~Welcome to the Dirt Track", 8); //display for 8 seconds

			PlayerInfo[playerid][pInt] = 4;

		}
		else if(IsPlayerInRangeOfPoint(playerid,8.0,-2080.3079,-406.0309,38.7344))
		{
			SetPlayerInterior(playerid,14);
			SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);

			displayCenterHUDInfo(playerid,  "~b~Welcome to the Stunting Track", 8); //display for 8 seconds

			PlayerInfo[playerid][pInt] = 14;
		}
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2025.2659, -1401.6707, 17.2100))
		{
		    SetPlayerPos(playerid, 980.7294, 1472.9312, 1004.4619);
	        SetPlayerFacingAngle(playerid, 0);
	        SetCameraBehindPlayer(playerid);
	        SetPlayerInterior(playerid, 8);
	        PlayerInfo[playerid][pInt] = 8;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2047.3463, -1396.1946, 48.3359))
		{
		    SetPlayerPos(playerid, 1004.3405, 1488.7122, 1016.0709);
	        SetPlayerFacingAngle(playerid, 270);
	        SetCameraBehindPlayer(playerid);
	        SetPlayerInterior(playerid, 8);
	        PlayerInfo[playerid][pInt] = 8;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2049.5835, -1404.1725, 48.3359))
		{
		    SetPlayerPos(playerid, 1013.2662, 1491.3506, 1016.0709);
	        SetPlayerFacingAngle(playerid, 180);
	        SetCameraBehindPlayer(playerid);
	        SetPlayerInterior(playerid, 8);
  	        PlayerInfo[playerid][pInt] = 8;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 975.0505, 1495.7568, 1010.2537))
		{
		    SetPlayerPos(playerid, 975.0416, 1494.5276, 1010.2537);
	        SetPlayerFacingAngle(playerid, 180);
	        SetCameraBehindPlayer(playerid);
	        SetPlayerInterior(playerid, 8);
	        PlayerInfo[playerid][pInt] = 8;
        }
	}
Reply
#9

pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
    {
        if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0 || PlayerJustDied[playerid] != 0) return SendClientMessage(playerid, COLOR_GRAD1, " You are unable to do that at this time.");
        for(new i = 0;i < sizeof(EntranceRef);i++)
        {
            if(
                IsPlayerInRangeOfPoint(playerid,2,Entrances[i][outside_x],Entrances[i][outside_y],Entrances[i][outside_z]) &&
                GetPlayerVirtualWorld(playerid) == Entrances[i][outside_w] &&
                GetPlayerInterior(playerid) == Entrances[i][outside_i])
            {
                if(strlen(Entrances[i][dpassword])) // has a pass
                {
                    ShowPlayerDialog(   playerid,
                                        DIALOG_ID_PLAYER_PASS,
                                        DIALOG_STYLE_INPUT,
                                        "Door Password",
                                        "Please enter the door's password to enter.",
                                        "Okay",
                                        "Cancel");
                    return 1;
                }
                if(Entrances[i][dfaction] == 0)
                {
                    SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
                    SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
                    SetPlayerInterior(playerid,Entrances[i][inside_i]);
                    SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
                    SetCameraBehindPlayer(playerid);
                    if(Entrances[i][freeze])
                    {
                        FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
                    }
                }
                if(Entrances[i][dfaction] == 1)
                {
                    if(IsACop(playerid) || IsAnAgent(playerid))
                    {
                        SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
                        SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
                        SetPlayerInterior(playerid,Entrances[i][inside_i]);
                        SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
                        SetCameraBehindPlayer(playerid);
                        if(Entrances[i][freeze])
                        {
                            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
                        }
                    }
                }
                if(Entrances[i][dfaction] == 2)
                {
                    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
                    {
                        SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
                        SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
                        SetPlayerInterior(playerid,Entrances[i][inside_i]);
                        SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
                        SetCameraBehindPlayer(playerid);
                        if(Entrances[i][freeze])
                        {
                            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
                        }
                    }
                }
                if(Entrances[i][dfaction] == 5)
                {
                    if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
                    {
                        SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
                        SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
                        SetPlayerInterior(playerid,Entrances[i][inside_i]);
                        SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
                        SetCameraBehindPlayer(playerid);
                        if(Entrances[i][freeze])
                        {
                            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
                        }
                    }
                }
                if(Entrances[i][dfaction] == 8)
                {
                    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 )
                    {
                        SetPlayerPos(playerid,Entrances[i][inside_x],Entrances[i][inside_y],Entrances[i][inside_z]);
                        SetPlayerFacingAngle(playerid,Entrances[i][inside_a]);
                        SetPlayerInterior(playerid,Entrances[i][inside_i]);
                        SetPlayerVirtualWorld(playerid,Entrances[i][inside_w]);
                        SetCameraBehindPlayer(playerid);
                        if(Entrances[i][freeze])
                        {
                            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
                        }
                    }
                }
                return 1;
            }
        }
        if(IsPlayerInRangeOfPoint(playerid,2,2045.6656,-1912.9945,13.5469))
        {
            SetPlayerPos(playerid, -2029.8702,-119.6247,1035.1719);
            SetPlayerInterior(playerid, 3);
            format(string, sizeof(string), "~b~Welcome to the DMV");
            displayCenterHUDInfo(playerid,  string, 8);
        }
       
        for(new h = 1; h < sizeof(HouseInfo); h++)
        {
            if(IsPlayerInRangeOfPoint(playerid,1.0,HouseInfo[h][hOutsideX], HouseInfo[h][hOutsideY], HouseInfo[h][hOutsideZ]))
            {
                if(HouseInfo[h][hLocked] != 1)
                {
                    SetPlayerPos(playerid,HouseInfo[h][hInsideX],HouseInfo[h][hInsideY],HouseInfo[h][hInsideZ]);
                    SetPlayerFacingAngle(playerid,HouseInfo[h][hInsideA]);
                    SetPlayerInterior(playerid,HouseInfo[h][hInterior]);
                    SetPlayerVirtualWorld(playerid,h);
                    PlayerInfo[playerid][pInt] = HouseInfo[h][hInterior];
                    PlayerInfo[playerid][pVirtualWorld] = h;
                    SetCameraBehindPlayer(playerid);
                    new string34[75];
                    format(string34, sizeof(string34), "~b~%s", HouseInfo[h][hTag]);
                    displayCenterHUDInfo(playerid,  string34, 8); //display for 8 seconds
                }
                else
                {
                    SendClientMessage(playerid, COLOR_RED, "** This house is locked!");
                }
                break;
            }
        }
        for(new g = 1; g < MAX_GARAGES; g++){
            if(IsPlayerInRangeOfPoint(playerid, 4.0, GarageInfo[g][gOutsideX], GarageInfo[g][gOutsideY], GarageInfo[g][gOutsideZ])){
                if(GarageInfo[g][gCreated] != 0){
                    if(GarageInfo[g][gLocked] != 1){
                        if(IsPlayerInAnyVehicle(playerid)){
                            new vhid = GetPlayerVehicleID(playerid);
                            SetVehiclePos(vhid, GarageInfo[g][gInsideX], GarageInfo[g][gInsideY], GarageInfo[g][gInsideZ]);
                            SetVehicleVirtualWorld(vhid, g);
                            for(new l = 0; l < MAX_PLAYERS;l++){
                                if(IsPlayerConnected(l)){
                                    if(GetPlayerVehicleID(l) == vhid){
                                        SetPlayerVirtualWorld(l,g);
                                        PlayerInfo[l][pVirtualWorld] = g;
                                    }
                                }
                            }
                            SetVehicleZAngle(vhid, GarageInfo[g][gInsideA]);
                        }
                        else{
                            SetPlayerPos(playerid, GarageInfo[g][gInsideX], GarageInfo[g][gInsideY], GarageInfo[g][gInsideZ]);
                            SetPlayerVirtualWorld(playerid,g);
                            SetCameraBehindPlayer(playerid);
                            SetPlayerFacingAngle(playerid, GarageInfo[g][gInsideA]);
                            PlayerInfo[playerid][pVirtualWorld] = g;
                        }
                        FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
                    }
                    else{
                        SendClientMessage(playerid, COLOR_RED, "** This garage is locked!");
                    }
                }
                break;
            }
        }
        for(new b = 0; b < sizeof(BizInfo); b++)
        {
            if(IsPlayerInRangeOfPoint(playerid,2.0,BizInfo[b][bOutsideX], BizInfo[b][bOutsideY], BizInfo[b][bOutsideZ]))
            {
                if(BizInfo[b][bLocked]) return SendClientMessage(playerid,COLOR_GREY,"   This business is closed, come back later.");
                if(PlayerInfo[playerid][pBizKey] != b && BizInfo[b][bProducts] <= 0) return SendClientMessage(playerid, COLOR_GREY,"   This business has no products, come back later.");
                if(PlayerInfo[playerid][pBizKey] != b && BizInfo[b][bEntryFee] > 0)
                {
                    if(GetMoney(playerid) >= BizInfo[b][bEntryFee])
                    {
                        GiveMoney(playerid,-BizInfo[b][bEntryFee]);
                        BizInfo[b][bTill] += BizInfo[b][bEntryFee];
                        format(string, sizeof(string), "~r~-$%d", BizInfo[b][bEntryFee]);
                        GameTextForPlayer(playerid, string, 5000, 1);
                    }
                    else
                    {
                        return SendClientMessage(playerid, COLOR_GRAD2, "   You cannot afford the entry fee !");
                    }
                }
                if(BizInfo[b][bType] == 1) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buygun to buy (il)legal guns from this ammunation.");
                else if(BizInfo[b][bType] == 2) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy food from this business.");
                else if(BizInfo[b][bType] == 3 || BizInfo[b][bType] == 5) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy items from this business.");
                else if(BizInfo[b][bType] == 4) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /drink to buy a drink from this business.");
                else if(BizInfo[b][bType] == 5) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy items from this business.");
                else if(BizInfo[b][bType] == 6) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy clothes from this business.");
                else if(BizInfo[b][bType] == 7) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy donuts from this business.");
                else if(BizInfo[b][bType] == 8) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy food from this business.");
                else if(BizInfo[b][bType] == 9) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   Use /buy to buy food from this business.");
                else if(BizInfo[b][bType] == 10) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   This business type hasn't been scripted yet.");
                else if(BizInfo[b][bType] == 11) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   This business type hasn't been scripted yet.");
                else if(BizInfo[b][bType] == 12) SendClientMessage(playerid,COLOR_LIGHTBLUE,"   This business type hasn't been scripted yet.");
                SetPlayerVirtualWorld(playerid, b);
                SetPlayerInterior(playerid, BizInfo[b][bInsideInt]);
                SetPlayerPos(playerid, BizInfo[b][bInsideX],BizInfo[b][bInsideY],BizInfo[b][bInsideZ]);
                SetPlayerFacingAngle(playerid,BizInfo[b][bInsideAng]);
                SetCameraBehindPlayer(playerid);
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2353.1772, -1463.4822, 24.0000)) // Hidden Package Store ( Tiki Heaven )
        {
            SetPlayerInterior(playerid, 69);
            PlayerInfo[playerid][pInt] = 69;
            SetPlayerPos(playerid, 2367.1083, -1468.6744, 921.81);
            GameTextForPlayer(playerid, "~w~Tiki Store", 5000, 1);
            SetPlayerFacingAngle(playerid, 0.0);
            SetCameraBehindPlayer(playerid);
        }
        // Nick Exo's Shit
        if(IsPlayerInRangeOfPoint(playerid, 2, 2127.51, 2379.54, 10.82)) // Outside -> Casino
        {
            SetPlayerPos(playerid, 2018.60, 1017.88, 996.87);
            SetPlayerInterior(playerid, 10);
            PlayerInfo[playerid][pInt] = 10;
            SetCameraBehindPlayer(playerid);
            SetPlayerFacingAngle(playerid, 90.0);
            displayCenterHUDInfo(playerid,  "~b~exo's casino", 8); //display for 8 seconds
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 2102.55, 2425.19, 60.81)) // Roof -> Casino
        {
            SetPlayerPos(playerid, 1963.58, 1062.94, 994.46);
            SetPlayerInterior(playerid, 10);
            PlayerInfo[playerid][pInt] = 10;
            SetCameraBehindPlayer(playerid);
            SetPlayerFacingAngle(playerid, 149.07);
            displayCenterHUDInfo(playerid,  "~b~exo's casino", 8); //display for 8 seconds
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 2124.05, 2404.77, 52.05)) // Office -> Casino
        {
            SetPlayerPos(playerid, 1963.49, 972.88, 994.46);
            SetPlayerInterior(playerid, 10);
            PlayerInfo[playerid][pInt] = 10;
            SetCameraBehindPlayer(playerid);
            SetPlayerFacingAngle(playerid, 27.18);
            displayCenterHUDInfo(playerid,  "~b~exo's casino", 8); //display for 8 seconds
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 2124.05, 2404.77, 52.05)) // Office -> Casino
        {
            SetPlayerPos(playerid, 1963.49, 972.88, 994.46);
            SetPlayerInterior(playerid, 10);
            PlayerInfo[playerid][pInt] = 10;
            SetCameraBehindPlayer(playerid);
            SetPlayerFacingAngle(playerid, 27.18);
            displayCenterHUDInfo(playerid,  "~b~exo's casino", 8); //display for 8 seconds
        }
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1519.02, -1453.92, 14.20)) // VIP Club
        {
            if(PlayerInfo[playerid][pDonateRank] >= 1)
            {
                SetPlayerInterior(playerid, 69);
                PlayerInfo[playerid][pInt] = 69;
                SetPlayerPos(playerid, 1532.51, -1461.23, 1037.01);
                displayCenterHUDInfo(playerid,  "~p~vip club", 8); //display for 8 seconds
                SetPlayerFacingAngle(playerid, 180.0);
                SetCameraBehindPlayer(playerid);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "** You must be a VIP to enter the VIP lounge!");
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2275.39, -930.02, 28.04)) // VIP Black Market
        {
            if(PlayerInfo[playerid][pDonateRank] >= 2)
            {
                SetPlayerInterior(playerid, 7);
                PlayerInfo[playerid][pInt] = 7;
                SetPlayerVirtualWorld(playerid, 426);
                PlayerInfo[playerid][pVirtualWorld] = 426;
                SetPlayerPos(playerid, 315.70, -143.01, 999.60);
                displayCenterHUDInfo(playerid,  "~b~blackmarket", 8); //display for 8 seconds
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "   Use /purchase to purchase some weapons.");
                SetPlayerFacingAngle(playerid, 0.0);
                SetCameraBehindPlayer(playerid);
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, "** You are not a Silver or Gold VIP!");
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 3, 1310.0685,-1367.6198,13.5382))
        {
            if(PlayerInfo[playerid][pLevel] <= 1)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "  Level 1's can not join paintball!");
                return 1;
            }
            DisplayDialogForPlayer(playerid, PAINTBALLDIALOG);
        }
        if(IsPlayerInRangeOfPoint(playerid,3.0,2257.5410,-70.9750,31.6016)) //Hitmen HQ Entrance
        {
            if(PlayerInfo[playerid][pMember] != 8) return 1;
            SetPlayerInterior(playerid, 6);
            SetPlayerVirtualWorld(playerid,666);
            SetPlayerPos(playerid, 1243.1086,231.2560,1120.6713);
            SetPlayerFacingAngle(playerid, 269.1526);
            displayCenterHUDInfo(playerid,  "~b~Headquarters", 8); //display for 8 seconds
            SetCameraBehindPlayer(playerid);
            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
        }
        if(IsPlayerInRangeOfPoint(playerid,3.0,1266.4169,234.3889,25.0487)) //Sector 9 HQ Entrance
        {
            if(PlayerInfo[playerid][pMember] != 666) return 1;
            SetPlayerInterior(playerid, 6);
            SetPlayerVirtualWorld(playerid,667);
            SetPlayerPos(playerid, 1243.1086,231.2560,1120.6713);
            SetPlayerFacingAngle(playerid, 269.1526);
            displayCenterHUDInfo(playerid,  "~b~Headquarters", 8); //display for 8 seconds
            SetCameraBehindPlayer(playerid);
            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
        }
        if(IsPlayerInRangeOfPoint(playerid,3.0,648.9398,-1353.9165,13.5472)) //SANews Main Entrance
        {
            SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid, 1178.7751,-769.4749,1125.2416);
            SetPlayerFacingAngle(playerid, 279.6350);
            displayCenterHUDInfo(playerid,  "~b~SANews Headquarters", 8); //display for 8 seconds
            SetCameraBehindPlayer(playerid);
            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
        }
        if(IsPlayerInRangeOfPoint(playerid,3.0,735.3615,-1362.4121,25.6922)) //SANews Roof Entrance
        {
            SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid, 1205.3856,-766.7225,1125.2416);
            SetPlayerFacingAngle(playerid, 90.5383);
            displayCenterHUDInfo(playerid,  "~b~SANews Headquarters", 8); //display for 8 seconds
            SetCameraBehindPlayer(playerid);
            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
        }
        if(IsPlayerInRangeOfPoint(playerid,3.0,758.1264,-1355.6842,13.9799)) //SANews BackDoor Entrance
        {
            SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid, 1209.2451,-757.5836,1125.2416);
            SetPlayerFacingAngle(playerid, 16.3777);
            displayCenterHUDInfo(playerid,  "~b~SANews Headquarters", 8); //display for 8 seconds
            SetCameraBehindPlayer(playerid);
            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
        }
        if(IsPlayerInRangeOfPoint(playerid,3.0,681.5620,-474.2185,16.5363)) //Outlaws HQ
        {
            SetPlayerInterior(playerid, 1);
            SetPlayerPos(playerid, 678.2614,-464.6447,-25.6172);
            SetPlayerFacingAngle( playerid, 0.0000);
            displayCenterHUDInfo(playerid,  "~b~The Welcome Pump", 8); //display for 8 seconds
            PlayerInfo[playerid][pInt] = 1;
            SetCameraBehindPlayer(playerid);
        }
        for(new i = 0; i < MAX_VEHICLES; i++)
        {
            if(GetVehicleModel(i) == 519)
            {
                new Float:shax, Float:shay, Float:shaz;
                GetVehiclePos(i, shax, shay, shaz);
                if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz)) //Found a shamal.
                {
                    strmid(sendername, PlayerRPName(playerid), 0, MAX_PLAYER_NAME);
                    if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stanger has entered the shamal.");
                    else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    SetPlayerVirtualWorld(playerid, i);
                    SetPlayerInterior(playerid,1);
                    SetPlayerPos(playerid,2.57, 33.14, 1200);
                    displayCenterHUDInfo(playerid,  "~b~Shamal", 8); //display for 8 seconds
                    GivePlayerGun(playerid, 46);
                    return 1;
                }
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 375.59, -2076.85, 8.41)) // Fishing Store
        {
            SetPlayerInterior(playerid, 69);
            PlayerInfo[playerid][pInt] = 69;
            SetPlayerPos(playerid, 357.57, -2067.90, 979.80);

            displayCenterHUDInfo(playerid,  "~b~Bait Shop~n~~w~ Type ~r~/store~w~ to buy", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 270.0000);
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3, 2625.9407, -1112.6112, 67.9953)) // East Coast Families Enter (Front)
        {
            SetPlayerPos(playerid, 2807.4290, -1165.7354, 1025.5703);
            SetPlayerInterior(playerid, 8);
            PlayerInfo[playerid][pInt] = 8;
            SetPlayerVirtualWorld(playerid, 10);
            PlayerInfo[playerid][pVirtualWorld] = 10;
            SetCameraBehindPlayer(playerid);
            SetPlayerFacingAngle( playerid, 180.0);
            displayCenterHUDInfo(playerid,  "~b~East Cost Families~n~Crib", 8); //display for 8 seconds

        }
        else if(IsPlayerInRangeOfPoint(playerid, 3, 2611.2366, -1111.1881, 68.2453)) // East Coast Families Enter (Back)
        {
            SetPlayerPos(playerid, 2807.1748, -1171.8784, 1025.5703);
            SetPlayerInterior(playerid, 8);
            PlayerInfo[playerid][pInt] = 8;
            SetPlayerVirtualWorld(playerid, 10);
            PlayerInfo[playerid][pVirtualWorld] = 10;
            SetCameraBehindPlayer(playerid);
            SetPlayerFacingAngle( playerid, 0.0);
            displayCenterHUDInfo(playerid,  "~b~East Cost Families~n~Crib", 8); //display for 8 seconds
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 2618.9412, -1118.4761, 67.9953)) // East Coast Families Enter (Side)
        {
            SetPlayerPos(playerid, 2819.5872,-1172.9215,1025.5703);
            SetPlayerInterior(playerid, 8);
            PlayerInfo[playerid][pInt] = 8;
            SetPlayerVirtualWorld(playerid, 10);
            PlayerInfo[playerid][pVirtualWorld] = 10;
            SetCameraBehindPlayer(playerid);
            SetPlayerFacingAngle(playerid, 90.0);
            displayCenterHUDInfo(playerid,  "~b~East Cost Families~n~Crib", 8); //display for 8 seconds
        }
        else if(IsPlayerInRangeOfPoint(playerid, 1.5, 2616.8911, -1118.1410, 70.8499)) // East Coast Families Enter (Window)
        {
            SetPlayerPos(playerid, 2817.0349,-1165.4685,1029.1719);
            SetPlayerInterior(playerid, 8);
            PlayerInfo[playerid][pInt] = 8;
            SetPlayerVirtualWorld(playerid, 10);
            PlayerInfo[playerid][pVirtualWorld] = 10;
            SetCameraBehindPlayer(playerid);
            SetPlayerFacingAngle(playerid, 180.0);
            displayCenterHUDInfo(playerid,  "~b~East Cost Families~n~Crib", 8); //display for 8 seconds
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,611.0699,-583.6415,18.1517)) //SAST
        {
            SetPlayerInterior(playerid, 5);
            SetPlayerPos(playerid, 322.2817,303.3415,999.1484);
            SetPlayerFacingAngle(playerid, 0.0000);

            displayCenterHUDInfo(playerid,  "~b~Colonel's office", 8); //display for 8 seconds

            PlayerInfo[playerid][pInt] = 5;
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,906.9045,-915.5287,57.7345) && GetPlayerVirtualWorld(playerid) == 0) //Mafia Roof
        {
            SetPlayerInterior(playerid, 1);
            SetPlayerVirtualWorld(playerid, 2);
            SetPlayerPos(playerid, -794.9364,490.3830,1376.1953);
            PlayerInfo[playerid][pInt] = 1;
            PlayerInfo[playerid][pVirtualWorld] = 2;
            SetPlayerFacingAngle(playerid, 0.00000);
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,1777.4604,-1664.0137,14.4343)) //FBI HQ
        {
            SetPlayerInterior(playerid, 10);
            SetPlayerPos(playerid, 246.40,110.84,1003.22);
            SetPlayerFacingAngle(playerid, 0.0000);

            displayCenterHUDInfo(playerid,  "~b~Federal Bureau of Investigation", 8); //display for 8 seconds

            PlayerInfo[playerid][pInt] = 10;
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1498.4185,-2182.5278,14.1682)) //FIRE DEPARTMENT ENTERANCE
        {
            SetPlayerInterior(playerid, 3);
            SetPlayerPos(playerid, 368.0984,162.2898,1019.9844);
            PlayerInfo[playerid][pInt] = 3;

            displayCenterHUDInfo(playerid,  "~b~Fire Department Head Quarters", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 90.0);
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1172.6975, -1325.3914, 15.4019)) //HOSPITAL GROUND ENTER
        {
            SetPlayerInterior(playerid, 70);
            SetPlayerPos(playerid, 1199.0801,-1366.3083,1017.8790);
            PlayerInfo[playerid][pInt] = 70;

            displayCenterHUDInfo(playerid,  "~b~All Saints Medical Center", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 271.3973);
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1154.5345, -1343.6583, 26.6953)) //HOSPITAL ROOF ENTER
        {
            SetPlayerInterior(playerid, 70);
            SetPlayerPos(playerid, 1216.2145,-1379.2618,1029.4714);
            PlayerInfo[playerid][pInt] = 70;
            displayCenterHUDInfo(playerid,  "~b~All Saints Medical Center", 8); //display for 8 seconds
            SetPlayerFacingAngle(playerid, 1.0922);
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3, 1564.8468,-1666.1549,28.3956)) //LSPD Roof-LSPD Entrance
        {
            if(GetPlayerVirtualWorld(playerid) == 0)
            {
                SetPlayerInterior(playerid, 6);
                SetPlayerPos(playerid,242.7468,66.3155,1003.6406);
                SetCameraBehindPlayer(playerid);
                displayCenterHUDInfo(playerid,  "~b~Los Santos Police Department", 8); //display for 8 seconds
                SetPlayerFacingAngle(playerid, 270.0);
                PlayerInfo[playerid][pInt] = 6;
            }
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3, 1554.5262,-1675.7283,16.1953)) //LSPD-Entrance
        {
            if(GetPlayerVirtualWorld(playerid) == 0)
            {
                SetPlayerInterior(playerid, 6);
                SetPlayerPos(playerid,246.7284,62.6640,1003.6406);
                SetCameraBehindPlayer(playerid);
                displayCenterHUDInfo(playerid,  "~b~Los Santos Police Department", 8); //display for 8 seconds
                SetPlayerFacingAngle(playerid, 0.0);
                PlayerInfo[playerid][pInt] = 6;
            }
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3, 1568.6840,-1691.0090,5.8906)) //Garage-LSPD Entrance
            {
                if(GetPlayerVirtualWorld(playerid) == 0)
                {
                    SetPlayerInterior(playerid, 6);
                    SetPlayerPos(playerid,246.4211,87.0546,1003.6406);
                    SetCameraBehindPlayer(playerid);
                    displayCenterHUDInfo(playerid,  "~b~Los Santos Police Department", 8); //display for 8 seconds
                    SetPlayerFacingAngle(playerid, 180.0000);
                    PlayerInfo[playerid][pInt] = 6;
            }
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,1480.9606,-1772.3036,18.7958)) //City Hall Entrance
            {
                SetPlayerInterior(playerid, 3);
                SetPlayerPos(playerid, 390.7296,173.7785,1008.3828);
                SetPlayerFacingAngle(playerid, 90.0000);
                displayCenterHUDInfo(playerid,  "~b~Cityhall", 8); //display for 8 seconds
                PlayerInfo[playerid][pInt] = 3;
                SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3, 1895.2286,-2021.3555,13.5469)) // Latin Kings
        {
            SetPlayerPos(playerid, 2569.4885,-1301.9822,1044.1250);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid, 2);
            PlayerInfo[playerid][pInt] = 2;

            displayCenterHUDInfo(playerid,  "~b~South Side Locotes", 8); //display for 8 seconds
            SetPlayerFacingAngle(playerid, 90.0000);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3, 2073.2996,-1583.2520,13.4744)) // Idlewood Rydas
        {
            SetPlayerPos(playerid, 446.7476, 507.4956, 1001.4195);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid, 12);
            PlayerInfo[playerid][pInt] = 12;
            SetPlayerVirtualWorld(playerid, 299);
            PlayerInfo[playerid][pVirtualWorld] = 299;

            displayCenterHUDInfo(playerid,  "~b~Idlewood Rydas", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 0.0000);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3, 2447.8350,-1962.6876,13.5469)) //Los Santos Export Depot
        {
            SetPlayerPos(playerid,2573.0928,-1302.0148,1044.1250);
            SetCameraBehindPlayer(playerid);
            PlayerInfo[playerid][pInt] = 2;
            SetPlayerInterior(playerid, 2);

            displayCenterHUDInfo(playerid,  "~b~Los Santos ~n~Export Depot HQ", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 270.0000);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,51.9720,-292.6349,1.7031)) //Drug Factory
        {
            SetPlayerInterior(playerid, 1);
            SetPlayerPos(playerid, 2205.2314,1551.5662,1008.4103);
            SetPlayerFacingAngle(playerid, 270.7354);

            displayCenterHUDInfo(playerid,  "~b~Ballas Crib", 8); //display for 8 seconds

            PlayerInfo[playerid][pInt] = 1;
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,2000.0439,-1114.1256,27.1250)) //Ballas HQ
        {
            SetPlayerVirtualWorld(playerid, 1);
            SetPlayerInterior(playerid, 2);
            SetPlayerPos(playerid, 2468.5376,-1698.2233,1013.5078);
            SetPlayerFacingAngle(playerid, 90.0000);

            displayCenterHUDInfo(playerid,  "~b~Ballas Crib", 8); //display for 8 seconds

            PlayerInfo[playerid][pInt] = 2;
            PlayerInfo[playerid][pVirtualWorld] = 1;
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,1997.8634,-1104.3289,26.7813)) //Ballas HQ 2
        {
            SetPlayerVirtualWorld(playerid, 1);
            SetPlayerInterior(playerid, 2);
            SetPlayerPos(playerid, 2451.2813,-1685.8804,1013.5078);
            SetPlayerFacingAngle(playerid, 180.0000);
            displayCenterHUDInfo(playerid,  "~b~Ballas Crib", 8); //display for 8 seconds
            PlayerInfo[playerid][pInt] = 2;
            PlayerInfo[playerid][pVirtualWorld] = 1;
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,2756.3127,-1182.7612,69.4033)) //The Walton Cartels HQ
        {
            SetPlayerInterior(playerid, 12);
            SetPlayerPos(playerid, 1142.8920,6.3150,1000.6797);
            SetPlayerFacingAngle(playerid, 90.0000);
            displayCenterHUDInfo(playerid,  "~b~The Walton Cartels HQ", 8); //display for 8 seconds
            PlayerInfo[playerid][pInt] = 12;
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,1191.2216,-1652.8029,13.9285)) //Triads HQ
        {
            SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid, 763.1277,-49.8147,1000.5859);
            SetPlayerFacingAngle(playerid, 0.0000);

            displayCenterHUDInfo(playerid,  "~b~Yakuza Dojo", 8); //display for 8 seconds

            PlayerInfo[playerid][pInt] = 6;
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,2183.1687,-2668.6416,17.8828)) //South Side Renegades HQ
        {
            SetPlayerInterior(playerid, 18);
            PlayerInfo[playerid][pInt] = 18;
            SetPlayerPos(playerid, 1249.7102,-28.1984,1001.0362);
            SetPlayerFacingAngle(playerid, 270.0);

            displayCenterHUDInfo(playerid,  "~b~South Side Renegades", 8); //display for 8 seconds

            SetCameraBehindPlayer(playerid);
            PlayerInfo[playerid][pVirtualWorld] = 299;
            SetPlayerVirtualWorld(playerid, 299);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0, 233.2956,1840.2114,17.6406)) // Cafeteria Enterance
        {
            SetPlayerInterior(playerid, 4);
            SetPlayerPos(playerid, 459.2668, -88.6474, 999.5547);
            SetPlayerFacingAngle(playerid, 89.9299);
            PlayerInfo[playerid][pInt] = 4;

            displayCenterHUDInfo(playerid,  "~b~Cafeteria", 8); //display for 8 seconds

            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,201.3625,1869.4546,13.1406)) //Prison
        {
            if(!IsANG(playerid))
            {
                new numofngs = 0;
                foreach(Player, i)
                {
                    if(IsANG(i))
                    {
                        numofngs++;
                    }
                }
                if(numofngs >= 3)
                {
                    SetPlayerInterior(playerid, 69);
                    SetPlayerPos(playerid, 1804.9424,-1576.6188,1636.9736);
                    displayCenterHUDInfo(playerid,  "~b~Detention Facility", 8); //display for 8 seconds
                    SetPlayerFacingAngle(playerid, 90.0000);
                    PlayerInfo[playerid][pInt] = 69;
                    SetCameraBehindPlayer(playerid);
                    FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
                }
                else
                {
                    SendClientMessage(playerid, COLOR_RED, "There needs to be 3 NGs on for you to enter here!");
                }
            }
            else
            {
                SetPlayerInterior(playerid, 69);
                SetPlayerPos(playerid, 1804.9424,-1576.6188,1636.9736);
                displayCenterHUDInfo(playerid,  "~b~Detention Facility", 8); //display for 8 seconds
                SetPlayerFacingAngle(playerid, 90.0000);
                PlayerInfo[playerid][pInt] = 69;
                SetCameraBehindPlayer(playerid);
                FreezePlayer(playerid, FREEZE, ENTER_FREEZE);
            }
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0, 2232.89, -1333.48, 23.98)) //Church
        {
            SetPlayerInterior(playerid, 69);
            PlayerInfo[playerid][pInt] = 69;
            SetPlayerPos(playerid, -1269.07, 77.78, 992.04);
            FreezePlayer(playerid, FREEZE, ENTER_FREEZE);

            displayCenterHUDInfo(playerid,  "~b~Los Santos Chapel", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 180.0000);
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0, 1462.3500, -1011.3336, 26.8438)) // Bank
        {
            SetPlayerInterior(playerid, 69);
            PlayerInfo[playerid][pInt] = 69;
            SetPlayerPos(playerid, 1415.490, -986.773, 1639.78);

            displayCenterHUDInfo(playerid,  "~b~Los Santos Bank", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 270.0000);
            SetCameraBehindPlayer(playerid);
            SetPlayerTime(playerid, 12, 0);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,177.0772,1840.2100,17.6406)) //Infirmary
        {
            SetPlayerPos(playerid, 268.7222,1862.8405,8.7578);

            displayCenterHUDInfo(playerid,  "~b~Infirmary", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,3.0,141.6423,1875.4824,17.8434)) //Locker Room
        {
            SetPlayerInterior(playerid, 18);
            SetPlayerPos(playerid, -217.7308,1402.6931,27.7734);

            displayCenterHUDInfo(playerid,  "~b~Locker Room", 8); //display for 8 seconds

            SetPlayerFacingAngle(playerid, 90.0000);
            PlayerInfo[playerid][pInt] = 18;
            SetCameraBehindPlayer(playerid);
        }
        else if(IsPlayerInRangeOfPoint(playerid,8.0,-2111.5686,-443.9720,38.7344))
        {
            SetPlayerInterior(playerid,4);
            SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);

            displayCenterHUDInfo(playerid,  "~b~Welcome to the Dirt Track", 8); //display for 8 seconds

            PlayerInfo[playerid][pInt] = 4;

        }
        else if(IsPlayerInRangeOfPoint(playerid,8.0,-2080.3079,-406.0309,38.7344))
        {
            SetPlayerInterior(playerid,14);
            SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);

            displayCenterHUDInfo(playerid,  "~b~Welcome to the Stunting Track", 8); //display for 8 seconds

            PlayerInfo[playerid][pInt] = 14;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2025.2659, -1401.6707, 17.2100))
        {
            SetPlayerPos(playerid, 980.7294, 1472.9312, 1004.4619);
            SetPlayerFacingAngle(playerid, 0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid, 8);
            PlayerInfo[playerid][pInt] = 8;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2047.3463, -1396.1946, 48.3359))
        {
            SetPlayerPos(playerid, 1004.3405, 1488.7122, 1016.0709);
            SetPlayerFacingAngle(playerid, 270);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid, 8);
            PlayerInfo[playerid][pInt] = 8;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2049.5835, -1404.1725, 48.3359))
        {
            SetPlayerPos(playerid, 1013.2662, 1491.3506, 1016.0709);
            SetPlayerFacingAngle(playerid, 180);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid, 8);
            PlayerInfo[playerid][pInt] = 8;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 975.0505, 1495.7568, 1010.2537))
        {
            SetPlayerPos(playerid, 975.0416, 1494.5276, 1010.2537);
            SetPlayerFacingAngle(playerid, 180);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid, 8);
            PlayerInfo[playerid][pInt] = 8;
                    }
                }
            }
        }
        return 1;
    }
Reply
#10

Same problem. It returns Server:Unknown Command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)