Problem with vehicle respawning? or what
#5

Well I tried this:

pawn Код:
if(dialogid == 13)
    {
         if(response)
         {
         
             if(listitem == 0)
             {
             
                gTeam[playerid] = TEAM_GROVE;
                InGangWar[playerid] = 1;
                SetPlayerColor(playerid,TEAM_COLOR_GROVE);
                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);
                }

             
             }
             if(listitem == 1)
             {
                gTeam[playerid] = TEAM_BALLAS;
                InGangWar[playerid] = 1;
                SetPlayerColor(playerid,TEAM_COLOR_BALLAS);
                SendClientMessage(playerid,COLOR_PURPLE,"You have selected The Ballas!");
                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.");
             
             
             
             }
             if(listitem == 2)
             {
                gTeam[playerid] = TEAM_VAGOS;
                InGangWar[playerid] = 1;
                SetPlayerColor(playerid,TEAM_COLOR_VAGOS);
                SendClientMessage(playerid,COLOR_YELLOW,"You have selected The Vagos!");
                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.");



             }
             if(listitem == 3)
             {
                gTeam[playerid] = TEAM_POLICE;
                InGangWar[playerid] = 1;
                SetPlayerColor(playerid,TEAM_COLOR_POLICE);
                SendClientMessage(playerid,COLOR_BLUE,"You have selected The Poilce!");
                SendClientMessage(playerid,COLOR_WHITE,"Objective: Bust /wanted gangs.");
                SendClientMessage(playerid,COLOR_WHITE,"or just cruise around looking for trouble.");
                SendClientMessage(playerid,COLOR_YELLOW,"Use /gcommands for all commands.");


             }
             SetTimerEx("WorldSetDelay",3000,0,"d",playerid);
         
         
         }
   
   
   
   
    }
    return 1;
}


forward WorldSetDelay(playerid);
public WorldSetDelay(playerid)
{

    SetPlayerVirtualWorld(playerid,2);
    SendClientMessage(playerid,COLOR_YELLOW,"Success");

}
You can see I added the timer. But it's still not working.
so I thought to myself about what else could be a problem.

And yes - I have like 3 spawns that are in a interior(grove street house) and when I come out (when the timer loaded "success" I see the vehicles fall into place, the bad place. Not my positions.

So yeah, I don't know if the interior can be a problem?

EDIT:

I did some tests:

I removed 3 of my spawns and left the 1 that spawns outside.
I tried it again and then (not in interior this time)

I spawned outside and the normal vehicle positions loaded.
Then I removed the timer and tried again , it worked! - so that is/was not needed anymore.

So I think this is the problem , the interior. Grove street house.
I will just create spawns outside if thats the case.

But I would like some answers from you ****** , or some other advanced scripter.
about why this was happening(with the interior ) or even better, if I can bypass this.

I would like to thank everyone who has helped on this thread and especially ****** for huge help.
And yeah , I would like someone to tell me why.
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: 1 Guest(s)