Tegnap már segítettetek benne mára megint rossz lett. Én betudok menni haverom meg nem hogyan oldjam meg az automata interior ki be lépést, ha ez igy nem jó? itt a kód:
forward Interiors (playerid);
public OnGameModeInit()
SetTimer(\"Interiors\", 500, 1);
public Interiors(playerid)
{
for(new i; i < MAX_PLAYERS;i++) if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if (IsPlayerInRangeOfPoint(playerid,1,-100.3415,-25.0024,1000.7188)) //kilépés a sexshopból
{
SetPlayerPos(playerid,1087.6281,-925.1671,43.3906);
SetPlayerInterior(playerid,0);
}
if (IsPlayerInRangeOfPoint(playerid,1.5,1087.7051,-922.4875,43.3906)) //belépés a sexshopba
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,-100.2554,-22.2146,1000.7188);
SetPlayerFacingAngle(playerid, 356.5904);
SetPlayerInterior(playerid,3);
}
}
if (IsPlayerInRangeOfPoint(playerid,1,363.4137,-74.5788,1001.5078)) //kilépés a burgershotból
{
SetPlayerPos(playerid,1199.5190,-920.8154,43.1076);
SetPlayerInterior(playerid,0);
}
if (IsPlayerInRangeOfPoint(playerid,1.5,1199.2041,-918.1465,43.1235)) //belépés a burgershotba
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,364.2682,-73.8755,1001.5078);
SetPlayerFacingAngle(playerid, 356.5904);
SetPlayerInterior(playerid,10);
}
}
if (IsPlayerInRangeOfPoint(playerid,1.5,2304.6904,-16.2520,26.7422)) //kilépés a bankbból
{
SetPlayerPos(playerid,1423.4293,-1623.6616,13.5469);
SetPlayerInterior(playerid,0);
}
if (IsPlayerInRangeOfPoint(playerid,1.5,1419.1999511719,-1623.8000488281,12.5)) //belépés a bankba
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,2306.7278,-15.8792,26.7496);
SetPlayerFacingAngle(playerid, 273.2465);
SetPlayerInterior(playerid,0);
}
}
}
return 1;
}
Így vannak sorba berakva! Ha tudtok segítsetek ismét köszönöm!