Hey,
Wenn ich ein Biz entern möchte, dann spawne ich immer mitten im nirgendwo und nicht im Biz-Interior
(Vom Sammelthread hierhin verschoben)
Ich will noch eine Abfrage machen, wenn das Biz nicht betretbar ist, dass kein Teleport stattfindet
C
		
			enum bizinteriors{
	Name[35],
	Interior,
	Welt,
	Biztype,
 	Float:IX,Float:IY,Float:IZ// Exit Position
}C
		
			stock const BizInts[][bizinteriors]={
{"24/7",4,1,1,/*InteriorPos*/-27.312300,29.277599,1003.549988},
{"24/7",4,1,1,/*InteriorPos*/-27.312300,29.277599,1003.549988},
{"24/7",4,1,1,/*InteriorPos*/-27.312300,29.277599,1003.549988},
{"24/7",4,1,1,/*InteriorPos*/-27.312300,29.277599,1003.549988},
{"24/7",4,1,1,/*InteriorPos*/-27.312300,29.277599,1003.549988},
{"24/7",4,1,1,/*InteriorPos*/-27.312300,29.277599,1003.549988},
{"24/7",4,1,1,/*InteriorPos*/-27.312300,29.277599,1003.549988},
{"24/7",4,1,1,/*InteriorPos*/-27.312300,29.277599,1003.549988}
};C
		
			enum buildungs{
	Name[35],
	Interior,
	Welt,
	Float:EX,Float:EY,Float:EZ,// Enter Position
	Float:IX,Float:IY,Float:IZ// Exit Position
}C
		
					
			if(GetPVarInt(playerid,"InBiz")!=-1)
	    {
	        new b=GetPVarInt(playerid,"InBiz");
	        new bi=bInfo[b][bInterior];
    		if(IsPlayerInRangeOfPoint(playerid,3.0,BizInts[bi][IX],BizInts[bi][IY],BizInts[bi][IZ]))
	    	{
	    	    SetPlayerPos(playerid,bInfo[b][bX],bInfo[b][bY],bInfo[b][bZ]);
	            SetPlayerInterior(playerid,0);
	            SetPlayerVirtualWorld(playerid,0);
	            SetPVarInt(playerid,"InBiz",-1);
	            return 1;
	    	}
		}
		else
		{
			for(new b;b<sizeof(bInfo);b++)
		    {
		        if(IsPlayerInRangeOfPoint(playerid,5.0,bInfo[b][bX],bInfo[b][bY],bInfo[b][bZ]))
		        {
		            if(bInfo[b][biztype]==7)return 1;
		            new bi=bInfo[b][bInterior];
		            SetPlayerPos(playerid,BizInts[bi][IX],BizInts[bi][IY],BizInts[bi][IZ]);
		            SetPlayerInterior(playerid,BizInts[bi][Interior]);
		            SetPlayerVirtualWorld(playerid,BizInts[bi][Welt]);
	                SetPVarInt(playerid,"InBiz",b);
	                return 1;
		        }
	     	}
		} 
		 
		
		
	 
			
									
		



