Help making enter and exit keys
#1

hi , i need help with entering and exiting keys such as you press'Y' to enter and 'N' to exit.. i got /enter /exit cmds but i want to modify them tp use 'Y' 'N' also ..
how do i do it ?.,
Reply
#2

OnPlayerKeyStateChange

Move all codes from your /enter and exit command here.

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_YES) //Enter
    {
        //Your /enter command code here
    }
    else if(newkeys & KEY_NO) //Exit
    {
        //Your /exit command code here
    }
    return 1;
}
Reply
#3

It crashes my pawno
Reply
#4

Show me your code.
Reply
#5

pawn Code:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_ACTION))
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
        //take the stuff from your enter && exit command and put it here
        }
    }
    return 1;
}
Reply
#6

Quote:
Originally Posted by Romel
View Post
Show me your code.
uhhh sorry , but it wasnt your code that was crashing it it was something else btw i am getting error after this

Code:
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2833) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2841) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2848) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2857) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2871) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2878) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2882) : error 017: undefined symbol "GivePlayerCash"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2885) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2892) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2900) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2907) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2914) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2922) : error 017: undefined symbol "GivePlayerCash"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2925) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2932) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2939) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2947) : error 017: undefined symbol "ABroadCast"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2961) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2970) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2982) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(2997) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(3005) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(3013) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(3025) : error 017: undefined symbol "ABroadCast"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(3031) : error 017: undefined symbol "ProxDetector"
C:\Documents and Settings\User\Desktop\New Folder\CR-RP(LS)\plugins\Test123.pwn(3051) : error 017: undefined symbol "ABroadCast"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
and this is what i did
Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys & KEY_YES) //Enter
	{
	if(GetPVarInt(playerid, "IsInArena") >= 0) {
		SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
		return 1;
	}
	if( PlayerCuffed[playerid] >= 1 ) {
		SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this right now.");
		return 1;
	}
	if( PlayerInfo[playerid][pJailed] == 1 ) {
		SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this right now.");
		return 1;
	}

	for(new i = 0; i < sizeof(DDoorsInfo); i++) {
		if (IsPlayerInRangeOfPoint(playerid,3.0,DDoorsInfo[i][ddExteriorX], DDoorsInfo[i][ddExteriorY], DDoorsInfo[i][ddExteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddExteriorVW]) {
			if(DDoorsInfo[i][ddVIP] > 0 && PlayerInfo[playerid][pDonateRank] < DDoorsInfo[i][ddVIP]) {
				SendClientMessageEx(playerid, COLOR_GRAD2, "You can not enter, you are not a high enough VIP level.");
				return 1;
			}

			if(DDoorsInfo[i][ddFamily] > 0) {
				if(PlayerInfo[playerid][pFMember] != DDoorsInfo[i][ddFamily]-1) {
					SendClientMessageEx(playerid, COLOR_GRAD2, "You can not enter, this door is family restricted.");
					return 1;
				}
			}

			if(DDoorsInfo[i][ddFaction] > 0) {
				if(DDoorsInfo[i][ddFaction] >= 32) {
					if(!IsACop(playerid)) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can not enter, this door is restricted to law enforcement officers.");
				}
				else if(DDoorsInfo[i][ddFaction] < 32 && PlayerInfo[playerid][pMember] != DDoorsInfo[i][ddFaction]) {
					SendClientMessageEx(playerid, COLOR_GRAD2, "You can not enter, this door is faction restricted.");
					return 1;
				}
			}

			if(DDoorsInfo[i][ddAdmin] > 0 && PlayerInfo[playerid][pAdmin] < DDoorsInfo[i][ddAdmin]) {
				SendClientMessageEx(playerid, COLOR_GRAD2, "You can not enter, you are not a high enough admin level.");
				return 1;
			}

			if(DDoorsInfo[i][ddWanted] > 0 && PlayerInfo[playerid][pWantedLevel] != 0) {
				SendClientMessageEx(playerid, COLOR_GRAD2, "You can not enter, this door restricts those with wanted levels.");
				return 1;
			}

			if(DDoorsInfo[i][dLocked] == 1) {
				return SendClientMessageEx(playerid, COLOR_GRAD2, "This door is currently locked.");
			}

			SetPlayerInterior(playerid,DDoorsInfo[i][ddInteriorInt]);
			PlayerInfo[playerid][pInt] = DDoorsInfo[i][ddInteriorInt];
			PlayerInfo[playerid][pLocal] = DDoorsInfo[i][ddInteriorVW];
			PlayerInfo[playerid][pVW] = DDoorsInfo[i][ddInteriorVW];
			SetPlayerVirtualWorld(playerid, DDoorsInfo[i][ddInteriorVW]);
			if(DDoorsInfo[i][ddCustomInterior]) {
				TogglePlayerControllable(playerid, 0);
				GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
				SetPVarInt(playerid, "LoadingObjects", 1);
				SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
			}
			if(DDoorsInfo[i][ddVehicleAble] > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
				SetVehiclePos(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
				SetVehicleZAngle(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorA]);
				SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorVW]);
				LinkVehicleToInterior(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorInt]);
			}
			else {
				SetPlayerPos(playerid,DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
				SetPlayerFacingAngle(playerid,DDoorsInfo[i][ddInteriorA]);
				SetCameraBehindPlayer(playerid);
			}
			return Streamer_UpdateEx(playerid, DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
		}
	}
	for(new i = 0; i < sizeof(FamilyInfo); i++) {
		if (IsPlayerInRangeOfPoint(playerid,3.0,FamilyInfo[i][FamilyEntrance][0], FamilyInfo[i][FamilyEntrance][1], FamilyInfo[i][FamilyEntrance][2])) {

			SetPlayerInterior(playerid,FamilyInfo[i][FamilyInterior]);
			PlayerInfo[playerid][pInt] = FamilyInfo[i][FamilyInterior];
			PlayerInfo[playerid][pLocal] = FamilyInfo[i][FamilyVirtualWorld];
			PlayerInfo[playerid][pVW] = FamilyInfo[i][FamilyVirtualWorld];
			SetPlayerVirtualWorld(playerid, FamilyInfo[i][FamilyVirtualWorld]);
			if(FamilyInfo[i][FamilyCustomMap]) {
				TogglePlayerControllable(playerid, 0);
				GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
				SetPVarInt(playerid, "LoadingObjects", 1);
				SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
			}
			Streamer_UpdateEx(playerid, FamilyInfo[i][FamilyExit][0],FamilyInfo[i][FamilyExit][1],FamilyInfo[i][FamilyExit][2]);
			SetPlayerPos(playerid,FamilyInfo[i][FamilyExit][0],FamilyInfo[i][FamilyExit][1],FamilyInfo[i][FamilyExit][2]);
			SetPlayerFacingAngle(playerid,FamilyInfo[i][FamilyExit][3]);
			return 1;
		}
	}
	for(new i = 0; i < sizeof(HouseInfo); i++) {
		if (IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ])) {
			if(PlayerInfo[playerid][pPhousekey] == i || PlayerInfo[playerid][pPhousekey2] == i || HouseInfo[i][hLock] == 0 || PlayerInfo[playerid][pRenting] == i) {
				SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
				PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
				PlayerInfo[playerid][pLocal] = i+6000;
				PlayerInfo[playerid][pVW] = i+6000;
				SetPlayerVirtualWorld(playerid, i+6000);
				if(HouseInfo[i][hCustomInterior] == 1) {
					TogglePlayerControllable(playerid, 0);
					GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
					SetPVarInt(playerid, "LoadingObjects", 1);
					SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
				}
				SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
				SetPlayerFacingAngle(playerid,HouseInfo[i][hInteriorA]);
				SetCameraBehindPlayer(playerid);
				GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
				Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
			}
			else {
				GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
			}
			return 1;
		}
	}
	new Float:X, Float:Y, Float:Z;
	GetObjectPos(Carrier[0], X, Y, Z);
	if(IsPlayerInRangeOfPoint(playerid, 2.0, (X-0.377671),(Y-10.917018),11.6986)) {
		//Battle Carrier
		SetPlayerInterior(playerid, 1);
		SetPlayerVirtualWorld(playerid, 7);
		PlayerInfo[playerid][pVW] = 7;
		Streamer_UpdateEx(playerid, 1170.0106201172,-1355.0770263672,2423.0461425781);
		//Old Hospital: 2087.4626,2806.0630,-16.1744
		SetPlayerPos(playerid,1170.0106201172,-1355.0770263672,2423.0461425781);
		PlayerInfo[playerid][pInt] = 1;
		TogglePlayerControllable(playerid, 0);
		GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
		SetPVarInt(playerid, "LoadingObjects", 1);
		SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, (X-6.422671),(Y-10.898918),11.6986)) {
		//Battle Carrier Armoury
		SetPlayerInterior(playerid, 6);
		SetPlayerVirtualWorld(playerid, 1337);
		SetPlayerPos(playerid, 316.4553,-170.2923,999.5938);
		PlayerInfo[playerid][pVW] = 1337;
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, 306.4042,-159.0768,999.5938)) {
		//Battle Carrier Armoury
		SetPlayerPos(playerid, 305.6966,-159.1586,999.5938);
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, (X-5.560629),(Y-3.860818),11.6986)) {
		//Engine Room Entrance
		SetPlayerInterior(playerid, 17);
		SetPlayerVirtualWorld(playerid, 1337);
		SetPlayerPos(playerid, -959.6347,1956.4598,9.0000);
		PlayerInfo[playerid][pVW] = 1337;
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, (X-15.382171),(Y-2.272918),11.6986)) {
		//Briefing Room Entrance
		SetPlayerInterior(playerid, 3);
		SetPlayerVirtualWorld(playerid, 1337);
		SetPlayerPos(playerid, 1494.3763,1303.5875,1093.2891);
		PlayerInfo[playerid][pVW] = 1337;
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, -418.95, -1759.26, 6.22 )) {
		if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
			SetPlayerVirtualWorld(playerid, 666420);
			PlayerInfo[playerid][pVW] = 666420;
			SetPlayerInterior(playerid, 6);
			PlayerInfo[playerid][pInt] = 6;
			SetPlayerPos(playerid, -68.8239,1351.4331,1080.6257);
			SetPlayerFacingAngle(playerid, 160);
			SetCameraBehindPlayer(playerid);
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, 811.087707, -564.493835, 16.335937 )) {
		if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
			SetPlayerVirtualWorld(playerid, 666421);
			PlayerInfo[playerid][pVW] = 666421;
			SetPlayerInterior(playerid, 6);
			PlayerInfo[playerid][pInt] = 6;
			SetPlayerPos(playerid, -68.8239,1351.4331,1080.6257);
			SetPlayerFacingAngle(playerid, 160);
			SetCameraBehindPlayer(playerid);
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,1547.1947,29.8561,24.1406)) {
		GameTextForPlayer(playerid, "~w~GARAGE", 5000, 1);
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid), -1790.378295,1436.949829,7.187500);
		}
		else {
			SetPlayerPos(playerid,-1790.378295,1436.949829,7.187500);
		}
	}

	else if (IsPlayerInRangeOfPoint(playerid,12.0, 1294.6511,-1368.9873,13.6486)) {
        if(PlayerInfo[playerid][pDonateRank] > 0) {
            if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
                SetVehiclePos(GetPlayerVehicleID(playerid), 2488.9204,2377.0483,6.3112);
                SetVehicleZAngle(GetPlayerVehicleID(playerid),  270);
            }
            else {
                Streamer_UpdateEx(playerid, 2484.0947,2377.2258,7.4938);
                SetPlayerPos(playerid,2484.0947,2377.2258,7.4938);
                SetPlayerFacingAngle(playerid, 270);
                Streamer_Update(playerid);
            }
        }
        else {
            SendClientMessage(playerid, COLOR_WHITE, "* You are not a VIP!");
        }
	}
	else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1575.9766845703, -1636.4899902344, 13.555115699768)) {
		if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) {
			SetPlayerInterior(playerid, 0);
			PlayerInfo[playerid][pInt] = 0;
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerPos(playerid,1579.0098876953, -1636.2879638672, 13.554491043091);
			SetPlayerFacingAngle(playerid, 190.0520);
			SetCameraBehindPlayer(playerid);
			PlayerInfo[playerid][pVW] = 0;
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "You do not have the keys for that door (LSPD restricted access)!");
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0,2530.3774,-1689.9998,562.7922)) {
		if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) {
			TogglePlayerControllable(playerid, 0);
			SetPlayerFacingAngle(playerid, 359);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
			GameTextForPlayer(playerid, "~w~GARAGE", 5000, 1);
			SetPlayerPos(playerid,612.6414,-629.8659,-4.0447);
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
		}
		else {
			return SendClientMessageEx(playerid, COLOR_GRAD2, "Access Denied.");
		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, 971.75524902344, 1.949291229248, 1012.8675537109)) {
		if(PlayerInfo[playerid][pFMember] == 1) {
			Streamer_UpdateEx(playerid, 971.70568847656, 0.73652172088623, 1013.0336914063);
			SetPlayerPos(playerid, 971.70568847656, 0.73652172088623, 1013.0336914063);
			SetCameraBehindPlayer(playerid);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "Welcome");		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, -230.57353210449, 1409.3792724609, -5.2974662780762)) {
		if(PlayerInfo[playerid][pFMember] == 1) {
			Streamer_UpdateEx(playerid, -265.52786254883, 1409.2824707031, -2.2975430488586);
			SetPlayerPos(playerid, -265.52786254883, 1409.2824707031, -2.2975430488586);
			SetPlayerVirtualWorld(playerid, 6141572412);
			PlayerInfo[playerid][pVW] = 6141572412;
			SetCameraBehindPlayer(playerid);
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "Welcome");		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, 255.84442138672, -158.21658325195, 1.677818775177)) {
		if(PlayerInfo[playerid][pFMember] == 1) {
			Streamer_UpdateEx(playerid, -270.8628,1417.2441,-2.2902);
			SetPlayerPos(playerid, -270.8628,1417.2441,-2.2902);
			SetPlayerVirtualWorld(playerid, 6141572412);
			PlayerInfo[playerid][pVW] = 6141572412;
			SetCameraBehindPlayer(playerid);
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "Welcome");		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,4.0,648.7888,-1360.7708,13.5875)) {
		if(SANewsLock == 1 && PlayerInfo[playerid][pMember] != 9 && PlayerInfo[playerid][pLeader] != 9 && !IsACop(playerid)) {
			return SendClientMessageEx(playerid, COLOR_WHITE, "The door is locked!");
		}
		TogglePlayerControllable(playerid, 0);
		GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
		SetPVarInt(playerid, "LoadingObjects", 1);
		SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
		SetPlayerInterior(playerid,1);
		PlayerInfo[playerid][pInt] = 1;
		SetPlayerVirtualWorld(playerid, 4225);
		PlayerInfo[playerid][pVW] = 4225;
		SetPlayerPos(playerid,626.4980,21.4223,1107.9686);
		SetPlayerFacingAngle(playerid, 178.6711);
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,1770.1664,-2032.3145,13.5014)) {
		if(IsACop(playerid)) {
			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
				SetVehiclePos(GetPlayerVehicleID(playerid), 643.8234,-608.0292,-4.2479);
			}
			else {
				SetPlayerPos(playerid,643.8234,-608.0292,-4.2479);
			}
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,2273.6787,-1728.9022,13.5039)) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid),  2240.7332,-1695.9648,-0.0826 + 1100);
			SetVehicleZAngle(GetPlayerVehicleID(playerid),  180);
		}
		else {
			Streamer_UpdateEx(playerid, 2240.7332,-1695.9648,-0.0826 + 1100);
			SetPlayerPos(playerid,2240.7332,-1695.9648,-0.0826 + 1100);
			SetPlayerFacingAngle(playerid, 180);
			Streamer_Update(playerid);
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,1423.0443,-1664.5244,13.5810)) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid),  1381.7274,-1676.4248,-13.2229 + 1100);
			SetVehicleZAngle(GetPlayerVehicleID(playerid),  90);
		}
		else {
			Streamer_UpdateEx(playerid,1381.7274,-1676.4248,-13.2229 + 1100);
			SetPlayerPos(playerid,1381.7274,-1676.4248,-13.2229 + 1100);
			SetPlayerFacingAngle(playerid, 90);
			Streamer_Update(playerid);
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,660.42,-1794.45,12.94)) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid),  575.0776,-1642.1681,-42.0431 + 1100);
			SetVehicleZAngle(GetPlayerVehicleID(playerid),  90);
		}
		else {
			Streamer_UpdateEx(playerid, 575.0776,-1642.1681,-42.0431 + 1100);
			SetPlayerPos(playerid,575.0776,-1642.1681,-42.0431 + 1100);
			SetPlayerFacingAngle(playerid, 90);
			Streamer_Update(playerid);
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,1218.69,-1425.01,13.15)) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid),  1218.8041,-1449.8579,-46.2308 + 1100);
			SetVehicleZAngle(GetPlayerVehicleID(playerid), 360 + 1100);
		}
		else {
			Streamer_UpdateEx(playerid, 1218.8041,-1449.8579,-46.2308 + 1100);
			SetPlayerPos(playerid,1218.8041,-1449.8579,-46.2308 + 1100);
			SetPlayerFacingAngle(playerid, 90);
			Streamer_Update(playerid);
		}
	}
 	else if (IsPlayerInRangeOfPoint(playerid,8.0,1675.4128,-1636.8160,14.2266)) {
        TogglePlayerControllable(playerid, 0);
        GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
        SetPVarInt(playerid, "Loading..Interior", 1);
        SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
        SetPlayerInterior(playerid, 1);
        PlayerInfo[playerid][pInt] = 1;
        SetPlayerVirtualWorld(playerid, 133769);
        PlayerInfo[playerid][pVW] = 133769;
        SetPlayerPos(playerid,2600.49,-1682.11,1031.93);
        SetPlayerWeather(playerid, 45);
//      SetPlayerTime(playerid, 0, 0);

		audioclubhandle[playerid] = Audio_PlayStreamed(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200",false,false,false);
		Audio_Set3DPosition(playerid, audioclubhandle[playerid], 2510.1528,-1680.9617,1029.5887, 100);
		Audio_SetVolume(playerid, audioclubhandle[playerid], 50);
    }
	else if (IsPlayerInRangeOfPoint(playerid,3.0,2541.2297,-1667.9229,1027.5887)) {
		SetPlayerPos(playerid, 2541.2297,-1667.9229,1031.63);
		SetPlayerFacingAngle(playerid, 180);
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0,2540.9524,-1696.5746,1027.5887)) {
		SetPlayerPos(playerid, 2540.9614,-1696.5708,1031.6368);
		SetPlayerFacingAngle(playerid, 0);
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0,2525.8838,-1696.5721,1027.5887)) {
		SetPlayerPos(playerid, 2525.9006,-1696.5698,1031.6368);
		SetPlayerFacingAngle(playerid, 0);
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0,1779.0928,-1302.7775,131.7344)) {
		SetPlayerPos(playerid, 1771.0253,-1302.8596,125.7209);
		SetPlayerFacingAngle(playerid, 280);
	}                                              // LAOfficeBuilding Roof Entrance
	else if (IsPlayerInRangeOfPoint(playerid,3.0,1771.0253,-1302.8596,125.7209)) {
		SetPlayerPos(playerid,1779.0928,-1302.7775,131.7344);
		SetPlayerFacingAngle(playerid, 280);
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0,902.2482,1419.8180,-80.9308)) {
		if(PlayerInfo[playerid][pDonateRank] < 3) {
			SendClientMessageEx(playerid, COLOR_WHITE, "* You are not Gold or Platinum VIP!");
		}
		else {
			SetPlayerPos(playerid,911.6200,1426.2729,-81.1762);
			SetPlayerFacingAngle(playerid, 270);
		}
	}
	else if(newkeys & KEY_NO) //Exit
	{
	if(GetPVarInt(playerid, "IsInArena") >= 0) {
		SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
		return 1;
	}
	if( PlayerCuffed[playerid] >= 1 || PlayerInfo[playerid][pBeingSentenced] != 0 ) {
		SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this right now.");
		return 1;
	}
	if( PlayerInfo[playerid][pJailed] == 1 ) {
		SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this right now.");
		return 1;
	}
	for(new i = 0; i <  sizeof(DDoorsInfo); i++) {
		if (IsPlayerInRangeOfPoint(playerid,3,DDoorsInfo[i][ddInteriorX], DDoorsInfo[i][ddInteriorY], DDoorsInfo[i][ddInteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddInteriorVW]) {
			SetPlayerInterior(playerid,DDoorsInfo[i][ddExteriorInt]);
			PlayerInfo[playerid][pInt] = DDoorsInfo[i][ddExteriorInt];
			PlayerInfo[playerid][pLocal] = DDoorsInfo[i][ddExteriorInt];
			SetPlayerVirtualWorld(playerid, DDoorsInfo[i][ddExteriorVW]);
			PlayerInfo[playerid][pVW] = DDoorsInfo[i][ddExteriorVW];
			if(DDoorsInfo[i][ddCustomExterior]) {
				TogglePlayerControllable(playerid, 0);
				GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
				SetPVarInt(playerid, "LoadingObjects", 1);
				SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
			}
			if(DDoorsInfo[i][ddVehicleAble] > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
				SetVehiclePos(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorX],DDoorsInfo[i][ddExteriorY],DDoorsInfo[i][ddExteriorZ]);
				SetVehicleZAngle(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorA]);
				SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorVW]);
				LinkVehicleToInterior(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorInt]);
			}
			else {
				SetPlayerPos(playerid,DDoorsInfo[i][ddExteriorX],DDoorsInfo[i][ddExteriorY],DDoorsInfo[i][ddExteriorZ]);
				SetPlayerFacingAngle(playerid, DDoorsInfo[i][ddExteriorA]);
				SetCameraBehindPlayer(playerid);
			}
			return Streamer_UpdateEx(playerid, DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
		}
	}
	for(new i = 0; i < sizeof(FamilyInfo); i++) {
		if (IsPlayerInRangeOfPoint(playerid,3.0,FamilyInfo[i][FamilyExit][0], FamilyInfo[i][FamilyExit][1], FamilyInfo[i][FamilyExit][2]) && PlayerInfo[playerid][pVW] == FamilyInfo[i][FamilyVirtualWorld]) {
			PlayerInfo[playerid][pInt] = 0;
			PlayerInfo[playerid][pLocal] = 0;
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid,0);
			Streamer_UpdateEx(playerid, FamilyInfo[i][FamilyEntrance][0],FamilyInfo[i][FamilyEntrance][1],FamilyInfo[i][FamilyEntrance][2]);
			SetPlayerPos(playerid,FamilyInfo[i][FamilyEntrance][0],FamilyInfo[i][FamilyEntrance][1],FamilyInfo[i][FamilyEntrance][2]);
			SetPlayerFacingAngle(playerid,FamilyInfo[i][FamilyEntrance][3]);
			return 1;
		}
	}
	for(new i = 0; i <  sizeof(HouseInfo); i++) {
		if (IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]) && PlayerInfo[playerid][pVW] == i+6000) {
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			PlayerInfo[playerid][pLocal] = 255;
			if(HouseInfo[i][hCustomExterior]) {
				TogglePlayerControllable(playerid, 0);
				GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
				SetPVarInt(playerid, "LoadingObjects", 1);
				SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
			}
			SetPlayerPos(playerid,HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
			SetPlayerFacingAngle(playerid, HouseInfo[i][hExteriorA]);
			SetCameraBehindPlayer(playerid);
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			return Streamer_UpdateEx(playerid, HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
		}
	}
	if (IsPlayerInRangeOfPoint(playerid, 3.0, 1753.6423,-1586.9365,13.2424)) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid), 1753.4561,-1595.1804,13.5381);
			SetVehicleZAngle(GetPlayerVehicleID(playerid), 347.7918);
		}
		else {
			SetPlayerPos(playerid,1753.4561,-1595.1804,13.5381);
		}
	}
	else if(InsideShamal[playerid] != INVALID_VEHICLE_ID && IsPlayerInRangeOfPoint(playerid,3,2.509036, 23.118730, 1199.593750))
	{
		new string[128];
		format(string, sizeof(string), "* %s exits the Shamal airplane.", GetPlayerNameEx(playerid));
		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

		if(InsideShamal[playerid] == INVALID_VEHICLE_ID || GetVehicleModel(InsideShamal[playerid]) != 519) {
			PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
			GivePlayerValidWeapon(playerid, 46, 60000);
			SetPlayerPos(playerid, 0.000000, 0.000000, 420.000000);
		}
		else {
			new Float:X, Float:Y, Float:Z;
			GetVehiclePos(InsideShamal[playerid], X, Y, Z);
			SetPlayerPos(playerid, X-4, Y-2.3, Z);

			new Float:XB, Float:YB, Float:ZB;
			GetVehiclePos(InsideShamal[playerid], XB, YB, ZB);
			if(ZB > 50.0) {
				PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
				GivePlayerValidWeapon(playerid, 46, 60000);
			}
		}

		PlayerInfo[playerid][pVW] = 0;
		SetPlayerVirtualWorld(playerid, 0);
		PlayerInfo[playerid][pInt] = 0;
		SetPlayerInterior(playerid, 0);
		InsideShamal[playerid] = INVALID_VEHICLE_ID;
	}
	else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1169.67, -1356.32, 2423.04) && GetPlayerVirtualWorld(playerid) == 7) {
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		SetPlayerFacingAngle(playerid, 180);
		new Float:X, Float:Y, Float:Z;
		GetObjectPos(Carrier[0], X, Y, Z);
		SetPlayerPos(playerid, (X-0.377671),(Y-10.917018),11.6986);
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, 316.4553,-170.2923,999.5938) && GetPlayerVirtualWorld(playerid) == 1337) {
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		PlayerInfo[playerid][pVW] = 0;
		new Float:X, Float:Y, Float:Z;
		GetObjectPos(Carrier[0], X, Y, Z);
		SetPlayerPos(playerid, (X-6.422671),(Y-10.898918),11.6986);
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, 305.6966,-159.1586,999.5938)&& GetPlayerVirtualWorld(playerid) == 1337) {
		//Battle Carrier Armoury
		SetPlayerPos(playerid, 306.4042,-159.0768,999.5938);
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, -959.6347,1956.4598,9.0000) && GetPlayerVirtualWorld(playerid) == 1337) {
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		new Float:X, Float:Y, Float:Z;
		GetObjectPos(Carrier[0], X, Y, Z);
		SetPlayerPos(playerid, (X-5.560629),(Y-3.853518),11.6986);
		PlayerInfo[playerid][pVW] = 0;
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.3763,1303.5875,1093.2891) && GetPlayerVirtualWorld(playerid) == 1337) {
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		new Float:X, Float:Y, Float:Z;
		GetObjectPos(Carrier[0], X, Y, Z);
		SetPlayerPos(playerid, (X-15.382171),(Y-2.272918),11.6986);
		PlayerInfo[playerid][pVW] = 0;
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, 971.70568847656, 0.73652172088623, 1013.0336914063)) {
		if(PlayerInfo[playerid][pFMember] == 1) {
			Streamer_UpdateEx(playerid, 971.75524902344, 1.949291229248, 1012.8675537109);
			SetPlayerPos(playerid, 971.75524902344, 1.949291229248, 1012.8675537109);
			SetCameraBehindPlayer(playerid);
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "Welcome");		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, -265.52786254883, 1409.2824707031, -2.2975430488586)) {
		if(PlayerInfo[playerid][pFMember] == 1) {
			Streamer_UpdateEx(playerid, -230.57353210449, 1409.3792724609, -5.2974662780762);
			SetPlayerPos(playerid, -230.57353210449, 1409.3792724609, -5.2974662780762);
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			SetCameraBehindPlayer(playerid);
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
			SetPlayerInterior(playerid, 0);
			PlayerInfo[playerid][pInt] = 0;
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "Welcome");		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, -270.8628,1417.2441,-2.2902)) {
		if(PlayerInfo[playerid][pFMember] == 1) {
			Streamer_UpdateEx(playerid, 255.84442138672, -158.21658325195, 1.677818775177);
			SetPlayerPos(playerid, 255.84442138672, -158.21658325195, 1.677818775177);
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			SetCameraBehindPlayer(playerid);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
			SetPlayerInterior(playerid, 0);
			PlayerInfo[playerid][pInt] = 0;
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "Welcome");		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,-1790.378295,1436.949829,7.187500)) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid), 1551.8052,31.0254,24.1446);
		}
		else {
			SetPlayerPos(playerid,1551.8052,31.0254,24.1446);
		}
	}
 	else if (IsPlayerInRangeOfPoint(playerid,10.0,2488.9204,2377.0483,6.3112)) {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
            SetVehiclePos(GetPlayerVehicleID(playerid),  1282.2504,-1379.8691,13.3417);
            SetVehicleZAngle(GetPlayerVehicleID(playerid),  182.80);
        }
        else {
            SetPlayerPos(playerid, 1294.6511,-1368.9873,13.6486);
            SetPlayerFacingAngle(playerid, 182.80);
        }
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, -68.845336914063, 1351.3386230469, 1079.2109375 ) && (GetPlayerVirtualWorld(playerid) == 666420)) {
		if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			SetPlayerInterior(playerid, 0);
			PlayerInfo[playerid][pInt] = 0;
			SetPlayerPos(playerid, -418.95, -1759.26, 6.22);
			SetCameraBehindPlayer(playerid);
		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 2.0, -68.845336914063, 1351.3386230469, 1079.2109375 ) && (GetPlayerVirtualWorld(playerid) == 666421)) {
		if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			SetPlayerInterior(playerid, 0);
			PlayerInfo[playerid][pInt] = 0;
			SetPlayerPos(playerid, 812.989990, -563.945617, 16.335937);
			SetPlayerFacingAngle(playerid, 265.11);
			SetCameraBehindPlayer(playerid);
		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 3.0, 301.228820, 191.181884, 1007.171875)) {
		if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) {
			SetPlayerInterior(playerid, 0);
			PlayerInfo[playerid][pInt] = 0;
			SetPlayerPos(playerid,-1591.450195, 716.007141, -5.242187);
			SetPlayerFacingAngle(playerid, 271.00);
			SetCameraBehindPlayer(playerid);
		}
		else {
			return SendClientMessageEx(playerid, COLOR_GRAD2, "Access Denied.");
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0,612.6414,-629.8659,-4.0447)) {
		if(IsACop(playerid)) {
			TogglePlayerControllable(playerid, 0);
			SetPlayerFacingAngle(playerid, 268);
			GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
			SetPVarInt(playerid, "LoadingObjects", 1);
			SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
			GameTextForPlayer(playerid, "~w~SASD HQ", 5000, 1);
			SetPlayerPos(playerid,2530.3774,-1689.9998,562.7922);
			SetPlayerVirtualWorld(playerid, 1699);
			PlayerInfo[playerid][pVW] = 1699;
		}
		else {
			return SendClientMessageEx(playerid, COLOR_GRAD2, "Access Denied.");
		}
	}
	else if(IsPlayerInRangeOfPoint(playerid, 3,310.8672,-1484.7493,-33.5292 )) {
		if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) {
			SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid, 314.30,-1512.07,24.92);
			SetPlayerFacingAngle(playerid, 55.76);
			SetCameraBehindPlayer(playerid);
			PlayerInfo[playerid][pInt] = 0;
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "You do not have the keys for that door (FBI restricted access)!");
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid, 3, 291.8773,-1481.0674,-33.5308)) {
		if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) {
			SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid,298.26, -1544.53, 76.53);
			SetCameraBehindPlayer(playerid);
			PlayerInfo[playerid][pInt] = 0;
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
		}
		else {
			SendClientMessageEx(playerid, COLOR_GREY, "Welcome!");
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,6.0,-1404.5299,-259.0602,1043.6563)) {
		SetPlayerInterior(playerid,0);
		SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,-1443.0554,-581.1879,1055.0472)) {
		SetPlayerInterior(playerid,0);
		SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,-1464.7732,1557.5533,1052.5313)) {
		SetPlayerInterior(playerid,0);
		SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344);
	}
	else if (IsPlayerInRangeOfPoint(playerid,4.0,-273.884765625,1875.1552734375,29.817853927612)) {
		if (PlayerInfo[playerid][pJailed] != 4) {
			SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid,200.2569,1869.5732,13.1470);
		}
		else {
			SetPlayerHealth(playerid, 0);
			SendClientMessageEx(playerid, COLOR_WHITE, "You can not escape admin prison!");
		}

	}
	else if (IsPlayerInRangeOfPoint(playerid,20.0,643.8234,-608.0292,-4.2479)) {
		if(IsACop(playerid)) {
			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
				SetVehiclePos(GetPlayerVehicleID(playerid), 1770.1664,-2032.3145,13.5014);
			}
			else {
				SetPlayerPos(playerid,1770.1664,-2032.3145,13.5014);
			}
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,20.0,576.81,-1641.94,-42.80+1100.00)) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid),  659.7933,-1796.4683,12.4048);
			SetVehicleZAngle(GetPlayerVehicleID(playerid),  167);
		}
		else {
			SetPlayerPos(playerid,659.7933,-1796.4683,12.4048);
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,20.0,1381.7274,-1676.4248,-13.2229+1100.00)) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid),  1423.0443,-1664.5244,13.5810);
			SetVehicleZAngle(GetPlayerVehicleID(playerid),  270);
		}
		else {
			SetPlayerPos(playerid,1423.0443,-1664.5244,13.5810);
			SetPlayerFacingAngle(playerid,270);
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,20.0,2240.7332,-1695.9648,(-0.0826+1100.00))) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid),  2273.6787,-1728.9022,13.5039);
			SetVehicleZAngle(GetPlayerVehicleID(playerid),  180);
		}
		else {
			SetPlayerPos(playerid,2273.6787,-1728.9022,13.5039);
			SetPlayerFacingAngle(playerid,180);
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,20.0,1218.60,-1451.69,(-46.85+1100.00))) {
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
			SetVehiclePos(GetPlayerVehicleID(playerid),  1218.6017,-1421.5887,13.9084);
			SetVehicleZAngle(GetPlayerVehicleID(playerid),  360);
		}
		else {
			SetPlayerPos(playerid,1218.6017,-1421.5887,13.9084);
		}
	}
	else if (IsPlayerInRangeOfPoint(playerid,8.0,2601.0586,-1682.3118,1032.0050)) {
        Audio_Stop(playerid, audioclubhandle[playerid]);

        TogglePlayerControllable(playerid, 0);
        GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
        SetPVarInt(playerid, "Loading..Interior", 1);
        SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
        SetPlayerInterior(playerid, 0);
        PlayerInfo[playerid][pInt] = 0;
        SetPlayerVirtualWorld(playerid, 0);
        PlayerInfo[playerid][pVW] = 0;
        SetPlayerPos(playerid,1675.4128,-1636.8160,14.2266);
        SetPlayerWeather(playerid, gWeather);
        SyncPlayerTime(playerid);
    }

	else if (IsPlayerInRangeOfPoint(playerid,3.0,2541.2297,-1667.9229,1031.63)) {
		SetPlayerPos(playerid, 2541.2297,-1667.9229,1027.588);
		SetPlayerFacingAngle(playerid, 180);
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0,2540.9614,-1696.5708,1031.6368)) {
		SetPlayerPos(playerid, 2540.9524,-1696.5746,1027.5887);
		SetPlayerFacingAngle(playerid, 0);
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0,2525.9006,-1696.5698,1031.6368)) {
		SetPlayerPos(playerid,2525.8838,-1696.5721,1027.5887);
		SetPlayerFacingAngle(playerid, 0);
	}
	else if (IsPlayerInRangeOfPoint(playerid,3.0, 911.6200,1426.2729,-81.1762)) {
		SetPlayerPos(playerid,902.2482,1419.8180,-80.9308);
		SetPlayerFacingAngle(playerid, 90);
	}
	return 1;
}
Reply
#7

there should only be 1 return 1 at that should be someone at the end to my knownledge
Reply
#8

I think you've missing brackets try to indent your code.
Reply
#9

Quote:
Originally Posted by Glad2BeHere
View Post
there should only be 1 return 1 at that should be someone at the end to my knownledge
i have tried removing them and only kept the last one i the end but still same 26 errors.
Reply
#10

Poor identations and missing alot of tags, i went threw half i got tired u have to clean it up badly
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)