Freezing when on a teleport
#6

Hmm. You could have something like this:
pawn Код:
//Next to the other forward
forward VFreeze(vehicleid,Float:x,Float:y,Float:z);

//When they teleport
New Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
for(new v; v<750; v++)
{
  if(GetVehicleModel(vehicleid)!=0)
  {
    New Float:vx,Float:vy, Float:vz;
    GetVehiclePos(v,vx,vy,vz);
    if((vx-x<50)&&(vy-y<50)&&(vz-z<50))
    {
      SetTimerEx("VFreeze",3000,0,"dfff",v,vx,vy,vz);
    }
  }
}

//The Timer ending
public VFreeze(vehicleid,Float:x,Float:y,Float:z)
{
  for(new i;i<200;i++)
  {
    if(IsPlayerConnected(i))
    {
      if(IsPlayerInVehicle(i,vehicleid))return 0;
      SetVehiclePos(vehicleid,x,y,z);
    }
  }
  return 1;
}
Reply


Messages In This Thread
Freezing when on a teleport - by Stunterz - 19.09.2009, 20:07
Re: Freezing when on a teleport - by Badger(new) - 19.09.2009, 20:09
Re: Freezing when on a teleport - by Stunterz - 19.09.2009, 20:19
Re: Freezing when on a teleport - by Badger(new) - 19.09.2009, 20:27
Re: Freezing when on a teleport - by Stunterz - 19.09.2009, 20:31
Re: Freezing when on a teleport - by Badger(new) - 19.09.2009, 20:43
Re: Freezing when on a teleport - by Stunterz - 19.09.2009, 20:45

Forum Jump:


Users browsing this thread: 2 Guest(s)