Entering a Interior
#7

Here's the code:
pawn Code:
#include <a_samp>

public OnGameModeInit()
{
    CreatePickup(1318, 1, -1816.5437,618.0901,35.1719, 0);
    return true;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, -1816.5437,618.0901,35.1719))
        {
            SetPlayerPos(playerid, 364.8150,-11.6074,1001.8516);
            SetPlayerInterior(playerid, 9);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0, 364.8150,-11.6074,1001.8516))
        {
            SetPlayerPos(playerid, -1816.5437,618.0901,35.1719);
            SetPlayerInterior(playerid, 0);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Entering a Interior - by ChandraLouis - 27.04.2017, 12:39
Re: Entering a Interior - by AndreiWow - 27.04.2017, 12:52
Re: Entering a Interior - by ChandraLouis - 27.04.2017, 13:40
Re: Entering a Interior - by iGetty - 27.04.2017, 13:56
Re: Entering a Interior - by ChandraLouis - 27.04.2017, 14:07
Re: Entering a Interior - by iGetty - 27.04.2017, 14:08
Re: Entering a Interior - by ChandraLouis - 27.04.2017, 14:10
Re: Entering a Interior - by iGetty - 27.04.2017, 14:21
Re: Entering a Interior - by ChandraLouis - 27.04.2017, 14:42

Forum Jump:


Users browsing this thread: 2 Guest(s)