Spawning in air after icon pickup
#1

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

You have to set the player's interior or else you basically go skydiving.
Reply
#3

Okay, how do I do that?
Reply
#4

Try reading! Searching on the forums or searching on the wiki!

SetPlayerInterior
Reply
#5

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

You're using the wrong ID.
https://sampwiki.blast.hk/wiki/InteriorIDs#Ammunation.27s
Reply
#7

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

Are you update and reload your script on server ?
Reply
#9

Yes of course I am..
Reply
#10

Please help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)