03.02.2011, 20:08
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;
}