Press " T " to enter/exit
#1

How can I make button " T " enter to buildings with /enter and /exit ??
enter:
Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, 1368.8760,-1279.8350,13.5469))
    {
        SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625); //ammu1
        SetPlayerInterior(playerid, 1);
    }
    if(IsPlayerInRangeOfPoint(playerid, 5, 1833.7809,-1842.6556,13.5781))
    {
        SetPlayerPos(playerid, -26.691598,-55.714897,1003.546875); //shop1
        SetPlayerInterior(playerid, 6);
    }
    if(IsPlayerInRangeOfPoint(playerid, 5, 1154.7290,-1457.8655,15.7969))
    {
        SetPlayerPos(playerid, 6.091179,-29.271898,1003.549438); //shop2
        SetPlayerInterior(playerid, 10);
    }
return 1;
}
and exit??:
Код:
CMD:exit(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5, 286.148986,-40.644397,1001.515625))
    {
        SetPlayerPos(playerid, 1368.8760,-1279.8350,13.5469);//ammu1
        SetPlayerInterior(playerid, 0);
    }

    if (IsPlayerInRangeOfPoint(playerid, 5,-26.691598,-55.714897,1003.546875))
    {
        SetPlayerPos(playerid, 1833.7809,-1842.6556,13.5781); //shop1
        SetPlayerInterior(playerid, 0);
    }
    if (IsPlayerInRangeOfPoint(playerid, 5,6.091179,-29.271898,1003.549438))
    {
        SetPlayerPos(playerid, 1154.7290,-1457.8655,15.7969); //shop2
        SetPlayerInterior(playerid, 0);
    }
return 1;
}
Reply


Messages In This Thread
Press " T " to enter/exit - by AhmedMohamed - 27.01.2014, 22:40
Re: Press " T " to enter/exit - by Verth - 27.01.2014, 22:45
Re: Press " T " to enter/exit - by AhmedMohamed - 27.01.2014, 22:50
Re: Press " T " to enter/exit - by Misiur - 27.01.2014, 22:56
Re: Press " T " to enter/exit - by AhmedMohamed - 27.01.2014, 23:00
Re: Press " T " to enter/exit - by AhmedMohamed - 27.01.2014, 23:31
Re: Press " T " to enter/exit - by dannyk0ed - 27.01.2014, 23:54
Re: Press " T " to enter/exit - by AhmedMohamed - 28.01.2014, 01:09

Forum Jump:


Users browsing this thread: 1 Guest(s)