Advertisement
Guest User

MaykoX

a guest
Jan 23rd, 2010
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. #include <a_samp>
  2. #define FILTERSCRIPT
  3. #define COLOR_DARKBLUE 0x0000D0FF
  4. #define COLOR_WHITE 0xFFFFFFFF
  5. #define COLOR_LIGHTBLUE 0xBBFFFFFF
  6. #define COLOR_BLACK 0x000000FF
  7. #define COLOR_RED 0xAA3333AA
  8. #if defined FILTERSCRIPT
  9. forward SetPlayerTP(playerid);
  10.  
  11. new Float:TP[5][5] = { //random spawns
  12. {1698.4602,1437.0276,10.7255 },
  13. { 19.5509,-86.0392,1.6435},
  14. {18.6664,-51.1835,3.1834},
  15. { 31.8239,0.4595,3.1172 },
  16. {-2.1710,-33.5894,6.9609 } //add the rest of codes also here
  17. };
  18. main()
  19. {
  20.  
  21. }
  22. public OnPlayerConnect(playerid)
  23. {
  24. SendClientMessage(playerid,COLOR_LIGHTBLUE, "*New* FAVELA DM by MaykoX");
  25. return 1;
  26. }
  27. public OnFilterScriptInit()
  28.  
  29. {
  30. print("--------Favela DM --------");
  31. print("------Made by MaykoX------");
  32. CreateObject(3356, 38.286510467529, -76.156631469727, 4.1334648132324, 0, 0, 296.48046875);
  33. CreateObject(3418, 29.225727081299, -64.024566650391, 3.1212811470032, 0, 0, 292.51049804688);
  34. CreateObject(3415, 40.0491065979, -91.56510925293, -0.390625, 0, 0, 272.66064453125);
  35. CreateObject(3414, 17.471115112305, -52.505767822266, 4.3161902427673, 0, 0, 314.34533691406);
  36. CreateObject(3684, -1.6259384155273, -34.24373626709, 5.3905572891235, 0, 0, 65.504638671875);
  37. CreateObject(4178, -12.03392791748, -60.397338867188, 5.8640823364258, 0, 0, 340.15014648438);
  38. CreateObject(3644, 19.921779632568, -85.738304138184, 2.5813093185425, 358.01501464844, 3.9700012207031, 298.46545410156);
  39. CreateObject(3169, 11.56916809082, -67.435806274414, 2.0890712738037, 0, 0, 344.1201171875);
  40. CreateObject(3574, -1.2641155719757, -91.791954040527, 3.8088912963867, 0, 0, 332.21020507813);
  41. CreateObject(3566, 5.0842666625977, 12.714599609375, 4.7308058738708, 0, 0, 23.81982421875);
  42. CreateObject(3566, 15.539224624634, -0.39112764596939, 4.7308058738708, 0, 0, 55.578308105469);
  43. CreateObject(3566, 55.131988525391, -39.396179199219, 3.1110801696777, 23.820007324219, 320.29998779297, 55.574340820313);
  44. CreateObject(3566, 30.339805603027, -17.419645309448, 3.9197998046875, 3.9700012207031, 0, 31.754486083984);
  45. CreateObject(3502, 19.724699020386, -13.350971221924, 4.0458278656006, 0, 0, 312.3603515625);
  46. CreateObject(3502, 24.1435546875, -7.2275390625, 4.0458278656006, 0, 0, 334.19311523438);
  47. CreateObject(3566, 42.2490234375, -30.3115234375, 3.2126741409302, 0, 0, 55.574340820313);
  48. CreateObject(3566, 66.041061401367, -51.002895355225, 1.5531222820282, 0, 0, 35.724426269531);
  49. CreateObject(3287, 70.421661376953, -61.441009521484, 4.3484215736389, 0, 0, 3.969970703125);
  50. CreateObject(3575, 68.371788024902, -72.399040222168, 2.3010659217834, 0, 0, 286.55554199219);
  51. CreateObject(12859, 79.86376953125, -95.726211547852, -0.2530632019043, 0, 0, 11.909912109375);
  52.  
  53. return 1;
  54. }
  55.  
  56. public OnFilterScriptExit()
  57. {
  58. return 1;
  59. }
  60.  
  61. #else
  62.  
  63. main()
  64. {
  65. print(" Favela BY MaykoX Loaded");
  66. }
  67.  
  68. #endif
  69.  
  70.  
  71. public OnPlayerCommandText(playerid,cmdtext[])
  72. {
  73. if (strcmp("/FavelaDM", cmdtext, true, 10) == 0)
  74. {
  75. SetPlayerWorldBounds(playerid, 58.38938, -315.3026, 245.2354, -175.1681);
  76. SetPlayerTP(playerid);
  77. GivePlayerWeapon(playerid, 31, 250);
  78. GivePlayerWeapon(playerid, 22, 250);
  79. return 1;
  80. }
  81. return 0;
  82. }
  83. public SetPlayerTP(playerid)
  84. {
  85. new rand = random(sizeof(TP));
  86. SetPlayerPos(playerid, TP[rand][0], TP[rand][1], TP[rand][2]);
  87. return 1;
  88. }
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement