Guest User

Crasher by Mriss

a guest
May 31st, 2014
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.27 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4. #include <sscanf2>
  5. #include <zcmd>
  6.  
  7. #if defined FILTERSCRIPT
  8. new Text:blackTD = Text:INVALID_TEXT_DRAW;
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     blackTD = TextDrawCreate(-20.000000,2.000000,"|");
  13.     TextDrawUseBox(blackTD,1);
  14.     TextDrawBoxColor(blackTD,0x000000ff);
  15.     TextDrawTextSize(blackTD,660.000000,22.000000);
  16.     TextDrawAlignment(blackTD,0);
  17.     TextDrawBackgroundColor(blackTD,0x000000ff);
  18.     TextDrawFont(blackTD,3);
  19.     TextDrawLetterSize(blackTD,1.000000,52.200000);
  20.     TextDrawColor(blackTD,0x000000ff);
  21.     TextDrawSetOutline(blackTD,1);
  22.     TextDrawSetProportional(blackTD,1);
  23.     TextDrawSetShadow(blackTD,1);
  24.     return 1;
  25. }
  26.  
  27. public OnFilterScriptExit()
  28. {
  29.     return 1;
  30. }
  31.  
  32. #else
  33.  
  34. main()
  35. {
  36.     print("\n----------------------------------");
  37.     print(" Blank Gamemode by your name here");
  38.     print("----------------------------------\n");
  39. }
  40.  
  41. #endif
  42.  
  43. public OnGameModeInit()
  44. {
  45.     // Don't use these lines if it's a filterscript
  46.     SetGameModeText("Blank Script");
  47.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  48.     return 1;
  49. }
  50.  
  51. public OnGameModeExit()
  52. {
  53.     return 1;
  54. }
  55.  
  56. public OnPlayerRequestClass(playerid, classid)
  57. {
  58.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  59.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  60.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerConnect(playerid)
  65. {
  66.     return 1;
  67. }
  68.  
  69. public OnPlayerDisconnect(playerid, reason)
  70. {
  71.     return 1;
  72. }
  73.  
  74. public OnPlayerSpawn(playerid)
  75. {
  76.     return 1;
  77. }
  78.  
  79. public OnPlayerDeath(playerid, killerid, reason)
  80. {
  81.     return 1;
  82. }
  83.  
  84. public OnVehicleSpawn(vehicleid)
  85. {
  86.     return 1;
  87. }
  88.  
  89. public OnVehicleDeath(vehicleid, killerid)
  90. {
  91.     return 1;
  92. }
  93.  
  94. public OnPlayerText(playerid, text[])
  95. {
  96.     return 1;
  97. }
  98.  
  99. public OnPlayerCommandText(playerid, cmdtext[])
  100. {
  101.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  102.     {
  103.         // Do something here
  104.         return 1;
  105.     }
  106.     return 0;
  107. }
  108.  
  109. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  110. {
  111.     return 1;
  112. }
  113.  
  114. public OnPlayerExitVehicle(playerid, vehicleid)
  115. {
  116.     return 1;
  117. }
  118.  
  119. public OnPlayerStateChange(playerid, newstate, oldstate)
  120. {
  121.     return 1;
  122. }
  123.  
  124. public OnPlayerEnterCheckpoint(playerid)
  125. {
  126.     return 1;
  127. }
  128.  
  129. public OnPlayerLeaveCheckpoint(playerid)
  130. {
  131.     return 1;
  132. }
  133.  
  134. public OnPlayerEnterRaceCheckpoint(playerid)
  135. {
  136.     return 1;
  137. }
  138.  
  139. public OnPlayerLeaveRaceCheckpoint(playerid)
  140. {
  141.     return 1;
  142. }
  143.  
  144. public OnRconCommand(cmd[])
  145. {
  146.     return 1;
  147. }
  148.  
  149. public OnPlayerRequestSpawn(playerid)
  150. {
  151.     return 1;
  152. }
  153.  
  154. public OnObjectMoved(objectid)
  155. {
  156.     return 1;
  157. }
  158.  
  159. public OnPlayerObjectMoved(playerid, objectid)
  160. {
  161.     return 1;
  162. }
  163.  
  164. public OnPlayerPickUpPickup(playerid, pickupid)
  165. {
  166.     return 1;
  167. }
  168.  
  169. public OnVehicleMod(playerid, vehicleid, componentid)
  170. {
  171.     return 1;
  172. }
  173.  
  174. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  175. {
  176.     return 1;
  177. }
  178.  
  179. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  180. {
  181.     return 1;
  182. }
  183.  
  184. public OnPlayerSelectedMenuRow(playerid, row)
  185. {
  186.     return 1;
  187. }
  188.  
  189. public OnPlayerExitedMenu(playerid)
  190. {
  191.     return 1;
  192. }
  193.  
  194. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  195. {
  196.     return 1;
  197. }
  198.  
  199. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  200. {
  201.     return 1;
  202. }
  203.  
  204. public OnRconLoginAttempt(ip[], password[], success)
  205. {
  206.     return 1;
  207. }
  208.  
  209. public OnPlayerUpdate(playerid)
  210. {
  211.     return 1;
  212. }
  213.  
  214. public OnPlayerStreamIn(playerid, forplayerid)
  215. {
  216.     return 1;
  217. }
  218.  
  219. public OnPlayerStreamOut(playerid, forplayerid)
  220. {
  221.     return 1;
  222. }
  223.  
  224. public OnVehicleStreamIn(vehicleid, forplayerid)
  225. {
  226.     return 1;
  227. }
  228.  
  229. public OnVehicleStreamOut(vehicleid, forplayerid)
  230. {
  231.     return 1;
  232. }
  233.  
  234. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  235. {
  236.     return 1;
  237. }
  238.  
  239. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  240. {
  241.     return 1;
  242. }
  243.  
  244. CMD:crash(playerid, params[])
  245. {
  246.     new Target, Interior;
  247.     if(sscanf(params, "u", Target)) return SendClientMessage(playerid, -1, "/crash [Target]");
  248.     Interior = GetPlayerInterior(Target), SetPlayerInterior(Target, Interior), SetPlayerInterior(Target, 5), SetPlayerVirtualWorld(Target, 5);
  249.     TextDrawShowForPlayer(Target, blackTD);
  250.     SetTimerEx("Crash", 1000, true, "i", Target);
  251.  
  252.    
  253.     return 1;
  254. }
  255. forward Crash(playerid);
  256. public Crash(playerid)
  257. {
  258.     new Target;
  259.     TextDrawHideForPlayer(Target, blackTD);
  260.     SendClientMessage(Target, 0xB4B5B7FF, "ERROR: Your GTA San Andreas is malfunctioning!");
  261.     SetTimerEx("CrashNow", 3000, false, "i", Target);
  262.     return 1;
  263. }
  264. forward CrashNow(playerid);
  265. public CrashNow(playerid)
  266. {
  267.     new Target;
  268.     GameTextForPlayer(Target, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
  269.     GameTextForPlayer(Target, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
  270.     GameTextForPlayer(Target, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
  271.     GameTextForPlayer(Target, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
  272.     GameTextForPlayer(Target, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
  273.     GameTextForPlayer(Target, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
  274.     GameTextForPlayer(Target, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6);
  275.     GameTextForPlayer(Target, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 12000, 6);
  276.     return 1;
  277. }
Advertisement
Add Comment
Please, Sign In to add comment