04.12.2009, 19:20
Hi there. Automatic gates are epic - as long as theyґre working. But mine are not.
Hereґs my code. If more people run around at the doors, the door gets bugged and dont open any more. Anyone knows why?
Код:
public boobsgatetimer()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(boobsmember[i] == 1 || IsPlayerAdmin(i))
{
//----------------------------------------------------------------------------
if(IsPlayerInRangeOfPoint(i,20,-545.30004882813, 1251.1568603516, 1.5))
{
MoveObject(boobsgate,-545.30004882813, 1249.1568603516, 9.5, 2);
}
else
{
MoveObject(boobsgate,-545.30004882813, 1251.1568603516, 1.5, 2);
}
//----------------------------------------------------------------------------BOOBSDOOR1
if(IsPlayerInRangeOfPoint(i,5,-540.58142089844, 1329.7946777344, 3.2876319885254))
{
MoveObject(boobsdoor1,-540.58142089844, 1329.7946777344, 6.2876319885254, 2);
}
else
{
MoveObject(boobsdoor1,-540.58142089844, 1329.7946777344, 3.2876319885254, 2);
}
//----------------------------------------------------------------------------BOOBSDOOR2
if(IsPlayerInRangeOfPoint(i,5,-543.65942382813, 1355.6201171875, 11.836064338684))
{
MoveObject(boobsdoor2,-543.65942382813, 1355.6201171875, 14.836064338684, 2);
}
else
{
MoveObject(boobsdoor2,-543.65942382813, 1355.6201171875, 11.836064338684, 2);
}
//----------------------------------------------------------------------------BOOBSDOOR3
if(IsPlayerInRangeOfPoint(i,5,-542.75897216797, 1376.6665039063, 11.807936668396))
{
MoveObject(boobsdoor3,-542.75897216797, 1376.6665039063, 14.807936668396, 2);
}
else
{
MoveObject(boobsdoor3,-542.75897216797, 1376.6665039063, 11.807936668396, 2);
}
//----------------------------------------------------------------------------BOOBSDOOR4
if(IsPlayerInRangeOfPoint(i,5,-543.65338134766, 1366.5200195313, 11.790085792542))
{
MoveObject(boobsdoor4,-543.65338134766, 1366.5200195313, 14.790085792542, 2);
}
else
{
MoveObject(boobsdoor4,-543.65338134766, 1366.5200195313, 11.790085792542, 2);
}
//----------------------------------------------------------------------------BOOBSDOOR5
if(IsPlayerInRangeOfPoint(i,5,-535.11450195313, 1419.3912353516, 12.049313545227))
{
MoveObject(boobsdoor5,-535.11450195313, 1419.3912353516, 15.049313545227, 2);
}
else
{
MoveObject(boobsdoor5,-535.11450195313, 1419.3912353516, 12.049313545227, 2);
}
//----------------------------------------------------------------------------BOOBSDOOR6
if(IsPlayerInRangeOfPoint(i,5,-543.28619384766, 1370, 19.033756256104))
{
MoveObject(boobsdoor6,-543.28619384766, 1370, 22.033756256104, 2);
}
else
{
MoveObject(boobsdoor6,-543.28619384766, 1370, 19.033756256104, 2);
}
}
}
}


