Szerző Téma: Enter hiba  (Megtekintve 686 alkalommal)

Nem elérhető DVS

  • 302
    • Profil megtekintése
Enter hiba
« Dátum: 2012. Augusztus 17. - 11:29:41 »
0 Show voters
Na az lenne a hiba, ha megnyomom az entert akkor olyan mint ha egy cleananimatinsot kapna a karakter, és így nem tud beülni a kocsiba, valakinek valami tippje?vagy ötlete?hogy tudnám megoldani?

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Enter hiba
« Válasz #1 Dátum: 2012. Augusztus 17. - 11:31:32 »
0 Show voters
onplayerentervehicle-t másold be, illetve nézd meg a gombkiosztást.

Nem elérhető DVS

  • 302
    • Profil megtekintése
Enter hiba
« Válasz #2 Dátum: 2012. Augusztus 17. - 11:33:28 »
0 Show voters
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    SetPVarInt(playerid, \"NoAB\", 1);
   
SpawnVedelem[playerid] = 3;
if(!ispassenger)
{
new vs = IsAVsKocsi(vehicleid);
if(vs != NINCS)
{
   if(CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO]  >= 400 && CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO]  < 50)
      SebessegKorlat[playerid] = 50;
   else if(CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO]  >= 30 && CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO]  < 40)
      SebessegKorlat[playerid] = 40;
   else if(CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO]  >= 20 && CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO]  < 30)
      SebessegKorlat[playerid] = 30;
   else if(CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO]  >= 10 && CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO]  < 20)
      SebessegKorlat[playerid] = 20;
   else if(CarInfo[vs][cAllapot][ALLAPOT_KOMPRESSZIO] < 10)
      SebessegKorlat[playerid] = 10;
   if(CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG]  >= 40 && CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG]  < 50)
      SebessegKorlat[playerid] = 50;
   else if(CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG]  >= 30 && CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG]  < 40)
      SebessegKorlat[playerid] = 40;
   else if(CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG]  >= 20 && CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG]  < 30)
      SebessegKorlat[playerid] = 30;
   else if(CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG]  >= 10 && CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG]  < 20)
      SebessegKorlat[playerid] = 20;
   else if(CarInfo[vs][cAllapot][ALLAPOT_UZEMANYAG] < 10)
      SebessegKorlat[playerid] = 10;
}
if(IsABicikli(vehicleid))
{
   SebessegKorlat[playerid] = 40;
}
if(!IsPlayerNPC(playerid) && NPCKocsi[vehicleid])
{
   new Float:x, Float:y, Float:z;
   GetPlayerPos(playerid, x, y, z);
   SetPlayerPos(playerid, x, y, z);
   if(Magyar(playerid))
      Msg(playerid, \"Ezt a jármûvet te nem akarod vezetni!\");
   else
      Msg(playerid, \"You dont have permission to use this car!\");
   return 1;
}
new VanVezeto = -1;
foreach(Jatekosok,jatekos)
{
   if(IsPlayerInVehicle(jatekos, vehicleid))
   {
      if(GetPlayerState(jatekos) == 2)
      {
         VanVezeto = jatekos;
         break;
      }
   }
}
if(VanVezeto != -1)
{
   new Float:x, Float:y, Float:z;
   GetPlayerPos(playerid, x, y, z);
   ClearAnimations(playerid);
   TogglePlayerControllable(VanVezeto, true);
   SetPlayerPos(playerid, x, y, z);
   Freeze(playerid,1000);
   if(PlayerToPoint(100, playerid, 1477.1985,-1804.2847,13.5469))
   {
      if(Magyar(playerid))
         Msg(playerid, \"Parlament környékén akarsz kocsit lopni?\");
      else
         Msg(playerid, \"Do not steal near the parlament!\");
      return 1;
   }
   else if(PlayerToPoint(80, playerid, 1596.8505,-1677.9633,5.8906))
   {
      if(Magyar(playerid))
         Msg(playerid, \"LSPD környékén akarsz kocsit lopni?\");
      else
         Msg(playerid, \"Do not steal near LSPD!\");
      return 1;
   }
   else if(PlayerToPoint(50, playerid, 1214.0414,-1324.4862,13.5670))
   {
      if(Magyar(playerid))
         Msg(playerid, \"Parlament környékén akarsz kocsit lopni?\");
      else
         Msg(playerid, \"Do not steal near the hospital!\");
      return 1;
   }
   else if(PlayerToPoint(250, playerid, 175.1913,1904.2084,18.2397))
   {
      if(Magyar(playerid))
         Msg(playerid, \"Fort környékén akarsz kocsit lopni?\");
      else
         Msg(playerid, \"Do not steal near Fort the Morgan!\");
      return 1;
   }
   else if(PlayerToPoint(140, playerid, -1593.2107,727.9420,-4.9063))
   {
      if(Magyar(playerid))
         Msg(playerid, \"LVPD környékén akarsz kocsit lopni?\");
      else
         Msg(playerid, \"Do not steal near  LVPD!\");
      return 1;
   }
   if(Magyar(playerid))
      Msg(playerid, \"Ne lopj kocsit enter gombbal! Használd a /kiszed parancsot!\");
   else
      Msg(playerid, \"Do not steal car with ENTER key! Use \'/kiszed\' command!\");
   return 0;
}
}
return 1;
}

 
A gombkiosztásnál az enterre nemtettem semmit!

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Enter hiba
« Válasz #3 Dátum: 2012. Augusztus 17. - 12:29:14 »
0 Show voters
Hol akartál beszállni?

Nem elérhető DVS

  • 302
    • Profil megtekintése
Enter hiba
« Válasz #4 Dátum: 2012. Augusztus 17. - 12:31:08 »
0 Show voters
Idézetet írta: ►ѕтaЯ◄ date=1345199354\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"26335\" data-ipsquote-contentclass=\"forums_Topic
Hol akartál beszállni?
 
Kocsi melett, mint rendesen, megnyomod az entert beülsz a kocsiba, de most megnyomod és mintha egy clean animot kapna.

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Enter hiba
« Válasz #5 Dátum: 2012. Augusztus 17. - 12:33:54 »
0 Show voters
Úgyértem milyen helyszínen.

Nem elérhető DVS

  • 302
    • Profil megtekintése
Enter hiba
« Válasz #6 Dátum: 2012. Augusztus 17. - 12:35:00 »
0 Show voters
Idézetet írta: ►ѕтaЯ◄ date=1345199634\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"26335\" data-ipsquote-contentclass=\"forums_Topic
Úgyértem milyen helyszínen.
 
Setint 0, vw 0, pl, los santos rendõrség elõtt ha erre gondolsz.

Dupla hozzászólás automatikusan összefûzve. ( 2012. Augusztus 17. - 13:06:01 )

Megoldva :D
« Utoljára szerkesztve: 2012. Augusztus 17. - 13:06:01 írta DVS »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal