SA-MP Forums Archive
Falling through floors, - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Falling through floors, (/showthread.php?tid=199360)



Falling through floors, - Surmav - 15.12.2010

I have made an pickup into interior but problem is that i fall through floor all the time... Same problem for other interiors. Is there something wrong with my code?
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == GunShopLS)
	{
	         SetPlayerVirtualWorld(playerid,1);
	         SetPlayerPos(playerid,286.148987,-40.644398,1001.569946);
                 SetPlayerFacingAngle(playerid,270);
	         SendClientMessage(playerid,COLOR_GREEN,"You have entred Los Santos biggest Gun shop!");
	}
	return 1;
}



Re: Falling through floors, - Babul - 15.12.2010

you simply forgot to set the players' interior:
Код:
SetPlayerInterior(playerid,1);
have a look at the file: GTA Server/scriptfiles/properties/interiors.txt
there youll find your come-a-lot ammunation as interior #32:
Код:
32 1 285.8361 -39.0166 1001.5156 0.7529 Ammu-nation (version 2) ;
as you see, the second parameter points to 1. thats the virtual world needed.


Re: Falling through floors, - Surmav - 15.12.2010

Ohh thanks