Dupliranje vozila

Započeo Akyz, Decembar 24, 2017, 19:04:43 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Perfekt Gaming
Detaljan opis problema: Dupliraju mi se vozila kad kupim
Dio skripte: Vozila
Neke slike/video za lakse dobivanje pomoci(neobavezno): https://imgur.com/a/jdtJi

server nije jos otvoren otvaram ga 27.12/2017 al imam ovaj problem kako da rjesim

Z

*

DP + Misleading prefix... prvo procitaj pravila foruma pa otvaraj temu...

Hmm :( mozda ne brise vozilo na OnPlayerDisconnect posalji OnPlayerDisconnect pa da vidimo
[c

Citat: #Stefke poslato Decembar 25, 2017, 04:11:34 PRE PODNE
Hmm :( mozda ne brise vozilo na OnPlayerDisconnect posalji OnPlayerDisconnect pa da vidimo
public OnPlayerDisconnect(playerid, reason)
{
    if(zonatime[playerid] > 0)
    {
       new id = zonaid[playerid];
       GangZoneStopFlashForAll(ZonaID[id]);
       PlayerTextDrawHide(playerid, klecanjetd[playerid]);
       zonaid[playerid] -= 1;
       zonatime[playerid] -= 1;
       KillTimer(zonatimer[playerid]);
    }
   if( WARPInfo[ playerid ][ warTeam ][ 0 ] == true ) {
        format( globalstring, sizeof( globalstring ), ""ORANGE"WAR | "COL_TEAM1"%s: "BELA"je napustio WAR i server.", GetName( playerid ) );
        WARMessage( WARPInfo[ playerid ][ warID ], -1, globalstring );
      WARInfo[ WARPInfo[ playerid ][ warID ] ][ warTeamMembers ][ 0 ]--;
   }

   if( WARPInfo[ playerid ][ warTeam ][ 1 ] == true ) {
        format( globalstring, sizeof( globalstring ), ""ORANGE"WAR | "COL_TEAM2"%s: "BELA"je napustio WAR i server.", GetName( playerid ) );
        WARMessage( WARPInfo[ playerid ][ warID ], -1, globalstring );
      WARInfo[ WARPInfo[ playerid ][ warID ] ][ warTeamMembers ][ 1 ]--;
   }
    onlinepl--;
    ResetujVar(playerid);
    UlogovanProvera[playerid] = 0;
   PlayerTextDrawDestroy(playerid, Banka[playerid]); PlayerTextDrawDestroy(playerid, Zlato[playerid]);
    DisablePlayerCheckpoint(playerid);
   PosaoGPS[playerid] = 0;
   TogGChat[playerid] = 0;
   new string3[50];
   new d,m,yy,h,mi,s;
   getdate(yy,m,d);
   gettime(h,mi,s);
   format(string3, sizeof(string3), "%d/%d/%d at %d:%d:%d",d,m,yy,h,mi,s);
   strmid(PlayerInfo[playerid][pLastSeen], string3, 0, strlen(string3), 255);
    if(playerid == -1) return 1;
    if(AdminVozilo[playerid] != -1) { DestroyVehicle(AdminVozilo[playerid]); Delete3DTextLabel(avehl[playerid]); AdminVozilo[playerid] = -1; }
   if(GetPVarInt(playerid, "stvorioavozilo") == 1) { DestroyVehicle(adminvozilo[playerid]); Delete3DTextLabel(avehl[playerid]); adminvozilo[playerid] = -1; }
   if(GetPVarType(playerid, "BoomboxObject"))
    {
    DestroyDynamicObject(GetPVarInt(playerid, "BoomboxObject"));
    if(GetPVarType(playerid, "bboxareaid"))
        {
    foreach(Player,i)
         {
     if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "bboxareaid")))
        {
    StopAudioStreamForPlayer(i);
    SendClientMessage(i, COLOR_GREY, " Boombox kreator se diskonektovao sa servera.");
        }
        }
        }
         }
    if(UlogovanProvera[playerid] == 1)
    {
      if(PlayerInfo[playerid][pPosedovanjeAuta] != -1)
      {
         DestroyVehicle(VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta]][vID]);
         SacuvajVozilo(PlayerInfo[playerid][pPosedovanjeAuta]);
         VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta]][vID] = -1;
      }
      if(PlayerInfo[playerid][pPosedovanjeAuta2] != -1)
      {
         DestroyVehicle(VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta2]][vID]);
         SacuvajVozilo(PlayerInfo[playerid][pPosedovanjeAuta2]);
         VoziloInfo[PlayerInfo[playerid][pPosedovanjeAuta2]][vID] = -1;
      }
      if(PlayerInfo[playerid][pPosedovanjeMotora] != -1)
      {
         DestroyVehicle(MotorInfo[PlayerInfo[playerid][pPosedovanjeMotora]][mID]);
         SacuvajMotor(PlayerInfo[playerid][pPosedovanjeMotora]);
         MotorInfo[PlayerInfo[playerid][pPosedovanjeMotora]][mID] = -1;
      }
      if(PlayerInfo[playerid][pPosedovanjeAviona] != -1)
      {
         DestroyVehicle(AvionInfo[PlayerInfo[playerid][pPosedovanjeAviona]][avID]);
         SacuvajAvione(PlayerInfo[playerid][pPosedovanjeAviona]);
         AvionInfo[PlayerInfo[playerid][pPosedovanjeAviona]][avID] = -1;
      }
      if(PlayerInfo[playerid][pPosedovanjePlovila] != -1)
      {
         DestroyVehicle(PlovilaInfo[PlayerInfo[playerid][pPosedovanjePlovila]][plID]);
         SacuvajPlovila(PlayerInfo[playerid][pPosedovanjePlovila]);
         PlovilaInfo[PlayerInfo[playerid][pPosedovanjePlovila]][plID] = -1;
      }
   }



Pravila.
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci