How should I do this?
#1

I want that if youre standing on a pickup and you use shift youll enter.

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new keys, updown, leftright;
    GetPlayerKeys(playerid, keys, updown, leftright);
    if(keys == KEY_JUMP)
    {
        for(new i; i<MAX_INTERIORS; i++)
{
        if(pickupid == PickupID[i])
    {
            SetPlayerPos(playerid, InteriorInfo[i][TeleX], InteriorInfo[i][TeleY], InteriorInfo[i][TeleZ]);
            SetPlayerInterior(playerid, InteriorInfo[i][Interior]);
            InInterior[playerid] = i;
            SetPlayerVirtualWorld(playerid, 0);
            return 1;
    }
  }
}
  return 1;
}
It doesnt work and I actually already knew that but I just tried. How should I do this?


Regards.
Reply


Messages In This Thread
How should I do this? - by bartje01 - 11.06.2011, 01:01
Re: How should I do this? - by Donya - 11.06.2011, 01:05
Re: How should I do this? - by bartje01 - 11.06.2011, 01:12
Re: How should I do this? - by Tee - 11.06.2011, 01:47
Re: How should I do this? - by Donya - 11.06.2011, 02:42
Re: How should I do this? - by Tee - 11.06.2011, 02:52
Re: How should I do this? - by bartje01 - 11.06.2011, 10:41
Re: How should I do this? - by bartje01 - 11.06.2011, 17:35
Re: How should I do this? - by Donya - 11.06.2011, 18:13
Re: How should I do this? - by bartje01 - 11.06.2011, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)