where to put this ?
#2

Definitely not in OnPlayerUpdate. That gets called very quickly. You could call it if you wanted to but it's really unnecessary and might make your server lag. Just use a timer. Call it every second or second and a half or so.

pawn Код:
//At the top
forward Teleport();

//OnGameModeInit
SetTimer("Teleport",1500,1);

public Teleport()
{
   for(new i; i<MAX_PLAYERS; i++)
   {
     if(IsPlayerInRangeOfPoint(i,3453535,3453.45345,345.34)
     {
        SetPlayerPos(i,3453.345.,3453,45.345,3434);
     }
   }
   return 1;
}
Try that out. Don't forget to put the range in.
Reply


Messages In This Thread
where to put this ? - by AlbanianGuy - 17.05.2010, 00:38
Re: where to put this ? - by Backwardsman97 - 17.05.2010, 00:48
Re: where to put this ? - by AlbanianGuy - 17.05.2010, 00:55
Re: where to put this ? - by AlbanianGuy - 17.05.2010, 01:04
Re: where to put this ? - by Backwardsman97 - 17.05.2010, 01:23
Re: where to put this ? - by AlbanianGuy - 17.05.2010, 01:35
Re: where to put this ? - by Backwardsman97 - 17.05.2010, 01:43
Re: where to put this ? - by AlbanianGuy - 17.05.2010, 01:45
Re: where to put this ? - by AlbanianGuy - 17.05.2010, 02:11
Re: where to put this ? - by Backwardsman97 - 17.05.2010, 02:52

Forum Jump:


Users browsing this thread: 1 Guest(s)