Guest User

SUPMOBIL BY GREGORY00

a guest
Dec 3rd, 2013
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.09 KB | None | 0 0
  1. /* Scripted By Gregory_Kouk [Gregory00]
  2.  
  3. CREDITS:
  4. •SAMP
  5. •Gogorakis
  6. •Gregory00
  7.  
  8. If you want to re-release it with edits or something...
  9. ----------------->DO NOT REMOVE THE CREDITS(!)<-----------------
  10. */
  11. #include <a_samp>
  12.  
  13. #define Gelb 0xFFFF00AA
  14. #define COLOR_YELLOW 0xFFFF00AA
  15. #define CreateDynamic3DTextLabel
  16. #define sirene1
  17.  
  18. new SupMobil[MAX_PLAYERS];
  19. new Text3D:SupMobilText[MAX_PLAYERS];
  20. new SupMobilLicht[MAX_PLAYERS];
  21. new SupMobilLicht2[MAX_PLAYERS];
  22. new HatSupmobil[MAX_PLAYERS];
  23.  
  24. #if defined FILTERSCRIPT
  25.  
  26. public OnFilterScriptInit()
  27. {
  28. print("\n--------------------------------------");
  29. print(" SupMobil - Created By Gregory");
  30. print("--------------------------------------\n");
  31. return 1;
  32. }
  33.  
  34. public OnFilterScriptExit()
  35. {
  36. return 1;
  37. }
  38.  
  39. #else
  40.  
  41. main()
  42. {
  43. print("\n----------------------------------");
  44. print(" SupMobil - Created By Gregory");
  45. print("----------------------------------\n");
  46. }
  47.  
  48. #endif
  49. public OnPlayerRequestClass(playerid, classid)
  50. {
  51. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  52. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  53. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  54. return 1;
  55. }
  56. public OnPlayerCommandText(playerid, cmdtext[])
  57. {
  58. if (strcmp("/supmobil", cmdtext, true, 10) == 0)
  59. {
  60. ShowPlayerDialog(playerid,16,DIALOG_STYLE_LIST,"Admin SupMobil Spawner","Comet\nTug\nQuad","Spawnen","Cancel");
  61. return 1;
  62. }
  63. if (strcmp("/slock", cmdtext, true, 10) == 0)
  64. {
  65. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == SupMobil[playerid])
  66. {
  67. for(new i=0; i < MAX_PLAYERS; i++)
  68. {
  69. if(i == playerid) continue;
  70. SetVehicleParamsForPlayer(SupMobil[playerid],i,0,1);
  71. }
  72. SendClientMessage(playerid,COLOR_YELLOW,"Your SupMobil Has Been Locked!");
  73. }
  74. return 1;
  75. }
  76. if (strcmp("/dsupmobil", cmdtext, true, 10) == 0)
  77. {
  78. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == SupMobil[playerid])
  79. {
  80. new currentveh;
  81. currentveh = SupMobil[playerid];
  82.  
  83. DestroyVehicle(currentveh);
  84. SendClientMessage(playerid,-1,"You've Successfully Destroyed This SupMobil");
  85. }
  86. return 1;
  87. }
  88. return 0;
  89. }
  90. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  91. {
  92. if(dialogid == 16)
  93. {
  94. if(response)
  95. switch(listitem)
  96. {
  97. case 0:
  98. {
  99. new Float:x, Float:y, Float:z;
  100. new Float:angle,text[128];
  101. GetPlayerFacingAngle(playerid, angle);
  102. GetPlayerPos(playerid, x,y,z);
  103. LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
  104. SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
  105. SupMobil[playerid] = CreateVehicle(480, x,y,z+2,angle,232,232,99999);
  106. PutPlayerInVehicle(playerid, SupMobil[playerid], 0);
  107. LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
  108. SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
  109. SendClientMessage(playerid, COLOR_YELLOW, "You have your Comet Spawned!");
  110. HatSupmobil[playerid] = 1;
  111. new name[MAX_PLAYER_NAME];
  112. GetPlayerName(playerid, name, sizeof(name));
  113. SupMobilText[playerid] = Create3DTextLabel(text, 0xFFFF00AA ,x,y,z, 40.0,0);// Examen
  114. SupMobilLicht[playerid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  115. AttachObjectToVehicle(SupMobilLicht[playerid], SupMobil[playerid], 0.6, -1, 0.69, 0 ,0, 0);
  116. SupMobilLicht2[playerid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  117. AttachObjectToVehicle(SupMobilLicht2[playerid], SupMobil[playerid], -0.6, -1, 0.69 ,0, 0, 0);
  118. AddVehicleComponent(SupMobil[playerid], 1010); // Nitro
  119. }
  120. case 1:
  121. {
  122. new Float:x, Float:y, Float:z;
  123. new Float:angle,text[128];
  124. GetPlayerFacingAngle(playerid, angle);
  125. GetPlayerPos(playerid, x,y,z);
  126. LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
  127. SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
  128. SupMobil[playerid] = CreateVehicle(583, x,y,z+2,angle,232,232,99999);
  129. PutPlayerInVehicle(playerid, SupMobil[playerid], 0);
  130. LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
  131. SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
  132. PutPlayerInVehicle(playerid, SupMobil[playerid], 0);
  133. SendClientMessage(playerid, COLOR_YELLOW, "You have your Tug Spawned!");
  134. HatSupmobil[playerid] = 1;
  135. new name[MAX_PLAYER_NAME];
  136. GetPlayerName(playerid, name, sizeof(name));
  137. SupMobilText[playerid] = Create3DTextLabel(text, 0xFFFF00AA ,x,y,z, 40.0,0);// Examen
  138. SupMobilLicht[playerid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  139. AttachObjectToVehicle(SupMobilLicht[playerid], SupMobil[playerid], 0.4, -0.33, 1.6 ,0 ,0 ,0);
  140. AddVehicleComponent(SupMobil[playerid], 1010); // Nitro
  141. }
  142. case 2:
  143. {
  144. new Float:x, Float:y, Float:z;
  145. new Float:angle,text[128];
  146. GetPlayerFacingAngle(playerid, angle);
  147. GetPlayerPos(playerid, x,y,z);
  148. LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
  149. SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
  150. SupMobil[playerid] = CreateVehicle(471, x,y,z+2,angle,232,232,99999);
  151. PutPlayerInVehicle(playerid, SupMobil[playerid], 0);
  152. LinkVehicleToInterior(SupMobil[playerid], GetPlayerInterior(playerid));
  153. SetVehicleVirtualWorld(SupMobil[playerid], GetPlayerVirtualWorld(playerid));
  154. SendClientMessage(playerid, COLOR_YELLOW, "You have your Quad spawned!");
  155. HatSupmobil[playerid] = 1;
  156. new name[MAX_PLAYER_NAME];
  157. GetPlayerName(playerid, name, sizeof(name));
  158. SupMobilText[playerid] = Create3DTextLabel(text, 0xFFFF00AA ,x,y,z, 40.0,0);// Examen
  159. //SupMobilText[playerid] = CreateDynamic3DTextLabel(text, 0xFFFF00AA, x,y,z, 40.0, 0, 1);
  160. SupMobilLicht[playerid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  161. AttachObjectToVehicle(SupMobilLicht[playerid], SupMobil[playerid], 0 ,0.74 ,0.37, 0, 0 ,0);
  162. AddVehicleComponent(SupMobil[playerid], 1010); // Nitro
  163. }
  164. }
  165. }
  166. return 1;
  167. }
Advertisement
Add Comment
Please, Sign In to add comment