Spawning in air after icon pickup - 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: Spawning in air after icon pickup (
/showthread.php?tid=162465)
Spawning in air after icon pickup -
Roroboy - 23.07.2010
Hey,
as the topic title says, I created an icon pickup to an ammunation interior, but when I enter the icon pickup I spawn in the air somewhere. Somebody help me please.
Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == BMercEntrance)
{
SetPlayerPos(playerid, -1819.4108,-149.4685,9.3984);
This is the code of the teleport.
Re: Spawning in air after icon pickup -
Dak_Cobain - 23.07.2010
You have to set the player's interior or else you basically go skydiving.
Re: Spawning in air after icon pickup -
Roroboy - 23.07.2010
Okay, how do I do that?
Re: Spawning in air after icon pickup -
TransformerOwl - 23.07.2010
Try reading! Searching on the forums or searching on the wiki!
SetPlayerInterior
Re: Spawning in air after icon pickup -
Roroboy - 23.07.2010
Ok, now I have
Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == BMercEntrance)
{
SetPlayerInterior(playerid, 22);
SetPlayerPos(playerid, -1819.4108,-149.4685,9.3984);
But I still spawn in the air..
Re: Spawning in air after icon pickup -
dice7 - 23.07.2010
You're using the wrong ID.
https://sampwiki.blast.hk/wiki/InteriorIDs#Ammunation.27s
Re: Spawning in air after icon pickup -
Roroboy - 23.07.2010
Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == BMercEntrance)
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 314.820984,-141.431992,999.661987);
Still not working, although I have the good ID and co-ordinates now from the link you gave.
Re: Spawning in air after icon pickup -
straco - 23.07.2010
Are you update and reload your script on server ?
Re: Spawning in air after icon pickup -
Roroboy - 23.07.2010
Yes of course I am..
Re: Spawning in air after icon pickup -
Roroboy - 23.07.2010
Please help me?