Guest User

SetPlayerPosEx - With Interior Streaming!

a guest
May 26th, 2014
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.74 KB | None | 0 0
  1. stock SetPlayerPosEx(playerid, Float: X, Float: Y, Float: Z, Float: Angle, VW = 0, Interior = 0)
  2. {
  3. TogglePlayerControllable(playerid, false);
  4. SetPlayerPos(playerid, X, Y, Z);
  5. SetPlayerFacingAngle(playerid, Angle);
  6. SetPlayerVirtualWorld(playerid, VW);
  7. SetPlayerInterior(playerid, Interior);
  8. if(Interior == 0) return TogglePlayerControllable(playerid, true);
  9. if(Interior != 0) {
  10. SetTimerEx("FinishStreamingIn", 5000, false, "i", playerid);
  11. return GameTextForPlayer(playerid, "Streaming you in... Please wait...", 5000, 6);
  12. }
  13. return 1;
  14. }
  15.  
  16. forward FinishStreamingIn(playerid);
  17. public FinishStreamingIn(playerid)
  18. {
  19. TogglePlayerControllable(playerid, true);
  20. GameTextForPlayer(playerid, "You have been streamed in.", 4500, 6);
  21. return 1;
  22. }
Add Comment
Please, Sign In to add comment