17.05.2010, 01:23
Well 'i' is part of the for loop I made. That would loop through all the players and check if any of them are in the range of the point. If you used the code you just posted, it would only work for playerid 0 because that's what it would be by default. And you could do the area way also.
You would have to replace 'min_x' with the maximum x of the area, etc.
pawn Код:
public Teleport()
{
new Float:x,Float:y,Float:z;
for(new i; i<MAX_PLAYERS; i++)
{
GetPlayerPos(i,x,y,z);
if((x > min_x) && (x < max_x) && (y > min_y) && (y < max_y))
{
SetPlayerPos(i,3453.345.,3453,45.345,3434);
}
}
return 1;
}

