Problem with vehicle respawning? or what
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
Most likely the cars are spawning faster than the world around them when you teleport to that area (I'm guessing there is a "SetPlayerPos", or other location modifying code, somewhere). If this is the case they will fall through the ground and respawn on the closest "node path", i.e. defined piece of road, in grove street. To combat this there are a number of methods, one would be move the player there and change their virtual world a few moments later to ensure the world spawns before the vehicles.
pawn Код:
if(listitem == 0)
             {
             
                gTeam[playerid] = TEAM_GROVE;
                InGangWar[playerid] = 1;
                SetPlayerColor(playerid,TEAM_COLOR_GROVE);
                SetPlayerVirtualWorld(playerid,2);
                SendClientMessage(playerid,COLOR_GREEN,"You have selected The Grove!");
                SendClientMessage(playerid,COLOR_WHITE,"Objective: Kill other gangs");
                SendClientMessage(playerid,COLOR_WHITE,"finds drugs, rob banks or just cruise with your homies");
                SendClientMessage(playerid,COLOR_YELLOW,"Use /gcommands for all commands.");
                switch(random(4))
                {
                    case 0:
                    {
                       SetPlayerPos(playerid,2496.4500,-1708.5156,1014.7422);
                       SetPlayerInterior(playerid,3);
                    }
                    case 1:
                    {
                       SetPlayerPos(playerid,2492.5818,-1700.5641,1014.7661);
                       SetPlayerInterior(playerid,3);
                    }
                    case 2:
                    {
                       SetPlayerPos(playerid,2492.5183,-1702.5121,1018.3438);
                       SetPlayerInterior(playerid,3);
                       
                    }
                    case 3:
                    {
                       SetPlayerPos(playerid,2497.7595,-1678.0848,13.3507);
                       
                    }


                }
                switch(random(3))
                {
                    case 0: SetPlayerSkin(playerid,105);
                    case 1: SetPlayerSkin(playerid,106);
                    case 2: SetPlayerSkin(playerid,107);
                }

             
             }
Perhaps?
I tried moving
pawn Код:
SetPlayerVirtualWorld(playerid,2);
Under the second to last bracket( a little later).
But the problem is still occurring.

Anymore methods?

Thanks
Reply


Messages In This Thread
Problem with vehicle respawning? or what - by Jay. - 20.07.2011, 12:53
Re: Problem with vehicle respawning? or what - by Jay. - 20.07.2011, 13:02
Re: Problem with vehicle respawning? or what - by Jay. - 20.07.2011, 13:51
Re: Problem with vehicle respawning? or what - by Jay. - 20.07.2011, 14:33
Re: Problem with vehicle respawning? or what - by Jay. - 20.07.2011, 15:49
Re: Problem with vehicle respawning? or what - by Jay. - 20.07.2011, 18:27
Re: Problem with vehicle respawning? or what - by Jay. - 20.07.2011, 19:53

Forum Jump:


Users browsing this thread: 2 Guest(s)