Bug vehicles 500+
#1

Hello, I have a problem when put over 500 cars, after a few hours by car starts to throw players in all directions

I edited and command / RAC to put all the cars are all set well but do not understand why throw players ... maybe someone had this problem and knows, please help.

For each player to throw on "East" that is towards the right side of the map.

Thanks!
Sorry for my bad English.

VIDEO: [ame]http://www.youtube.com/watch?v=rB9e5dNyzbA[/ame]
Reply
#2

Try this:
pawn Код:
//-----[Respawn All Cars]-----
CMD:rac(playerid, params[])
{
    SendClientMessageToAll(0xDEEE20FF, "[SERVER] All unoccupied vehicles are respawned by an Administrator ");
    new vh=CreateVehicle(400,0.0,0.0,0.0,0.0,-1,-1,-1);
    DestroyVehicle(vh);
    new p[MAX_VEHICLES];
    for(new v = 0; v < vh; v++)
    {
        p[v]=0;
        for(new i = 0; i < GetMaxPlayers(); i++)
    {
        if(IsPlayerInVehicle(i,v)) p[v]=1;
    }
        if(p[v]==0) SetVehicleToRespawn(v);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)