Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Cappone. poslato Oktobar 17, 2016, 22:13:02 POSLE PODNE

Naslov: [POMOC] Izbaciti?
Poruka od: Cappone. poslato Oktobar 17, 2016, 22:13:02 POSLE PODNE
Skripta koju koristim: Balkan Elitez
Detaljan opis problema: Sprijecava ulazak u vozilo , samo pleše xD
Ne mogu nikako naći to u pawno.
Pokušam da udjem u bilo koje vozilo, ali ne može samo se ukljuci animacija .
Pa kako to da i zbacim?
Naslov: Odg: [POMOC] Izbaciti?
Poruka od: anderson87 poslato Oktobar 17, 2016, 22:17:15 POSLE PODNE
OnPlayerEnterVehicle posalji sta ti je ispod tog
Naslov: Odg: [POMOC] Izbaciti?
Poruka od: Cappone. poslato Oktobar 17, 2016, 22:27:16 POSLE PODNE
[pawn]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
      if(VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
      {
    format(CmdString, sizeof(CmdString), "* %s seda na biciklu", GetName(playerid));
    ProxDetector(10.0, playerid, CmdString, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
   }
      if(VoziloJeMotor(GetVehicleModel(GetPlayerVehicleID(playerid))))
      {
    format(CmdString, sizeof(CmdString), "* %s seda na motor", GetName(playerid));
    ProxDetector(10.0, playerid, CmdString, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
   }
   if(VoziloJeAuto(GetVehicleModel(GetPlayerVehicleID(playerid))))
      {
    format(CmdString, sizeof(CmdString), "* %s otvara vrata i ulazi u auto", GetName(playerid));
    ProxDetector(10.0, playerid, CmdString, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
   }
  new Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed;
  GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
  final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
  new vehspeed = floatround(final_speed,floatround_round);

        if (!ispassenger)
                {
                   if (vehspeed > 20 && IsVehicleOccupied(vehicleid))
                   {
                   new Float:cx, Float:cy, Float:cz;
                   GetPlayerPos(playerid, cx, cy, cz);
                   SetPlayerPos(playerid, cx, cy, cz);
                   SendClientMessage(playerid, COLOR_WHITE, " {FF0000}[SD:AC]: {FFFFFF}Zabranjeno je raditi NinjaJacking! ");
                   }
            }
        if (ispassenger)
                {
                   if (vehspeed > 20 && IsVehicleOccupied(vehicleid))
                   {
                   new Float:cx, Float:cy, Float:cz;
                   GetPlayerPos(playerid, cx, cy, cz);
                   SetPlayerPos(playerid, cx, cy, cz);
                   SendClientMessage(playerid, COLOR_WHITE, " {FF0000}[SD:AC]: {FFFFFF}Ne mozete ulaziti u vozilo koje se krece(PowerGaming)! ");
                   }
    }
    new Float:Poz[3]; GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
    if(!ispassenger)
   {
       SCM(playerid, -1,""CRVENA"[SD | RP]"SIVA" Stisnite "CRVENA"ALT"SIVA" da upalite/ugasite motor vozila. | Kucajte "CRVENA"/pojas ili /kaciga"SIVA" da stavite pojas!");
      for(new i; i < sizeof(VoziloInfo); i++)
      {
          if(VoziloInfo[vID] == vehicleid)
          {
              if(VoziloInfo[vImaVlasnika] == 1)
            {
                if(PlayerInfo[playerid][pPosedovanjeAuta] == i || PlayerInfo[playerid][pPosedovanjeAuta2] == i || VoziloInfo[vZakljucan] == 0 || PlayerInfo[playerid][pAdmin] == 6 || PlayerInfo[playerid][pAdmin] == 5 || PlayerInfo[playerid][pAdmin] == 7 || PlayerInfo[playerid][pAdmin] >= 1)
                  {
                      if(PlayerInfo[playerid][pAdmin] == 4) SCMF(playerid,-1,"[SD | RP] "CRVENA"Ulazite u vozilo ID: %d!",i);
                      if(PlayerInfo[playerid][pAdmin] >= 5) SCMF(playerid,-1,"[SD | RP] "CRVENA"Ulazite u vozilo ID: %d!",i);
                      if(PlayerInfo[playerid][pAdmin] >= 1) SCMF(playerid,-1,"[SD | RP] "CRVENA"Ulazite u vozilo ID: %d!",i);
                  new string[128];
                  format(string,sizeof(string), ""PLAVA"Privatno Auto | "SIVA"Vlasnik: "CRVENA"%s", VoziloInfo[vVlasnik]);
                   SCM(playerid,-1,string);
                  return 1;
               }
               else
               {
                  new string[128]; SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
                      format(string,sizeof(string), ""PLAVA"Auto Zakljucan");
                      GameTextForPlayer(playerid, "~r~auto zakljucan", 5000, 1);
                   SCM(playerid,-1,string);
                    return 1;
               }
            }
         }
      }
      for(new i; i < sizeof(MotorInfo); i++)
      {
          if(MotorInfo[mID] == vehicleid)
          {
              if(MotorInfo[mImaVlasnika] == 1)
            {
                if(PlayerInfo[playerid][pPosedovanjeMotora] == i || MotorInfo[mZakljucan] == 0 || PlayerInfo[playerid][pAdmin] == 6 || PlayerInfo[playerid][pAdmin] == 5 || PlayerInfo[playerid][pAdmin] == 7 || PlayerInfo[playerid][pAdmin] >= 1)
                  {
                      if(PlayerInfo[playerid][pAdmin] == 4) SCMF(playerid,-1,"[SD | RP] "CRVENA"Ulazite u motor ID: %d!",i);
                        if(PlayerInfo[playerid][pAdmin] >= 1) SCMF(playerid,-1,"[SD | RP] "CRVENA"Ulazite u motor ID: %d!",i);
                        if(PlayerInfo[playerid][pAdmin] >= 6) SCMF(playerid,-1,"[SD | RP] "CRVENA"Ulazite u motor ID: %d!",i);
                  new string[128];
                  format(string,sizeof(string), ""PLAVA"Privatni Motor | "SIVA"Vlasnik: "PLAVA"%s", MotorInfo[mVlasnik]);
                   SCM(playerid,-1,string);
                  return 1;
               }
               else
               {
                  new string[128]; SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
                      format(string,sizeof(string), ""ZUTA"Motor Zakljucan");
                   SCM(playerid,-1,string);
                   GameTextForPlayer(playerid, "~r~motor zakljucan", 5000, 1);
                    return 1;
               }[/pawn]
Naslov: Odg: [POMOC] Izbaciti?
Poruka od: Cappone. poslato Oktobar 18, 2016, 15:15:27 POSLE PODNE
Zna li nekoooOooOOooo?
Naslov: Odg: [POMOC] Izbaciti?
Poruka od: anderson87 poslato Oktobar 18, 2016, 17:37:52 POSLE PODNE
Sta ti pise kada probas uci u auto
Naslov: Odg: [POMOC] Izbaciti?
Poruka od: Ilcev1 poslato Oktobar 19, 2016, 19:46:50 POSLE PODNE
moras uraditi jedna stvar a to je da isklucih tih komandata u onplayerentervehicle /* */ onda idi compiler kad bi uradio to moras ingame a onda reci nam dali je u redu ako je tad sredicemo onplayerentervehicle probleme