Advertisement
Guest User

NtCat

a guest
Mar 25th, 2009
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4.  
  5. #define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1
  6.  
  7. #define COL_WHITE 0xFFFFFFAA
  8. #define COL_RED 0xE10000AA
  9.  
  10. new bool:CamSpect[MAX_PLAYERS];
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. print("\n--------------------------------------");
  15. print(" Las Venturas Cam System by NtCat v0.1b ");
  16. print("--------------------------------------\n");
  17. return 1;
  18. }
  19.  
  20. public OnPlayerCommandText(playerid, cmdtext[])
  21. {
  22. dcmd(lvcam, 5, cmdtext);
  23. dcmd(lvcamoff, 8, cmdtext);
  24. dcmd(lvcaminfo, 9, cmdtext);
  25. return 0;
  26. }
  27.  
  28. dcmd_lvcam(playerid,params[])
  29. {
  30. if(IsPlayerConnected(playerid))
  31. {
  32. new LVCamera = strval(params);
  33. if(!strlen(params)) {SendClientMessage(playerid,COL_WHITE,"USAGE: /cam 1-8");}
  34. else if(LVCamera < 1 || LVCamera > 8) {SendClientMessage(playerid,COL_WHITE,"USAGE: /cam 1-8");}
  35. else
  36. {
  37. if(LVCamera == 1)
  38. {
  39. SetPlayerInterior(playerid,0);
  40. TogglePlayerControllable(playerid,false);
  41. SetPlayerCameraPos(playerid,2189.5806,2408.7246,75.0426);
  42. SetPlayerCameraLookAt(playerid,2287.6287,2425.6077,10.8203);
  43. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 1, write /camoff for turn it off.");
  44. }
  45. else if(LVCamera == 2)
  46. {
  47. SetPlayerInterior(playerid,0);
  48. TogglePlayerControllable(playerid,false);
  49. SetPlayerCameraPos(playerid,2175.2954,1920.2675,68.2250);
  50. SetPlayerCameraLookAt(playerid,2058.4116,1927.2947,25.6404);
  51. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 2, write /camoff for turn it off.");
  52. }
  53. else if(LVCamera == 3)
  54. {
  55. SetPlayerInterior(playerid,0);
  56. TogglePlayerControllable(playerid,false);
  57. SetPlayerCameraPos(playerid,2084.4563,1685.5187,21.4174);
  58. SetPlayerCameraLookAt(playerid,2167.0383,1679.8147,13.7421);
  59. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 3, write /camoff for turn it off.");
  60. }
  61. else if(LVCamera == 4)
  62. {
  63. SetPlayerInterior(playerid,1);
  64. TogglePlayerControllable(playerid,false);
  65. SetPlayerCameraPos(playerid,2236.0862,1639.5861,1008.3594);
  66. SetPlayerCameraLookAt(playerid,2235.7483,1581.2803,1007.6695);
  67. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 4, write /camoff for turn it off.");
  68. }
  69. else if(LVCamera == 5)
  70. {
  71. SetPlayerInterior(playerid,0);
  72. TogglePlayerControllable(playerid,false);
  73. SetPlayerCameraPos(playerid,2093.4890,1286.2834,77.4710);
  74. SetPlayerCameraLookAt(playerid,2169.6665,1286.4927,34.9704);
  75. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 5, write /camoff for turn it off.");
  76. }
  77. else if(LVCamera == 6)
  78. {
  79. SetPlayerInterior(playerid,0);
  80. TogglePlayerControllable(playerid,false);
  81. SetPlayerCameraPos(playerid,2087.2651,1007.2668,47.5117);
  82. SetPlayerCameraLookAt(playerid,2026.9717,1007.3011,10.8203);
  83. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 6, write /camoff for turn it off.");
  84. }
  85. else if(LVCamera == 7)
  86. {
  87. SetPlayerInterior(playerid,10);
  88. SetPlayerPos(playerid,2016.6415,1017.6605,994.8750);
  89. TogglePlayerControllable(playerid,false);
  90. SetPlayerCameraPos(playerid,2016.6415,1017.6605,996.8750);
  91. SetPlayerCameraLookAt(playerid,1976.6785,1018.0529,994.4688);
  92. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 7, write /camoff for turn it off.");
  93. }
  94. else
  95. {
  96. SetPlayerInterior(playerid,0);
  97. TogglePlayerControllable(playerid,false);
  98. SetPlayerCameraPos(playerid,1746.9436,1453.2660,32.6941);
  99. SetPlayerCameraLookAt(playerid,1680.8373,1448.2501,10.7733);
  100. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You are looking trough camera 8, write /camoff for turn it off.");
  101. }
  102. CamSpect[playerid]=true;
  103. }
  104. }
  105. return 1;
  106. }
  107.  
  108. dcmd_lvcamoff(playerid,params[])
  109. {
  110. #pragma unused params
  111. if(IsPlayerConnected(playerid))
  112. {
  113. if(CamSpect[playerid] == false){SendClientMessage(playerid,COL_WHITE,"You haven�t any camera turned on.");}
  114. else
  115. {
  116. SetPlayerInterior(playerid,0);
  117. SetPlayerPos(playerid,1689.0211,1450.3179,10.7673);
  118. SetCameraBehindPlayer(playerid);
  119. TogglePlayerControllable(playerid,true);
  120. SendClientMessage(playerid,COL_WHITE,"[LV CAM SYSTEM] You have turned camera off.");
  121. CamSpect[playerid]=false;
  122. }
  123. }
  124. return 1;
  125. }
  126.  
  127. dcmd_lvcaminfo(playerid,params[])
  128. {
  129. #pragma unused params
  130. if(IsPlayerConnected(playerid))
  131. {
  132. SendClientMessage(playerid,COL_RED,"Las Venturas Cam System by NtCat v0.1");
  133. SendClientMessage(playerid,COL_WHITE,"Commands: /cam 1-8, /camoff.");
  134. }
  135. return 1;
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement