forward Teleport(playerid,Float:range,Float:ax,Float:ay,Float:az,Float:bx,Float:by,Float:bz,interior);
public Teleport(playerid,Float:range,Float:ax,Float:ay,Float:az,Float:bx,Float:by,Float:bz,interior){ if(IsPlayerInRangeOfPoint(playerid, range, ax, ay, az)) { SetPlayerPos(playerid,bx,by,bz); SetPlayerInterior(playerid,interior); PlayerInfo[playerid][PosInt] = interior; PlayerInfo[playerid][PosX] = bx; PlayerInfo[playerid][PosX] = by; PlayerInfo[playerid][PosX] = bz; } return 1;}
public OnPlayerUpdate(playerid){ new Float:Poz[3]; GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]); Teleport(playerid,5.0,Poz[0], Poz[1], Poz[2], 0 ,0 ,3,0); return true;}
public OnPlayerUpdate(playerid){ new Float:Poz[3]; GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]); Teleport(playerid,5.0,Poz[0], Poz[1], Poz[2], 0 ,0 ,3,0); Teleport(playerid,5.0,Poz[0],Poz[1],Poz[2],500,500,500,0); return true;}
PlayerInfo[playerid][PosX] = bx; PlayerInfo[playerid][PosX] = by; PlayerInfo[playerid][PosX] = bz;