Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. stock T_SetPlayerPos(p,Float:X,Float:Y,Float:Z,Float:A = 0.0,Int = 0,World = 0,bool:freeze = false,time = 1000)
  2. {
  3. if(PLAYER_AIRBRK[p] == false) KillTimer(AIR_TIMER[p]);
  4. PLAYER_AIRBRK[p] = false;
  5. AIR_TIMER[p] = SetTimerEx("AIRBRK_SET" , 4000, false, "i", p);
  6. PLAYER_POS[p][0] = X;
  7. PLAYER_POS[p][1] = Y;
  8. PLAYER_POS[p][2] = Z;
  9. SetPlayerPos(p,X,Y,Z),
  10. SetPlayerInterior(p,Int),
  11. SetPlayerVirtualWorld(p,World);
  12. if(freeze) Freeze(p), SetTimerEx("UnFreeze" , time, false, "i", p);
  13. SetPlayerFacingAngle(p,A);
  14. SetCameraBehindPlayer(p);
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement