Falling through floors,
#1

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;
}
Reply
#2

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.
Reply
#3

Ohh thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)