[Pomoc] Ulaz/Izlaz iz kuće

Započeo Black22, Decembar 30, 2013, 15:16:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: NL
Detaljan opis problema: Uopče ne mogu izlaziti iz kuće i ulaziti u nju ..
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

sve je spojeno ali ne radi ulaz i izlaz u kuće a za sve drugo radi

Pa jesi mogao do sada?
Poslednja Izmena: Decembar 30, 2013, 20:58:51 POSLE PODNE od n0le and Levu

nisam ni pokušavao i sad kupim kuću i probam unutra nemogu .... valjda mi je neko obrisao ono pod onplayerkeystatechange

ako mi može netko to dati

EDIT:
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1172.0791,-1323.1843,15.4026))
{
    SetPlayerInterior(playerid, 0);
        SetPlayerPos_H(playerid, -204.4595,-1735.9843,675.7687);
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
    SetPlayerFacingAngle(playerid, 90.0);
        SetCameraBehindPlayer(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, -204.4595,-1735.9843,675.7687))
{
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos_H(playerid, 1172.0791,-1323.1843,15.4026);
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
    SetPlayerFacingAngle(playerid, 270);
        SetCameraBehindPlayer(playerid);
}

    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1498.1090,-1559.2104,1052.2877))
{
    SetPlayerInterior(playerid, 0);
        SetPlayerPos_H(playerid, 1219.5565,-1417.0725,13.2650);
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
    SetPlayerFacingAngle(playerid, 90.0);
        SetCameraBehindPlayer(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1219.5565,-1417.0725,13.2650))
{
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos_H(playerid, 1498.1090,-1559.2104,1052.2877);
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
    SetPlayerFacingAngle(playerid, 270);
        SetCameraBehindPlayer(playerid);
}


