19.09.2009, 20:43
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;
}