Hey,
Ich habe ein Problem undzwar, kann man ein Biz beitreten doch i.wie kommt man nicht mehr raus. Ich frage mich wieso, die Koordinaten müssten stimmen!
new BizInfo[MaxBiz][bInfo] =
{
{1,"Staat","Gun Shop SF","Niemand",-2626.4827,209.3238,4.6004,285.6058,-86.0131,1001.5229,5,5000000,0,0,1,4,100000,100000,100,1,0},
{1,"Staat","Gun Shop LS","Niemand",1791.5143,-1164.1787,23.8281,2169.461181,1618.798339,999.976562,5,5000000,0,0,1,1,100000,100000,100,2,0},
{0,"Staat","Restaurant","Niemand",1498.360107,-1583.031860,13.546898,-794.936218,490.632385,1376.195312,5,5000000,0,0,1,1,100,500,100,3,0},
{1,"Staat","LS Polizei Waffenkammer","Niemand",1568.625122,-1690.535766,5.890600,246.376007,109.246002,1003.218811,5,5000000,0,0,0,10,100000,1000000,100,1,0},
{1,"Staat","Bank LS","Niemand",1462.395751,-1012.391174,26.843799,389.3555,173.8684,1008.3828,5,5000000,0,0,0,3,99999,100000,1,1,0},
{1,"Staat","SF Polizei Waffenkammer","Niemand",-1593.8340,716.2302,-5.2422,226.7151,110.9211,1010.2188,5,5000000,0,0,1,10,100000,1000000,100,2,0},
{1,"Staat","LV Polizei Waffenkammer","Niemand",611.0042,-583.9974,17.9763,227.3422,122.0904,1010.2188,5,5000000,0,0,0,10,100000,1000000,100,3,0},
{1,"Staat","Bank SF","Niemand",-1749.3010,867.1620,25.0859,389.3555,173.8684,1008.3828,5,5000000,0,0,0,3,99999,100000,1,2,0},
{1,"Staat","Gesund Fahren mit dem Fahrad verleih","Niemand",1312.5642,-873.9422,39.5781,1312.5642,-873.9422,39.5781,5,5000000,0,0,0,0,99999,100000,1,0,0},
{1,"Staat","Ammu Nation","Niemand",1367.9816,-1279.9513,13.5469,286.148986,-40.644397,1001.515625,5,5000000,0,0,1,1,100000,100000,100,4,0},
{1,"Staat","Gun Shop LV","Niemand",2158.5098,943.0615,10.8203,296.919982,-108.071998,1001.515625,5,5000000,0,0,1,6,100000,100000,100,5,0},
{0,"Staat","Alhambra","Niemand",1834.9247,-1682.5403,13.4112,493.2791,-24.2553,1000.6797,5,5000000,0,0,1,17,500,500,100,2,0},
{0,"Staat","Jizzy","Niemand",-2624.2668,1411.7013,7.0938,-2636.5610,1403.2194,906.4609,5,5000000,0,0,1,3,500,500,100,2,0},
{0,"Staat","Donator Autohaus","Niemand",2200.5083,1394.3988,11.0625,2200.5083,1394.3988,11.0625,5,5000000,0,0,1,0,500,500,100,0,0},
{0,"Staat","Telefon GmbH","Niemand",1382.1464,-1088.7307,28.2098,-2240.3855,137.1735,1035.4141,5,10000000,0,0,1,6,500,500,100,2,0},
{1,"Staat","Ammu Nation Angle Pine","Niemand",-2093.2163,-2464.3862,30.6250,316.524993,-167.706985,999.593750,5,5000000,0,0,1,6,100000,100000,100,8,0},
{1,"Staat","Bank LV","Niemand",938.7953,1733.1140,8.8516,389.3555,173.8684,1008.3828,5,5000000,0,0,0,3,99999,100000,1,3,0}
};
new BizPickup[MaxBiz];
enum bInfo
{
bOwned,
bOwner[MAX_PLAYER_NAME],
bMessage[128],
bExtortion[MAX_PLAYER_NAME],
Float:bEntranceX,
Float:bEntranceY,
Float:bEntranceZ,
Float:bExitX,
Float:bExitY,
Float:bExitZ,
bLevelNeeded,
bBuyPrice,
bEntranceCost,
bTill,
bLocked,
bInterior,
bProducts,
bMaxProducts,
bPriceProd,
bWorld,
bExtortionTill,
};
if(strcmp("/exit", cmd, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerPaintballing[playerid] == 1)
{
ResetPlayerWeapon(playerid);
PlayerPaintballing[playerid] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerHealth(playerid, 50);
SetPlayerPos(playerid,SBizInfo[10][sbEntranceX], SBizInfo[10][sbEntranceY], SBizInfo[10][sbEntranceZ]);
return 1;
}
if(PlayerTeamPaintballing[playerid] != 0)
{
if(PlayerTeamPaintballing[playerid] == 1)
{
Team1User--;
}
else if(PlayerTeamPaintballing[playerid] == 2)
{
Team2User--;
}
SetPlayerToTeamColor(playerid);
TextDrawHideForPlayer(playerid,TeamDMDraw);
ResetPlayerWeapon(playerid);
PlayerTeamPaintballing[playerid] = 0;
SetPlayerHealth(playerid, 50);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,SBizInfo[13][sbEntranceX], SBizInfo[13][sbEntranceY], SBizInfo[13][sbEntranceZ]);
return 1;
}
for(new i = 0; i < sizeof(HouseInfo); i++)
{
new i2 = 300+i;
if(PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && GetPlayerVirtualWorld(playerid) == i2)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pLocal] = -1;
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
}
for(new i = 0; i < sizeof(GangHausInfo); i++)
{
if(PlayerToPoint(3, playerid, GangHausInfo[i][GHAusgangX], GangHausInfo[i][GHAusgangY], GangHausInfo[i][GHAusgangZ]) && GetPlayerVirtualWorld(playerid) == GangHausInfo[i][GHVirtualWorld])
{
PlayerInfo[playerid][pLocal] = -1;
SetPlayerPos(playerid, GangHausInfo[i][GHEingangX], GangHausInfo[i][GHEingangY], GangHausInfo[i][GHEingangZ]);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid,GangHausInfo[i][GHEingangAngle]);
return 1;
}
}
for(new i = 0; i < sizeof(BizInfo); i++)
{
if(PlayerToPoint(3, playerid,BizInfo[i][bExitX], BizInfo[i][bExitY], BizInfo[i][bExitZ]) && GetPlayerVirtualWorld(playerid) == BizInfo[i][bWorld])
{
if(i == 4 || i == 7 || i == 16)//Bank LS
{
if(PlayerInfo[playerid][pBankrob] == 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessageToAll(COLOR_LIGHTBLUE, "Bankraub gescheitert.");
format(string, sizeof(string), "Der Räuber %s hat die Bank verlassen.",sendername);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
PlayerInfo[playerid][pBankrob] = 0;
BankrobStatus = 0;
BizInfo[i][bLocked] = 0;
}
}
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pLocal] = -1;
SetPlayerPos(playerid,BizInfo[i][bEntranceX],BizInfo[i][bEntranceY],BizInfo[i][bEntranceZ]);
return 1;
}
}
new newcar = GetPlayerVehicleID(playerid);
for(new SlotID = 0; SlotID < sizeof(RentSystemInfo); SlotID++)
{
if(newcar == RentSystemInfo[SlotID][RSCarID])
{
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}
}
for(new h=0; h<sizeof(StatdreiniegerAuto); h++)
{
if(GetPlayerVehicleID(playerid) == StatdreiniegerAuto[h])
{
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}
}
for(new h=0; h<sizeof(RobTransporter); h++)
{
if(GetPlayerVehicleID(playerid) == RobTransporter[h])
{
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}
}
if(IsATaxiFahrerCar(newcar) || IsABusFahrerCar(newcar))
{
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}
else if (PlayerToPoint(6.0, playerid,-1404.5299,-259.0602,1043.6563)) // LS
{
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pLocal] = -1;
SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
else if (PlayerToPoint(8.0, playerid,-1443.0554,-581.1879,1055.0472)) // SF
{
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pLocal] = -1;
SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
else if (PlayerToPoint(8.0, playerid,-1464.7732,1557.5533,1052.5313)) // SF
{
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pLocal] = -1;
SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
else if (PlayerToPoint(8.0, playerid,-1410.0507,894.5715,1041.5186))// LV Derby Arena
{
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pLocal] = -1;
SetPlayerPos(playerid,1099.5665,1601.4880,12.5469);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
else if (PlayerToPoint(8.0, playerid,-1400.8651,928.0172,1041.5313))// LV Derby Arena Zuschauerbühne Port nach Außen
{
SetPlayerInterior(playerid,15);
PlayerInfo[playerid][pLocal] = -1;
SetPlayerPos(playerid,-1400.8357,923.6845,1038.4016);
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,8.0,1292.7383,2.9610,1001.0127) && GetPlayerVirtualWorld(playerid) == 14)//LSPD Ausgang
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetVehicleVirtualWorld(vid,0);
SetVehiclePos(vid,1586.0304,-1671.7964,6.0852);
SetVehicleZAngle(vid,0.1);
LinkVehicleToInterior(vid,0);
ForAllPlayers(i){
if(IsPlayerConnected(i)){
if(IsPlayerInAnyVehicle(i)){
if(IsPlayerInVehicle(i,vid)){
PlayerInfo[i][pLocal] = -1;
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
}}}}
return 1;
}
else
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1586.0304,-1671.7964,6.0852);
return 1;
}
}
else if(IsPlayerInRangeOfPoint(playerid,8.0,1292.7383,2.9610,1001.0127) && GetPlayerVirtualWorld(playerid) == 7)//FBI Ausgang
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetVehicleVirtualWorld(vid,0);
SetVehiclePos(vid,613.7350,-601.7015,16.9346);
SetVehicleZAngle(vid,270.1);
LinkVehicleToInterior(vid,0);
ForAllPlayers(i){
if(IsPlayerConnected(i)){
if(IsPlayerInAnyVehicle(i)){
if(IsPlayerInVehicle(i,vid)){
PlayerInfo[i][pLocal] = -1;
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
}}}}
return 1;
}
else
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,613.7350,-601.7015,16.9346);
return 1;
}
}
else if (PlayerToPoint(8.0, playerid, -1423.9795,933.9197,1036.2737)) // LV Derby Arena Port nach Außen
{
if(GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1384.7043,921.1654,1038.5911);
SetVehicleZAngle(tmpcar, 180);
LinkVehicleToInterior(tmpcar, 15);
return 1;
}
else
{
SetPlayerPos(playerid, -1384.7043,921.1654,1038.5911);
}
SetPlayerInterior(playerid,15);
}
else if(IsPlayerInRangeOfPoint(playerid,8.0,1292.7383,2.9610,1001.0127) && GetPlayerVirtualWorld(playerid) == 20)//Medic Ausgang
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetVehicleVirtualWorld(vid,0);
SetVehiclePos(vid,1123.7307,-1327.5610,13.5187);
SetVehicleZAngle(vid,0.1);
LinkVehicleToInterior(vid,0);
ForAllPlayers(i){
if(IsPlayerConnected(i)){
if(IsPlayerInAnyVehicle(i)){
if(IsPlayerInVehicle(i,vid)){
PlayerInfo[i][pLocal] = -1;
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
}}}}
return 1;
}
else
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1123.7307,-1327.5610,13.5187);
return 1;
}
}
else if(IsPlayerInRangeOfPoint(playerid,8.0,1304.1611,-55.4516,1002.5017) && GetPlayerVirtualWorld(playerid) == 20)//Medic Ausgang
{
if(IsPlayerInAnyVehicle(playerid)){
new vid = GetPlayerVehicleID(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetVehiclePos(vid,-2589.6802,637.6298,14.1581);
SetVehicleZAngle(vid,270.1);
LinkVehicleToInterior(vid,0);
SetVehicleVirtualWorld(vid,0);
ForAllPlayers(i){
if(IsPlayerConnected(i)){
if(IsPlayerInAnyVehicle(i)){
if(IsPlayerInVehicle(i,vid)){
PlayerInfo[i][pLocal] = -1;
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
}}}}
return 1;
}
else
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2589.6802,637.6298,14.1581);
return 1;
}}}
return 1;
}
if(PlayerInfo[playerid][pMuted] > 0)
{
SendClientMessage(playerid, COLOR_KNALLROT, "SERVER: Du bist Gemutet, du kannst keine Commands Nutzen.!");
return 1;
}