Pickup to interior problem
#2

you could add another pickup or you use the public OnPlayerInteriorChange
pawn Код:
new TeleStatus[MAX_PLAYERS];
enum
{
    T_None,
    T_Caligula
}
pawn Код:
//OnPlayerPickupPickup
if(pickupid == marker)
    {
        SetPlayerInterior(playerid, 1);
        SetPlayerPos(playerid, 2233.8032, 1712.2303, 1011.7632 );
        TeleStatus[playerid] = T_Caligula;
    }
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
    {
    if(newinteriorid == 0) //outdoors
        {
        if(oldinteriorid == 1)
            {
            if(TeleStatus[playerid] == T_Caligula)
                {
                SetPlayerPos(playerid, -760.70355224, 537.92999267, 9.12020206);
                TeleStatus[playerid] = T_None;
                return 1;
                }
            }

        }
    return 1;
    }
Reply


Messages In This Thread
Pickup to interior problem - by [BEP]AcerPilot - 15.02.2010, 00:42
Re: Pickup to interior problem - by Nero_3D - 15.02.2010, 01:13
Re: Pickup to interior problem - by [BEP]AcerPilot - 15.02.2010, 02:13
Re: Pickup to interior problem - by [BEP]AcerPilot - 16.02.2010, 23:45
Re: Pickup to interior problem - by adsy - 16.02.2010, 23:46
Re: Pickup to interior problem - by Nero_3D - 17.02.2010, 12:19
Re: Pickup to interior problem - by [BEP]AcerPilot - 17.02.2010, 13:26
Re: Pickup to interior problem - by Nero_3D - 17.02.2010, 13:38
Re: Pickup to interior problem - by [BEP]AcerPilot - 17.02.2010, 14:49
Re: Pickup to interior problem - by [BEP]AcerPilot - 19.02.2010, 19:26

Forum Jump:


Users browsing this thread: 4 Guest(s)