Guten Abend..
ich habe das prob das sich das tor für falsche öffnet.. doch was mache ich falsch ?
hier code danke in vorraus
forward gatetimer();
public gatetimer()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,10.0,283.4209,1821.5901,17.6406))
{
if(gTeam[i] == gTeam[TEAM_ARMY])
{
MoveDynamicObject(armytor1,285.7318, 1833.9036, 19.2553,1.0);
SetTimer("armytor1close",15000,0);
return 1;
}
}
else if(IsPlayerInRangeOfPoint(i,10.0,132.4245,1938.2010,19.2866))
{
if(gTeam[i] == gTeam[TEAM_ARMY])
{
MoveDynamicObject(armytor2,121.9173, 1941.3486, 21.0402,1.0);
SetTimer("armytor2close",15000,0);
return 1;
}
}
}
return 1;
}