20.03.2009, 02:15
Set a repeating timer. Maybe every 2500 seconds or so. They can't get very far in that amount of time. Then check if the players that are supposed to be in the hydra area are out of the area and move them.
I hope you understand
pawn Код:
//At the top
new bool:InDM[MAX_PLAYERS];
forward CheckArea();
//OnGameModeInit
SetTimer("CheckArea",2500,1);
//When they enter the dm area
InDM[playerid] = true;//Set to false when they leave
public CheckArea()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(InDm[i])
{
if(!/*do your area check here with isplayerinarea*/)
{
//Set their position
}
}
}
return 1;
}