[Pomoc] Ulazak/Izlazak

Započeo DruzenjeVocko, Januar 29, 2013, 22:55:39 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTARP
Detaljan opis problema: Namestio sam ulazak u Hram dodjem pored vrata hrama udjem i pocne da mi ulazi izlazi sam i nemogu prekinem to.Kako to resiti znali neko?
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/

Daj kodove da vidim kako si stavio :D




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click

ti si namestio da ga samo teleportuje predpostavljam?

stavi to pod neku komandu, ili pod neko slovo

Evo komande.


//------------[ Hram ]--------
else if(PlayerToPointStripped(1, playerid,1046.3630,2911.8069,51.6622, cx,cy,cz))
     {//
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid,1928.4601,-836.3094,119.5804);
      PlayerInfo[playerid][pInt] = 0;
      StopAudioStreamForPlayer(playerid);
     }
     else if(PlayerToPointStripped(1, playerid,1928.4601,-836.3094,119.5804, cx,cy,cz))
     {//
      SetPlayerInterior(playerid, 0);
      GameTextForPlayer(playerid, "~y~Hram Svetog Save", 2000, 1);
      TogglePlayerControllable(playerid, 0);
      PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/a331x5ct6t/serbian_orthodox_church_music_psalm_135.mp3",0,0,0,0,0);
      SetPlayerPos(playerid,1046.3630,2911.8069,51.6622);
      PlayerInfo[playerid][pInt] = 0;
      SetTimerEx("UlazuInt",3000, false, "i", playerid);
     }


      else if (PlayerToPointStripped(1, playerid,768.3012,-73.8965,1009.1160, cx,cy,cz))
      {
      //PR ULAZ SPAWN
      SetPlayerPos(playerid, 689.0709,-1361.6398,13.5741);
      GameTextForPlayer(playerid, "~w~PR Spawn",5000,1);
      SetTimerEx("Spdoledi",4000, 0, "i", playerid);
      SetPlayerVirtualWorld(playerid, 0);
       SetPlayerInterior(playerid,0);
       TogglePlayerControllable(playerid, 0);
      SetPlayerFacingAngle(playerid, 0);
      }
      else if (PlayerToPointStripped(1, playerid,689.0709,-1361.6398,13.5741, cx,cy,cz))
      {
      //PR IZLAZ SPAWN
      SetPlayerPos(playerid, 768.3012,-73.8965,1009.1160);
      GameTextForPlayer(playerid, "~w~PR Spawn",5000,1);
      SetTimerEx("Spdoledi",4000, 0, "i", playerid);
      TogglePlayerControllable(playerid, 0);
      SetPlayerInterior(playerid,3);
      SetPlayerFacingAngle(playerid, 0);
      PlayerInfo[playerid][pInt] = 3;
   }

ovako ubaci samo ubacis svoje kordinate itd tu pjesmu probaj ako nejde novo cu

Citat: DruzenjeVocko poslato Januar 30, 2013, 14:29:24 POSLE PODNE
Evo komande.


//------------[ Hram ]--------
else if(PlayerToPointStripped(1, playerid,1046.3630,2911.8069,51.6622, cx,cy,cz))
     {//
      SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid,1928.4601,-836.3094,119.5804);
      PlayerInfo[playerid][pInt] = 0;
      StopAudioStreamForPlayer(playerid);
     }
     else if(PlayerToPointStripped(1, playerid,1928.4601,-836.3094,119.5804, cx,cy,cz))
     {//
      SetPlayerInterior(playerid, 0);
      GameTextForPlayer(playerid, "~y~Hram Svetog Save", 2000, 1);
      TogglePlayerControllable(playerid, 0);
      PlayAudioStreamForPlayer(playerid,"http://k002.kiwi6.com/hotlink/a331x5ct6t/serbian_orthodox_church_music_psalm_135.mp3",0,0,0,0,0);
      SetPlayerPos(playerid,1046.3630,2911.8069,51.6622);
      PlayerInfo[playerid][pInt] = 0;
      SetTimerEx("UlazuInt",3000, false, "i", playerid);
     }


Daj public UlazuInt




Balkan Ulice RPG opis servera: Click



-Tutorial za mijesanje ID-ova na vozilima: Click

forward UlazuInt(playerid);
public UlazuInt(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}

Ovaj gore kod gdje portaš igrača u hram, u koji callback si stavio taj kod?

Last nick: Paradox

Ne


Sad sam napravio preko ovoga video sam tut i napravio

if( newkeys == KEY_SECONDARY_ATTACK ) // Ako igrac pritisne enter ili f *-->mozete umjesto KEY_SECONDARY_ATTACK staviti nesta drugo...npr.KEY_SPRINT
{
if( IsPlayerInRangeOfPoint( playerid, 3.0, X, Y, Z ) ) // ako je *igrac blizu kordinata koje postavite
{
SetPlayerPos( playerid, X, Y, Z ); // X, Y, Z - gdje ce se igrac spawnati u interijer(kordinate interijera)
SetPlayerInterior( playerid, 15 ); // ID interijera
GameTextForPlayer( playerid, "Poruka", 3000, 1 ); // Salje igracu nekakvu poruku
return 1;
}
}
Poslednja Izmena: Januar 30, 2013, 19:31:31 POSLE PODNE od DruzenjeVocko