[PROBLEM] Cars, pickups
#1

1. Before I go in HQ Everything is ok ( http://i60.tinypic.com/des9hk.png )
2. When I am in HQ, everything is perfect ( http://i57.tinypic.com/33lo9xe.png )
3. When exit from HQ, i don't see the cars ,pickups. Why? ( http://i60.tinypic.com/293vur9.png )


My cod

Код:
  			else if (PlayerToPoint(2.0, playerid,-1593.5183,715.7700,-5.2422))
	    	{
			    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
			    {
	    	       GameTextForPlayer(playerid, "~w~HQ F.B.I", 5000, 1);
				   SetPlayerInterior(playerid,3);
				   SetPlayerPos(playerid,1494.325195,1304.942871,1093.289062);
   				   SetPlayerVirtualWorld(playerid,1);
   				   GivePlayerWeapon(playerid, 24, 150);
				   GivePlayerWeapon(playerid, 29, 150);
			   	   GivePlayerWeapon(playerid, 31, 150);
                }
	        }
            else if (PlayerToPoint(5,playerid,1494.7651,1303.5802,1093.2891))
			{
				SetPlayerPos(playerid,-1593.5183,715.7700,-5.2422);
				SetPlayerVirtualWorld(playerid,0);
				GameTextForPlayer(playerid, "~w~Spawn F.B.I", 5000, 1);
				SetPlayerInterior(playerid,0);
			}
Reply
#2

at the code where you exit the HQ
add
pawn Код:
SetPlayerVirtualWorld(playerid, 0);
Reply
#3

I already put. In Fourth line.

Код:
 else if (PlayerToPoint(5,playerid,1494.7651,1303.5802,1093.2891))
			{
				SetPlayerPos(playerid,-1593.5183,715.7700,-5.2422);
				SetPlayerVirtualWorld(playerid,0);
				GameTextForPlayer(playerid, "~w~Spawn F.B.I", 5000, 1);
				SetPlayerInterior(playerid,0);
			}
Reply
#4

Try to change the first SetVirtualWorld to 0.
Reply
#5

removed
Reply
#6

SOLVED.
Reply
#7

What did you do ? I also like to know it.
Reply
#8

I put wrong code in gamemode.

In public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) i put each in part.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)