Advertisement
Guest User

Drift axis cam

a guest
Oct 24th, 2011
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.16 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8. forward camera(playerid);
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     print("\n--------------------------------------");
  13.     print(" Blank Filterscript by your name here");
  14.     print("--------------------------------------\n");
  15.     return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20.     return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27.     print("\n----------------------------------");
  28.     print(" Blank Gamemode by your name here");
  29.     print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. new float:xyza[3];
  35.  
  36. public OnPlayerCommandText(playerid, cmdtext[])
  37. {
  38.     if (!strcmp(cmdtext, "/test"))
  39.     {
  40.         SetCameraBehindPlayer(playerid);
  41.         SetTimer("camera", 1, true);
  42.         return 1;
  43.     }
  44.     if (!strcmp(cmdtext, "/givemespeed"))
  45.     {
  46.     SetPlayerVelocity(playerid, xyza[0]+50, xyza[1]+50, xyza[2]+50);
  47.     return 0;
  48.     }
  49.     return 1;
  50. }
  51.  
  52. public camera(playerid)
  53. {
  54.     new Float:xyz[3];
  55.     new cambeh = SetCameraBehindPlayer(playerid);
  56.     GetPlayerCameraPos(playerid, xyz[0], xyz[1], xyz[2]);
  57.     SetPlayerCameraLookAt(cambeh, xyz[0], xyz[1], xyz[2]+25);
  58.     return 0;
  59. }
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement