key to enter and exit building
#3

You mean switching the coordinates? like :
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.0, 1170.6563,-1489.6108,22.7553))
        {
          SetPlayerPos(playerid, 2476.6519,-1668.5076,-1.9851);
        }
    }
    return 1;
}

   if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.0, 2476.6519,-1668.5076,-1.9851))
        {
          SetPlayerPos(playerid, 1170.6563,-1489.6108,22.7553);
        }
    }
    return 1;
}
Reply


Messages In This Thread
key to enter and exit building - by [Headless] - 26.11.2011, 05:09
Re: key to enter and exit building - by MP2 - 26.11.2011, 05:26
Re: key to enter and exit building - by [Headless] - 26.11.2011, 05:42
Re: key to enter and exit building - by MP2 - 26.11.2011, 05:43
Re: key to enter and exit building - by Rob_Maate - 26.11.2011, 06:10
Re: key to enter and exit building - by [Headless] - 26.11.2011, 06:28
Re: key to enter and exit building - by Rob_Maate - 26.11.2011, 07:01
Re: key to enter and exit building - by [Headless] - 26.11.2011, 07:38
Re: key to enter and exit building - by KosmasRego - 26.11.2011, 07:52
Re: key to enter and exit building - by Rob_Maate - 26.11.2011, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)