SA-MP Forums Archive
[PROBLEM] Cars, pickups - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [PROBLEM] Cars, pickups (/showthread.php?tid=502096)



[PROBLEM] Cars, pickups - monster010 - 22.03.2014

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);
			}



Re: [PROBLEM] Cars, pickups - iThePunisher - 22.03.2014

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



Re: [PROBLEM] Cars, pickups - monster010 - 22.03.2014

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);
			}



Re: [PROBLEM] Cars, pickups - Equuuuin0X - 22.03.2014

Try to change the first SetVirtualWorld to 0.


Re: [PROBLEM] Cars, pickups - iThePunisher - 22.03.2014

removed


Re: [PROBLEM] Cars, pickups - monster010 - 22.03.2014

SOLVED.


Re: [PROBLEM] Cars, pickups - Equuuuin0X - 22.03.2014

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


Re: [PROBLEM] Cars, pickups - monster010 - 22.03.2014

I put wrong code in gamemode.

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