if (IsPlayerInRangeOfPoint(playerid, 2.0,1495.3888,1309.5101,1093.2822))
{
    if(IgracPolaze[playerid] == 0)
    {
    SCM(playerid, GRAD2, "{fa5555}[!] Nemate uplaceno polaganje ne mozete da idete na poligon!");
    return 1;
    }
SetPlayerPos_H(playerid, -2029.5553,-120.5207,35.1689);
GameTextForPlayer(playerid, "~w~Poligon",5000,1);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 195.6248);
SetPlayerVirtualWorld(playerid,0);
}//onplayerenterinterior onplayerenterinterijer
for(new i; i < MAX_INTERIJERA; i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5, IntInfo[i][iXUlaz], IntInfo[i][iYUlaz], IntInfo[i][iZUlaz]) && GetPlayerVirtualWorld(playerid) == IntInfo[i][iVwIDSpolja])
        {
if(i == 4) { if(PI[playerid][Clan] != 21 && PI[playerid][Lider] != 21 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Samo za clanove mafije!", 2500, 1); }// Meksicka

            if(i >= 5 && i <= 20 && i != 5 && i != 11 && i != 12 || i == 27) { if(!IgracPolicajac(playerid) && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Niste clan drzavne sluzbe", 2500, 1); }
           
            if(i == 5) { if(!IsPlayerConnected(playerid)) return GameTextForPlayer(playerid, "~r~Niste se prijavili!", 2500, 1); }
if(i == 21) { if(PI[playerid][Clan] != 5 && PI[playerid][Lider] != 5 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Samo za clanove mafije!", 2500, 1); }
if(i == 22) { if(PI[playerid][Clan] != 8 && PI[playerid][Lider] != 8 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Ne mozete gore", 2500, 1); }
if(i == 25) { if(PI[playerid][Clan] != 10 && PI[playerid][Lider] != 10 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Ne mozete gore", 2500, 1); }
if(i == 29) { if(PI[playerid][Clan] != 7 && PI[playerid][Lider] != 7 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Ne mozete unutra", 2500, 1); }
if(!strcmp(IntInfo[i][iIme], "Privatna Organizacija 1", true))
{
    if(PI[playerid][Clan] != 18 && PI[playerid][Lider] != 18) return GameTextForPlayer(playerid, "~r~Niste clan PO1!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Privatna Organizacija 2", true))
{
    if(PI[playerid][Clan] != 19 && PI[playerid][Lider] != 19) return GameTextForPlayer(playerid, "~r~Niste clan PO1!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "La Cosa Nostra", true))
{
    if(PI[playerid][Clan] != 5 && PI[playerid][Lider] != 5) return GameTextForPlayer(playerid, "~r~Niste clan mafije!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Yakuza", true))
{
    if(PI[playerid][Clan] != 6 && PI[playerid][Lider] != 6) return GameTextForPlayer(playerid, "~r~Niste clan mafije!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Hitman Agency", true))
{
    if(PI[playerid][Clan] != 8 && PI[playerid][Lider] != 8) return GameTextForPlayer(playerid, "~r~Niste clan agencije!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Grove Street Families", true))
{
    if(PI[playerid][Clan] != 11 && PI[playerid][Lider] != 11) return GameTextForPlayer(playerid, "~r~Niste clan bande!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Grove Street Family", true))
{
    if(PI[playerid][Clan] != 11 && PI[playerid][Lider] != 11) return GameTextForPlayer(playerid, "~r~Niste clan bande!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Policija", true))
{
    if(PI[playerid][Zatvoren] == 1) return BanPlayer(playerid, "JailHack (airbreak izlaz)", "KiwiBot", 1);
}
if(!strcmp(IntInfo[i][iIme], "Los Santos Ballas", true))
{
    if(PI[playerid][Clan] != 12 && PI[playerid][Lider] != 12) return GameTextForPlayer(playerid, "~r~Niste clan bande!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Hells Angels", true))
{
    if(PI[playerid][Clan] != 13 && PI[playerid][Lider] != 13) return GameTextForPlayer(playerid, "~r~Niste clan bande!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Los Surenos", true))
{
    if(PI[playerid][Clan] != 14 && PI[playerid][Lider] != 14) return GameTextForPlayer(playerid, "~r~Niste clan bande!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Parking Servis", true))
{
    if(PI[playerid][Clan] != 15 && PI[playerid][Lider] != 15) return GameTextForPlayer(playerid, "~r~Niste clan PSa!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Mara Salvatrucha", true))
{
    if(PI[playerid][Clan] != 16 && PI[playerid][Lider] != 16) return GameTextForPlayer(playerid, "~r~Niste clan mafije!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Russian Mafia", true))
{
    if(PI[playerid][Clan] != 17 && PI[playerid][Lider] != 17) return GameTextForPlayer(playerid, "~r~Niste clan mafije!", 2500, 1);
}
SetPlayerInterior(playerid, IntInfo[i][iIntID]);
            SetPlayerPos_H(playerid, IntInfo[i][iXIzlaz], IntInfo[i][iYIzlaz], IntInfo[i][iZIzlaz]);
            SetPlayerFacingAngle(playerid, IntInfo[i][iAIzlaz]);
            SetCameraBehindPlayer(playerid);
            h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
            new string[32];
            format(string, sizeof string, "~w~%s", IntInfo[i][iIme]);
            GameTextForPlayer(playerid, string, 5000, 1);
            SetPlayerVirtualWorld(playerid, IntInfo[i][iVwID]);
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
break;
}
if(IsPlayerInRangeOfPoint(playerid, 1.5, IntInfo[i][iXIzlaz], IntInfo[i][iYIzlaz], IntInfo[i][iZIzlaz]) && GetPlayerVirtualWorld(playerid) == IntInfo[i][iVwID])
        {
if(i == 4) { if(PI[playerid][Clan] != 21 && PI[playerid][Lider] != 21 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Samo za clanove mafije!", 2500, 1); }// Meksicka
            if(i >= 5 && i <= 20 && i != 5 && i != 11 && i != 12 || i == 27 ) { if(!IgracPolicajac(playerid) && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Niste clan drzavne sluzbe", 2500, 1); }
            if(i == 5) { if(!IsPlayerConnected(playerid)) return GameTextForPlayer(playerid, "~r~Niste se prijavili!", 2500, 1); }
if(i == 21) { if(PI[playerid][Clan] != 4 && PI[playerid][Lider] != 4 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Samo za osoblje bolnice", 2500, 1); }
if(i == 22) { if(PI[playerid][Clan] != 8 && PI[playerid][Lider] != 8 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Ne mozete gore", 2500, 1); }
if(i == 28) { if(PI[playerid][Clan] != 9 && PI[playerid][Lider] != 9 && !IsPlayerAdmin(playerid)) return GameTextForPlayer(playerid, "~r~Ne mozete gore", 2500, 1); }
if(!strcmp(IntInfo[i][iIme], "La Cosa Nostra", true))
{
    if(PI[playerid][Clan] != 5 && PI[playerid][Lider] != 5) return GameTextForPlayer(playerid, "~r~Niste clan mafije!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Yakuza", true))
{
    if(PI[playerid][Clan] != 6 && PI[playerid][Lider] != 6) return GameTextForPlayer(playerid, "~r~Niste clan mafije!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Hitman Agency", true))
{
    if(PI[playerid][Clan] != 8 && PI[playerid][Lider] != 8) return GameTextForPlayer(playerid, "~r~Niste clan agencije!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Grove Street Families", true))
{
    if(PI[playerid][Clan] != 11 && PI[playerid][Lider] != 11) return GameTextForPlayer(playerid, "~r~Niste clan bande!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Los Santos Ballas", true))
{
    if(PI[playerid][Clan] != 12 && PI[playerid][Lider] != 12) return GameTextForPlayer(playerid, "~r~Niste clan bande!", 2500, 1);
}
if(!strcmp(IntInfo[i][iIme], "Hells Angels", true))
{
    if(PI[playerid][Clan] != 13 && PI[playerid][Lider] != 13) return GameTextForPlayer(playerid, "~r~Niste clan bande!", 2500, 1);
}
            SetPlayerInterior(playerid, IntInfo[i][iIntIDSpolja]);
            SetPlayerPos_H(playerid, IntInfo[i][iXUlaz], IntInfo[i][iYUlaz], IntInfo[i][iZUlaz]);
            SetPlayerFacingAngle(playerid, IntInfo[i][iAUlaz]);
            SetCameraBehindPlayer(playerid);
            h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
            SetPlayerVirtualWorld(playerid, IntInfo[i][iVwIDSpolja]);
        EntID[playerid] = -1;
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
break;
}
}
for(new i; i < MAX_KUCA; i++)  // ULAZ / IZLAZ [kuce]
{
    if(IsPlayerInRangeOfPoint(playerid, 1.5, Kuce[i][UlazX], Kuce[i][UlazY], Kuce[i][UlazZ]) && GetPlayerVirtualWorld(playerid) == 0 && !IsPlayerInAnyVehicle(playerid))
    {
        if(Kuce[i][ImaVlasnika] == 0)
        {
            RKucu[playerid] = i;
            UKuci[playerid] = 1;
            SPD(playerid, 266, DIALOG_STYLE_MSGBOX, "Razgledanje kuce", "{00FF00}Ukoliko zelite da pogledate unutrasnjost kuce, morate platiti $150.", "Plati", "Odustani");
}
else // ULAZ U KUCU
{
        if(Kuce[i][Zakljucano] == 1) return GameTextForPlayer(playerid, "~r~Zakljucano", 2500, 1);
        UKuci[playerid] = 1;
        SetPlayerInterior(playerid, Kuce[i][Enterijer]);
        SetPlayerVirtualWorld(playerid, Kuce[i][VW]);
        SetPlayerPos_H(playerid, Kuce[i][IzlazX], Kuce[i][IzlazY], Kuce[i][IzlazZ]);
        SetPlayerFacingAngle(playerid, Kuce[i][IzlazA]);
            SetCameraBehindPlayer(playerid);
            h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
EntID[playerid] = i;
}
break;
}
    if(IsPlayerInRangeOfPoint(playerid, 3.0, Kuce[i][IzlazX], Kuce[i][IzlazY], Kuce[i][IzlazZ]) && GetPlayerVirtualWorld(playerid) == Kuce[i][VW] && !IsPlayerInAnyVehicle(playerid))
    {
if ( UKuci[playerid] == 1 )// By ROBBY
{
    UKuci[playerid] = 0;
        SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos_H(playerid, Kuce[i][UlazX], Kuce[i][UlazY], Kuce[i][UlazZ]);
        SetPlayerFacingAngle(playerid, Kuce[i][UlazA]);
          SetCameraBehindPlayer(playerid);
        EntID[playerid] = -1;
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
ObijaKucu[playerid] = -1;
break;
}
}
}
// ******************************************************************************
for(new i; i < MAX_STANOVA; i++) // ULAZ / IZLAZ [stanovi]
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, Stanx[i][sUlazX], Stanx[i][sUlazY], Stanx[i][sUlazZ]) && GetPlayerVirtualWorld(playerid) == 0 && !IsPlayerInAnyVehicle(playerid))
    {
        if(Stanx[i][sImaVlasnika] == 0)
        {
            RStan[playerid] = i;
            UStanu[playerid] = 1;
            SPD(playerid, 267, DIALOG_STYLE_MSGBOX, "Razgledanje stana", "{FFFF00}Ukoliko zelite da pogledate unutrasnjost stana, morate platiti $70.", "Plati", "Odustani");
}
else
{
UStanu[playerid] = 1;
        if(Stanx[i][sZakljucano] == 1) return GameTextForPlayer(playerid, "~r~Zakljucano", 2500, 1);
        SetPlayerInterior(playerid, Stanx[i][sEnterijer]);
        SetPlayerVirtualWorld(playerid, Stanx[i][sVW]);
        SetPlayerPos_H(playerid, Stanx[i][sIzlazX], Stanx[i][sIzlazY], Stanx[i][sIzlazZ]);
        SetPlayerFacingAngle(playerid, Stanx[i][sIzlazA]);
            SetCameraBehindPlayer(playerid);
            h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
EntID[playerid] = i;
}
break;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, Stanx[i][sIzlazX], Stanx[i][sIzlazY], Stanx[i][sIzlazZ])
&& GetPlayerVirtualWorld(playerid) == Stanx[i][sVW] && !IsPlayerInAnyVehicle(playerid))
    {
if (UStanu[playerid] == 1 )// By ROBBY
{
    UStanu[playerid] = 0;
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos_H(playerid, Stanx[i][sUlazX], Stanx[i][sUlazY], Stanx[i][sUlazZ]);
    SetPlayerFacingAngle(playerid, Stanx[i][sUlazA]);
        SetCameraBehindPlayer(playerid);
        EntID[playerid] = -1;
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
break;
}
}
}
// ******************************************************************************
for(new i; i < MAX_HOTELA; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, Hoteli[i][hUlazX], Hoteli[i][hUlazY], Hoteli[i][hUlazZ]) && !IsPlayerInAnyVehicle(playerid))
{
    if(Hoteli[i][hCenaSobe] == -1) return GameTextForPlayer(playerid, "~r~Zatvoreno", 2500, 1);
        SetPlayerInterior(playerid, 15);
        SetPlayerVirtualWorld(playerid, Hoteli[i][hVW]);
        SetPlayerPos_H(playerid, 2214.6240,-1150.4921,1025.7969);
    SetPlayerFacingAngle(playerid, 270.0);
        SetCameraBehindPlayer(playerid);
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
EntID[playerid] = i;
break;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2214.6240,-1150.4921,1025.7969)
&& GetPlayerVirtualWorld(playerid) == Hoteli[i][hVW])
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos_H(playerid, Hoteli[i][hUlazX], Hoteli[i][hUlazY], Hoteli[i][hUlazZ]);
    SetPlayerFacingAngle(playerid, Hoteli[i][hUlazA]);
        SetCameraBehindPlayer(playerid);
        EntID[playerid] = -1;
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
break;
}
}

for(new i; i < MAX_GARAZA; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, Garaze[i][gUlazX], Garaze[i][gUlazY], Garaze[i][gUlazZ]) && !IsPlayerInAnyVehicle(playerid))
{
    if(Garaze[i][gZakljucano] == 1) return GameTextForPlayer(playerid, "~r~Zatvoreno", 2500, 1);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, Garaze[i][gVW]);
        SetPlayerPos_H(playerid, 1513.0743,-1473.7921,2.6312);
        SetTimerEx("respawnPvozilo", 2000, false, "d", playerid);
    SetPlayerFacingAngle(playerid, 90.0);
    h_TogglePlayerControllable(playerid,0);//this will freeze player
SetTimerEx("Unfreeze",2000,0,"i",playerid);
        SetCameraBehindPlayer(playerid);
        GARAZAID[playerid] = i;
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
EntID[playerid] = i;
break;
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1519.4224,-1474.4183,2.3583) && GetPlayerVirtualWorld(playerid) == Garaze[i][gVW] && !IsPlayerInAnyVehicle(playerid))
{
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
  if(IsPlayerInAnyVehicle(playerid))
    {
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh,Garaze[GARAZAID[playerid]][gUlazX], Garaze[GARAZAID[playerid]][gUlazY], Garaze[GARAZAID[playerid]][gUlazZ]);
    LinkVehicleToInterior(veh,0);
    SetVehicleVirtualWorld(veh,0);
    PutPlayerInVehicle(playerid,veh,0);
      SetCameraBehindPlayer(playerid);
        EntID[playerid] = -1;
        GARAZAID[playerid] = -1;
    }
    else
    {
    SetPlayerPos_H(playerid, Garaze[GARAZAID[playerid]][gUlazX], Garaze[GARAZAID[playerid]][gUlazY], Garaze[GARAZAID[playerid]][gUlazZ]);
    SetPlayerFacingAngle(playerid, Garaze[GARAZAID[playerid]][gUlazA]);
        SetCameraBehindPlayer(playerid);
        EntID[playerid] = -1;
        GARAZAID[playerid] = -1;
    }
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);

break;
}
}
for(new i; i < MAX_VIKENDICA; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, Vikendice[i][vUlazX], Vikendice[i][vUlazY], Vikendice[i][vUlazZ]) && !IsPlayerInAnyVehicle(playerid))
{
        if(Vikendice[i][vImaVlasnika] == 0)
        {
           // RVikendicu[playerid] = i;
            SPD(playerid, 268, DIALOG_STYLE_MSGBOX, "Razgledanje vikendice", "{AC12F4}Ukoliko zelite da pogledate unutrasnjost vikendice, morate platiti $250.", "Plati", "Odustani");
}
else
{
    if(Vikendice[i][vZakljucano] == 1) return GameTextForPlayer(playerid, "~r~Zatvoreno", 2500, 1);
        SetPlayerInterior(playerid, Vikendice[i][vEnterijer]);
        SetPlayerVirtualWorld(playerid, Vikendice[i][vVW]);
        SetPlayerPos_H(playerid, Vikendice[i][vIzlazX], Vikendice[i][vIzlazY], Vikendice[i][vIzlazZ]);
    SetPlayerFacingAngle(playerid, Vikendice[i][vIzlazA]);
        SetCameraBehindPlayer(playerid);
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
EntID[playerid] = i;
}
break;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, Vikendice[i][vIzlazX], Vikendice[i][vIzlazY], Vikendice[i][vIzlazZ])
&& GetPlayerVirtualWorld(playerid) == Vikendice[i][vVW] && !IsPlayerInAnyVehicle(playerid))
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos_H(playerid, Vikendice[i][vUlazX], Vikendice[i][vUlazY], Vikendice[i][vUlazZ]);
    SetPlayerFacingAngle(playerid, Vikendice[i][vUlazA]);
        SetCameraBehindPlayer(playerid);
        EntID[playerid] = -1;
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
break;
}
}
for(new i; i < MAX_FIRMI; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, Firme[i][fUlazX], Firme[i][fUlazY], Firme[i][fUlazZ]) && !IsPlayerInAnyVehicle(playerid))
{
    //if(Firme[i][fZatvoreno] == 1) return GameTextForPlayer(playerid, "~r~Zatvoreno", 2500, 1);
        SetPlayerVirtualWorld(playerid, Firme[i][fVW]);
        SetPlayerInterior(playerid, Firme[i][fEnterijer]);
        SetPlayerPos_H(playerid, Firme[i][fIzlazX], Firme[i][fIzlazY], Firme[i][fIzlazZ]);
    SetPlayerFacingAngle(playerid, Firme[i][fIzlazA]);
        SetCameraBehindPlayer(playerid);
        h_TogglePlayerControllable(playerid,0);
SetTimerEx("Ucitavanje",2000,false,"i",playerid);
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
EntID[playerid] = i;
if(Firme[i][fVrsta] == VRSTA_PRODAVNICA) GameTextForPlayer(playerid, "~w~Dobrodosli u trgovinu!~n~Za kupovinu upisite ~b~/kupi", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_BAR) GameTextForPlayer(playerid, "~w~Dobrodosli u bar!~n~Za kupovinu upisite ~b~/pice", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_BUTIK) GameTextForPlayer(playerid, "~w~Dobrodosli u butik!~n~Za kupovinu upisite ~b~/odeca", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_GUNSHOP) GameTextForPlayer(playerid, "~w~Dobrodosli u oruzarnicu!~n~Za kupovinu upisite ~b~/kupi", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_RESTORAN) GameTextForPlayer(playerid, "~w~Dobrodosli u restoran!~n~Za kupovinu upisite ~b~/meni", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_SEXSHOP) GameTextForPlayer(playerid, "~w~Dobrodosli u sex shop!~n~Za kupovinu upisite ~b~/kupi", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_DISKOTEKA) GameTextForPlayer(playerid, "~w~Dobrodosli u diskoteku!~n~Za kupovinu upisite ~b~/pice", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_BURG) GameTextForPlayer(playerid, "~w~Dobrodosli u Burger Shot!~n~Za kupovinu upisite ~b~/meni", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_PIZZASTACK) GameTextForPlayer(playerid, "~w~Dobrodosli u piceriju!~n~Za kupovinu upisite ~b~/meni", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_PEKARA) GameTextForPlayer(playerid, "~w~Dobrodosli u pekaru!~n~Za kupovinu upisite ~b~/meni", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_CLUCKINBELL) GameTextForPlayer(playerid, "~w~Dobrodosli u Cluckin Bell!~n~Za kupovinu upisite ~b~/meni", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_TERETANA) GameTextForPlayer(playerid, "~w~Dobrodosli u teretanu!~n~Za trening upisite ~b~/trening", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_24/7) GameTextForPlayer(playerid, "~w~Dobrodosli u ~r~24/7!~n~~w~Za kupovinu upisite ~b~/kupi", 5000, 5);
else if(Firme[i][fVrsta] == VRSTA_FRIZERSKISALON) GameTextForPlayer(playerid, "~w~Dobrodosli u frizerski salon!~n~Za sisanje upisite ~b~/sisanje", 5000, 5);
break;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, Firme[i][fIzlazX], Firme[i][fIzlazY], Firme[i][fIzlazZ])
&& GetPlayerVirtualWorld(playerid) == Firme[i][fVW] && !IsPlayerInAnyVehicle(playerid))
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerPos_H(playerid, Firme[i][fUlazX], Firme[i][fUlazY], Firme[i][fUlazZ]);
    SetPlayerFacingAngle(playerid, Firme[i][fUlazA]);
        SetCameraBehindPlayer(playerid);
        EntID[playerid] = -1;
//TextDrawShowForPlayer(playerid, Fade1);
//fade[2][playerid] = SetTimerEx("tFade2", 100, false, "d", playerid);
break;
}
}
}


evo ga to je za sve ulaze u vlasništva i samo za kuću ne radi
Poslednja Izmena: Decembar 31, 2013, 10:41:51 PRE PODNE od Joe_Black