Guest User

Arsham

a guest
Aug 10th, 2009
1,290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.23 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. // 100% scripted by Andre Reece and Andre Reece Only aka Clean180ollie aka Eazy E
  4. // You cnanot claim this as your own unless your a dumb fucker.
  5. // If you want to claim it as your own, Well To fuckin bad. Make your own TDM server.
  6.  
  7. // Colors
  8. #define COLOR_GREY 0xAFAFAFAA
  9. #define COLOR_GREEN 0x33AA33AA
  10. #define COLOR_BRIGHTRED 0xFF0000AA
  11. #define COLOR_YELLOW 0xFFFF00AA
  12. #define COLOR_PINK 0xFF66FFAA
  13. #define COLOR_BLUE 0x3A47DEFF
  14. #define COLOR_TAN 0xBDB76BAA
  15. #define COLOR_PURPLE 0x800080AA
  16. #define COLOR_WHITE 0xFFFFFFAA
  17. #define COLOR_LIGHTBLUE 0x33CCFFAA
  18. #define COLOR_ORANGE 0xFF9900AA
  19. #define COLOR_INDIGO 0x4B00B0AA
  20. #define COLOR_BLACK 0x00000000
  21. #define COLOR_DARKGREY 0x696969FF
  22.  
  23. // Turfs nigga
  24. new gPlayerClass[MAX_PLAYERS];
  25. new gTeam[MAX_PLAYERS];
  26. new giveplayer[MAX_PLAYERS];
  27. new str[MAX_PLAYERS];
  28. // Menus
  29. new Menu:help;
  30. // Teams
  31. #define TEAM_GROVE 0
  32. #define TEAM_BALLAS 1
  33. #define TEAM_VAGOS 2
  34. #define TEAM_AZTECAS 3
  35. #define TEAM_LSPD 4
  36.  
  37. #if defined FILTERSCRIPT
  38.  
  39. public OnFilterScriptInit()
  40. {
  41. print("\n--------------------------------------");
  42. print(" Blank Filterscript by your name here");
  43. print("--------------------------------------\n");
  44. return 1;
  45. }
  46.  
  47. public OnFilterScriptExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. #else
  53.  
  54. main()
  55. {
  56. print("\n----------------------------------");
  57. print(" Scripter: Andre Reece");
  58. print(" aka clean180ollie, eazy e.");
  59. print(" This Script shall not be claimed ass own.");
  60. print(" Cause I said so fucker.");
  61. print(" So Dont Think About it");
  62. print("----------------------------------\n");
  63. }
  64.  
  65. #endif
  66.  
  67. public OnGameModeInit()
  68. {
  69. // Don't use these lines if it's a filterscript
  70. SetGameModeText("TDM-GangWars");
  71. // Grove Street Families
  72. AddPlayerClass(107, 2474.8, -1673.966, 15, 0, 30, 50000, 32, 50000, 5, 50000);
  73. AddPlayerClass(106, 2474.8, -1673.966, 15, 0, 30, 50000, 32, 50000, 5, 50000);
  74. AddPlayerClass(105, 2474.8, -1673.966, 15, 0, 30, 50000, 32, 50000, 5, 50000);
  75. // Front Yard Ballas
  76. AddPlayerClass(102, 2209.9856,-1177.3947,25.7266, 0, 31, 50000, 27, 50000, 23, 50000);
  77. AddPlayerClass(103, 2209.9856,-1177.3947,25.7266, 0, 31, 50000, 27, 50000, 23, 50000);
  78. AddPlayerClass(104, 2209.9856,-1177.3947,25.7266, 0, 31, 50000, 27, 50000, 23, 50000);
  79. // Vagos
  80. AddPlayerClass(108, 2717.1780,-1124.1628,69.5781, 0, 30, 50000, 31, 50000, 32, 50000);
  81. AddPlayerClass(109, 2717.1780,-1124.1628,69.5781, 0, 30, 50000, 31, 50000, 32, 50000);
  82. AddPlayerClass(110, 2717.1780,-1124.1628,69.5781, 0, 30, 50000, 31, 50000, 32, 50000);
  83. // Aztecas
  84. AddPlayerClass(114, 1725.641, -2120.061, 15, 0, 32, 50000, 34, 50000, 23, 50000);
  85. AddPlayerClass(115, 1725.641, -2120.061, 15, 0, 32, 50000, 34, 50000, 23, 50000);
  86. AddPlayerClass(116, 1725.641, -2120.061, 15, 0, 32, 50000, 34, 50000, 23, 50000);
  87. // Police (FUCK DEM)
  88. AddPlayerClass(265, 1554.513, -1677.914, 15, 0, 25, 50000, 24, 50000, 31, 50000);
  89. AddPlayerClass(266, 1554.513, -1677.914, 15, 0, 25, 50000, 24, 50000, 31, 50000);
  90. AddPlayerClass(267, 1554.513, -1677.914, 15, 0, 25, 50000, 24, 50000, 31, 50000);
  91. // Cars
  92. AddStaticVehicle(598,1536.0474,-1666.3302,13.1275,359.2788,0,1); // PD cars
  93. AddStaticVehicle(598,1535.9395,-1674.8959,13.1366,359.2789,0,1); // PD cars
  94. AddStaticVehicle(598,1535.8698,-1680.4412,13.2078,359.2790,0,1); // PD cars
  95. AddStaticVehicle(598,1534.4950,-1661.4175,13.2069,0.5602,0,1); // PD cars
  96. AddStaticVehicle(598,1534.3932,-1652.4973,13.2082,0.5632,0,1); // PD cars
  97. AddStaticVehicle(598,1534.2819,-1641.7218,13.2089,359.8664,0,1); // PD cars
  98. AddStaticVehicle(598,1534.4392,-1685.4253,13.2042,177.2082,0,1); // PD cars
  99. AddStaticVehicle(598,1534.3845,-1698.5042,13.2083,180.6520,0,1); // PD cars
  100. AddStaticVehicle(598,1534.5375,-1711.5868,13.2083,180.7989,0,1); // PD cars
  101. AddStaticVehicle(603,2505.7097,-1679.8519,13.3003,136.4762,86,86); // GCF cars
  102. AddStaticVehicle(603,2507.5288,-1666.2064,13.2324,207.2644,86,96); // GCF cars
  103. AddStaticVehicle(603,2503.1296,-1679.7917,13.2144,125.0997,86,86); // GCF cars
  104. AddStaticVehicle(402,2460.2903,-1665.2214,13.2673,70.3100,86,86); // GCF CARS
  105. AddStaticVehicle(567,2496.8782,-1676.2019,13.2157,88.2251,86,86); // GCF cars
  106. AddStaticVehicle(567,1701.8403,-2116.3042,13.2525,86.9232,90,96); // AZTECAS CARS
  107. AddStaticVehicle(567,1688.2214,-2116.2803,13.3440,91.2763,90,96); // AZTECAS CARS
  108. AddStaticVehicle(567,1688.0098,-2108.2297,13.3303,270.1812,90,96); // AZTECAS CARS
  109. AddStaticVehicle(567,1700.2010,-2108.5042,13.3303,269.1586,90,96); // AZTECAS CARS
  110. AddStaticVehicle(567,1719.5519,-2109.5029,13.2461,266.1180,90,96); // AZTECAS CARS
  111. AddStaticVehicle(411,2228.2144,-1173.4064,25.4578,269.9183,5,5); // fyb car
  112. AddStaticVehicle(411,2228.1963,-1169.9908,25.4669,265.9034,5,5); // fyb car
  113. AddStaticVehicle(567,2207.2842,-1161.3855,25.5977,83.6689,5,5); // fyb car
  114. AddStaticVehicle(567,2216.5435,-1162.3883,25.5937,86.5640,5,5); // fyb car
  115. AddStaticVehicle(567,2206.2834,-1173.3495,25.5977,95.7875,5,5); // fyb car
  116. //Menu Shit
  117. help = CreateMenu("help menu", 1, 50.0, 180.0, 200.0, 200.0);
  118.  
  119. AddMenuItem(help, 0, "Rules");
  120. AddMenuItem(help, 0, "Scripter");
  121. AddMenuItem(help, 0, "Mission");
  122. AddMenuItem(help, 0, "Commands");
  123. // OTHER BULLSHIT
  124. EnableTirePopping(0);
  125. DisableInteriorEnterExits();
  126. UsePlayerPedAnims();
  127. return 1;
  128. }
  129.  
  130. public OnGameModeExit()
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerRequestClass(playerid, classid)
  136. {
  137. gPlayerClass[playerid] = classid;
  138.  
  139. switch (classid) {
  140.  
  141. case 0,1,2:
  142.  
  143. {
  144. gTeam[playerid] = TEAM_GROVE;
  145. GameTextForPlayer(playerid, "~p~Grove Street Families", 1000, 6);
  146. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  147.  
  148. }
  149.  
  150. case 3,4,5:
  151.  
  152. {
  153. gTeam[playerid] = TEAM_BALLAS;
  154. GameTextForPlayer(playerid, "~b~Ballas", 1000, 6);
  155. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  156. }
  157.  
  158. case 6,7,8:
  159.  
  160. {
  161. gTeam[playerid] = TEAM_VAGOS;
  162. GameTextForPlayer(playerid, "~g~VAGOS", 1000, 6);
  163. ApplyAnimation(playerid,"PED","strip_G",4.1,1,1,1,1,1);
  164. }
  165.  
  166. case 9,10,11:
  167.  
  168. {
  169. gTeam[playerid] = TEAM_AZTECAS;
  170. GameTextForPlayer(playerid, "~g~AZTECAS", 1000, 6);
  171.  
  172. }
  173. case 12,13,14:
  174.  
  175. {
  176. gTeam[playerid] = TEAM_LSPD;
  177. GameTextForPlayer(playerid, "~g~POLICE", 1000, 6);
  178.  
  179. }
  180.  
  181. }
  182. SetPlayerPos(playerid, 2524.2695,-1696.2926,18.2204);
  183. SetPlayerFacingAngle( playerid, 2.3616 );
  184. SetPlayerCameraPos(playerid, 2523.7749,-1692.6855,18.9011);
  185. SetPlayerCameraLookAt(playerid, 2524.2695,-1696.2926,18.2204);
  186. return 1;
  187. }
  188.  
  189. public OnPlayerRequestSpawn(playerid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerConnect(playerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnPlayerDisconnect(playerid, reason)
  200. {
  201. SendClientMessageToAll(0xFFFFFFFF, "Someone Left.... But Why?");
  202. return 1;
  203. }
  204.  
  205. public OnVehicleDeath(vehicleid, killerid)
  206. {
  207. new string[128];
  208. if(killerid != 255)
  209. {
  210. format(string, sizeof(string), "Vehicle ID %d has died by killerid %d", vehicleid, killerid);
  211. SendClientMessageToAll(0xA9A9A9AA, string);
  212. }
  213. else
  214. {
  215. format(string, sizeof(string), "Vehicle ID %d has died.", vehicleid);
  216. SendClientMessageToAll(0xA9A9A9AA, string);
  217. }
  218. return 1;
  219. }
  220.  
  221. public OnPlayerSpawn(playerid)
  222. {
  223. new PlayerName[MAX_PLAYER_NAME],
  224. string[128];
  225. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  226. format(string, sizeof(string), "%s has spawned.", PlayerName);
  227. SendClientMessageToAll(0xFFFFFFFF, string);
  228. PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
  229. return 1;
  230. }
  231.  
  232. public OnPlayerDeath(playerid, killerid, reason)
  233. {
  234. SendDeathMessage(killerid, playerid, reason);
  235. SetPlayerScore(killerid,(GetPlayerScore(killerid))+1);
  236. return 1;
  237. }
  238.  
  239. public OnPlayerText(playerid, text[])
  240. {
  241. return 1;
  242. }
  243.  
  244. public OnPlayerPrivmsg(playerid, recieverid, text[])
  245. {
  246. new RecName[24], PlayerName[24];
  247. GetPlayerName(recieverid, giveplayer, sizeof(giveplayer));
  248. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  249.  
  250. if(!IsPlayerConnected(recieverid))
  251. return SendClientMessage(playerid, 0xAFAFAFAA, "INVALID ID!");
  252. if(recieverid == playerid)
  253. return SendClientMessage(playerid, 0xAFAFAFAA, "SERVER: The receiver can't be yourself.");
  254.  
  255. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Private message ~r~Sent~y~.", 3000, 3);
  256. GameTextForPlayer(recieverid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Private message ~r~Recieved~y~.", 3000, 3);
  257. PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  258. PlayerPlaySound(recieverid, 1057, 0.0, 0.0, 0.0);
  259.  
  260. format(str, sizeof(str), "PM from %s(%i): %s", PlayerName, playerid, text);
  261. SendClientMessage(recieverid, 0x33AAFFFF, str);
  262.  
  263. format(str, sizeof(str), "PM sent to %s(%i): %s", RecName, recieverid, text);
  264. SendClientMessage(playerid, 0x33AAFFFF, str);
  265. return true;
  266. }
  267.  
  268. public OnPlayerCommandText(playerid, cmdtext[])
  269. {
  270. if (strcmp("/help", cmdtext, true, 10) == 0)
  271. {
  272. ShowMenuForPlayer(help, playerid);
  273. TogglePlayerControllable(playerid,0);
  274. return 1;
  275. }
  276. if (strcmp("/rules", cmdtext, true, 10) == 0)
  277. {
  278. SendClientMessage(playerid, COLOR_GREEN, "Breif: Of Course Some Faggots Gonna Do Something Stupid");
  279. SendClientMessage(playerid, COLOR_GREEN, "Shortcut: /rules");
  280. SendClientMessage(playerid, COLOR_GREEN, "1: No Team Killing");
  281. SendClientMessage(playerid, COLOR_GREEN, "2: No Spam");
  282. SendClientMessage(playerid, COLOR_GREEN, "3: No CarParking");
  283. SendClientMessage(playerid, COLOR_GREEN, "4: NO HACKS NO CHEATS NO BUG ABUSE");
  284. SendClientMessage(playerid, COLOR_GREEN, "5: DOnt Talk About Other Servers");
  285. return 1;
  286. }
  287. if (strcmp("/freezeme", cmdtext, true, 10) == 0)
  288. {
  289. SendClientMessage(playerid, COLOR_ORANGE, "You Froze Yourself");
  290. TogglePlayerControllable(playerid,0);
  291. return 1;
  292. }
  293. if (strcmp("/unfreezeme", cmdtext, true, 10) == 0)
  294. {
  295. SendClientMessage(playerid, COLOR_ORANGE, "You have unFrozen Yourself");
  296. TogglePlayerControllable(playerid,1);
  297. return 1;
  298. }
  299. if (strcmp("/nigger", cmdtext, true, 10) == 0)
  300. {
  301. new name[ 24 ], string[ 64 ];
  302. GetPlayerName( playerid, name, 24 );
  303. // Format the passed-away message properly, and show it to everyone!
  304. format( string, sizeof(string), "%s says hes a nigger", name );
  305. GameTextForAll( string, 5000, 3 );
  306. return 1;
  307. }
  308. if (strcmp("/kill", cmdtext, true, 10) == 0)
  309. {
  310. SetPlayerHealth(playerid, 0.0);
  311. return 1;
  312. }
  313. return 0;
  314. }
  315.  
  316. public OnPlayerInfoChange(playerid)
  317. {
  318. return 1;
  319. }
  320.  
  321. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  322. {
  323. new string[128];
  324. format(string, sizeof(string), "You're entering vehicle %d",vehicleid);
  325. SendClientMessage(playerid, 0xFFFFFFFF, string);
  326. return 1;
  327. }
  328.  
  329. public OnPlayerExitVehicle(playerid, vehicleid)
  330. {
  331. new string[128];
  332. format(string, sizeof(string), "INFO: You have exited vehicle ID %d", vehicleid);
  333. SendClientMessage(playerid, 0xFFFFFFFF, string);
  334. return 1;
  335. }
  336.  
  337. public OnRconCommand(cmd[])
  338. {
  339. return 1;
  340. }
  341.  
  342. public OnPlayerPickUpPickup(playerid, pickupid)
  343. {
  344. return 1;
  345. }
  346.  
  347. public OnPlayerSelectedMenuRow(playerid, row)
  348. {
  349. new Menu:current;
  350. current = GetPlayerMenu(playerid);
  351. if(current == help)
  352. {
  353. switch(row)
  354. {
  355. case 0:{
  356. SendClientMessage(playerid, COLOR_GREEN, "Breif: Of Course Some Faggots Gonna Do Something Stupid");
  357. SendClientMessage(playerid, COLOR_GREEN, "Shortcut: /rules");
  358. SendClientMessage(playerid, COLOR_GREEN, "1: No Team Killing");
  359. SendClientMessage(playerid, COLOR_GREEN, "2: No Spam");
  360. SendClientMessage(playerid, COLOR_GREEN, "3: No CarParking");
  361. SendClientMessage(playerid, COLOR_GREEN, "4: NO HACKS NO CHEATS NO BUG ABUSE");
  362. SendClientMessage(playerid, COLOR_GREEN, "5: DOnt Talk About Other Servers");
  363.  
  364. }
  365. case 1:{
  366. SendClientMessage(playerid, COLOR_BRIGHTRED, "This Motherfuckin Script was motherfuckin");
  367. SendClientMessage(playerid, COLOR_BRIGHTRED, "Scripted by ANDRE_REECE aka Clean180ollie");
  368. SendClientMessage(playerid, COLOR_BRIGHTRED, "aka EAZY_E...............................");
  369.  
  370. }
  371. case 2:{
  372. SendClientMessage(playerid, COLOR_YELLOW, "If You have No Idea What the fuck your doin,");
  373. SendClientMessage(playerid, COLOR_YELLOW, "This is a Team DeathMatch, You Work with your fellow niggers");
  374. SendClientMessage(playerid, COLOR_YELLOW, "To Defeat The Other Team.... Thats all");
  375.  
  376. }
  377. case 3:{
  378. SendClientMessage(playerid, COLOR_PINK, "Breif: The Commands");
  379. SendClientMessage(playerid, COLOR_PINK, "shortcut: /cmds");
  380. SendClientMessage(playerid, COLOR_PINK, "Commands Are:");
  381. SendClientMessage(playerid, COLOR_PINK, "/register, /login, /rules, /kill");
  382. SendClientMessage(playerid, COLOR_PINK, "/nigger,/unfreezeme,/freezeme");
  383. SendClientMessage(playerid, COLOR_PINK, "Breif: The Commands");
  384.  
  385. }
  386. }
  387. }
  388.  
  389. return 1;
  390. }
  391.  
  392. public OnPlayerExitedMenu(playerid)
  393. {
  394. TogglePlayerControllable(playerid,0);
  395. return 1;
  396. }
Advertisement
Add Comment
Please, Sign In to add comment