[HELP] /enter
#6

Try the code i posted earlier:
pawn Код:
enum BINFO
{
    BInt,
    Float:BPosX,
    Float:BPosY,
    Float:BPosZ,
    Float:BIntX,
    Float:BIntY,
    Float:BIntZ,
};
new Buildings[][BINFO] = {
    // Interior, Entrancex, Entrancey, Entrancez, Interiorx, Interiory, Interiorz
    {10, 4.2746,-141.6924,1004.0625, 246.40, 110.84, 1003.22}, // pd
    {7, 2257.4727, -71.0280, 31.6016, 302.292877, -143.139099, 1004.062500}
    };

CMD:enter(playerid, params[])
{
    for(new i = 0; i < sizeof(Buildings); ++i)
    {
        if(IsPlayerInRangeOfPoint(playerid, 10, Buildings[i][BPosX], Buildings[i][BPosY], Buildings[i][BPosZ]))
        {
            SetPlayerPos(playerid, Buildings[i][BIntX], Buildings[i][BIntY], Buildings[i][BIntZ]);
            SetPlayerInterior(playerid, Buildings[i][BInt]);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] /enter - by ifly4life - 03.02.2011, 19:47
Re: [HELP] /enter - by SkizzoTrick - 03.02.2011, 19:50
Re: [HELP] /enter - by ifly4life - 03.02.2011, 19:55
Re: [HELP] /enter - by SkizzoTrick - 03.02.2011, 19:58
Re: [HELP] /enter - by ifly4life - 03.02.2011, 20:05
Re: [HELP] /enter - by [L3th4l] - 03.02.2011, 20:08
Re: [HELP] /enter - by ifly4life - 03.02.2011, 20:12

Forum Jump:


Users browsing this thread: 3 Guest(s)