PD cars and car that is in the impound spawnrandomly somewhere else!?
#1

Hello, sometimes the cars in PD garage just randomly respawn themself and spawn like just 5 meters away, all cars spawn inside eachoter and they start to explode, same with the cars that is in the impound that we have parked with /impoundcar, at first i thougt it was a hacker but it still happens sometimes when im all alone on the server!? What could couse this!? it started some days ago, i dont remember exactly when but i really want to find out why they are doing so!? Nothing about pd cars is changed and no other faction cars does like that.
Reply
#2

Hmm, can i see a script?
Reply
#3

Wich part you wanna see?
Reply
#4

Is there any plugin that can cause this problem if its not updated ?
Reply
#5

maybe, you don't destroy the cars before they respawn.
Reply
#6

I use this command to respawn ALL cars, shouldnt that destroy the PD cars too?
pawn Код:
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/carreset", true) == 0) // by LordMan
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
                return 1;
            }
            new bool:unwanted[MAX_VEHICLES];
            for(new player=0; player<MAX_PLAYERS; player++)
            {
                if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            }
            for(new car = 1; car <= 1850; car++)
            {
                if(!unwanted[car]) SetVehicleToRespawn(car);
            }
            format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername);
            BroadCast(COLOR_WHITE,string);
            format(string, sizeof(string), "[ADMIN]: %s has Respawned All Cars.", sendername);
            ABroadCast(COLOR_LIGHTRED,string, 5);
            GameTextForAll("~w~Every Unused Car ~n~~g~Respawned!",5000,1);
            new y, m, d;
            new h,mi,s;
            getdate(y,m,d);
            gettime(h,mi,s);
            format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Respawned All Unused Cars",d,m,y,h,mi,s,sendername);
            AdminLog(string);
        }
        return 1;
    }
Reply
#7

I still got this problem even tho i changed to MAX_VEHICLES like you said on skype
Reply
#8

bump
Reply
#9

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)