Advertisement
Guest User

Party Place By Muhd_Fitri v0.2

a guest
Mar 24th, 2013
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 8.22 KB | None | 0 0
  1. /*
  2.  
  3. PARTY PLACE BY MUHD_FITRI a.k.a Guest123
  4.  
  5. //== No Bugs ==//
  6.  
  7.  
  8.  
  9. */
  10. #include <a_samp>
  11.  
  12. ///colours//
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. #define COLOR_BRIGHTRED 0xE60000FF
  20. #define COLOR_GREY 0xAFAFAFAA
  21. #define COLOR_GREEN 0x33AA33AA
  22. #define COLOR_RED 0xAA3333AA
  23. #define COLOR_YELLOW 0xFFFF00AA
  24. #define COLOR_WHITE 0xFFFFFFAA
  25. #define COLOR_PURPLE 0x9900FFAA
  26. #define COLOR_BROWN 0x993300AA
  27. #define COLOR_ORANGE 0xFF9933AA
  28. #define COLOUR_PINK 0xFF00FFFF
  29. #define COLOUR_PURPLE 0x800080FF
  30. #define COLOUR_BLACK 0x000000FF
  31. #define COLOR_CYAN 0x99FFFFAA
  32. #define COLOR_TAN 0xFFFFCCAA
  33. #define COLOR_PINK 0xFF66FFAA
  34. #define COLOR_KHAKI 0x999900AA
  35. #define COLOR_LIME 0x99FF00AA
  36. #define COLOR_BLACK 0x000000AA
  37. #define COLOR_TURQ 0x00A3C0AA
  38. #define COLOR_LIGHTBLUE 0x33CCFFAA
  39. #define COLOR_DARKRED 0xAA993333
  40. #define COLOR_VIOLET 0x9955DEEE
  41. #define NICE_BLUE 0xa0d3ffAA
  42. #define GREEN 0x21DD00FF
  43. #define RED 0xE60000FF
  44. #define ADMIN_RED 0xFB0000FF
  45. #define YELLOW 0xFFFF00FF
  46. #define ORANGE 0xF97804FF
  47. #define LIGHTRED 0xFF8080FF
  48. #define LIGHTBLUE 0x00C2ECFF
  49. #define PURPLE 0xB360FDFF
  50. #define PLAYER_COLOR 0xFFFFFFFF
  51. #define BLUE 0x1229FAFF
  52. #define LIGHTGREEN 0x38FF06FF
  53. #define DARKPINK 0xE100E1FF
  54. #define DARKGREEN 0x008040FF
  55. #define ANNOUNCEMENT 0x00CACAFB
  56. #define COLOR_SYSTEM 0xEFEFF7AA
  57. #define NICESKY 0x99FFFFAA
  58. #define GRAY 0xCECECEFF
  59. #define red 0xE60000FF
  60. #define yellow 0xFFFF00FF
  61. #define COLOR_ANTIHAX 0xE60000FF
  62.  
  63. #define COLOR_LIGHTBLUE 0x33CCFFAA
  64. #define COLOR_RED 0xAA3333AA
  65. #define COLOR_GREY 0xAFAFAFAA
  66. #define COLOR_YELLOW 0xFFFF00AA
  67. #define COLOR_PINK 0xFF66FFAA
  68. #define COLOR_BLUE 0x0000BBAA
  69. #define COLOR_WHITE 0xFFFFFFAA
  70. #define COLOR_INDIGO 0x4B00B0AA
  71. #define COLOR_VIOLET 0x9955DEEE
  72. #define COLOR_LIGHTRED 0xFF99AADD
  73. #define COLOR_SEAGREEN 0x00EEADDF
  74. #define COLOR_GRAYWHITE 0xEEEEFFC4
  75. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  76. #define COLOR_GREENISHGOLD 0xCCFFDD56
  77. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  78. #define COLOR_NEUTRALBLUE 0xABCDEF01
  79. #define COLOR_LIGHTCYAN 0xAAFFCC33
  80. #define COLOR_LEMON 0xDDDD2357
  81. #define COLOR_MEDIUMBLUE 0x63AFF00A
  82. #define COLOR_NEUTRAL 0xABCDEF97
  83. #define COLOR_NEUTRALGREEN 0x81CFAB00
  84. #define COLOR_DARKGREEN 0x12900BBF
  85. #define COLOR_DARKBLUE 0x300FFAAB
  86. #define COLOR_BLUEGREEN 0x46BBAA00
  87. #define COLOR_PINK 0xFF66FFAA
  88. #define COLOR_LIGHTBLUE 0x33CCFFAA
  89. #define COLOR_GRAD1 0xB4B5B7FF
  90. #define COLOR_GRAD2 0xBFC0C2FF
  91. #define COLOR_GREY 0xAFAFAFAA
  92. #define COLOR_GREEN 0x33AA33AA
  93. #define COLOR_RED 0xAA3333AA
  94. #define COLOR_YELLOW 0xFFFF00AA
  95. #define COLOR_WHITE 0xFFFFFFAA
  96. #define COLOR_BROWN 0x993300AA
  97. #define COLOR_CYAN 0x99FFFFAA
  98. #define COLOR_TAN 0xFFFFCCAA
  99. #define COLOR_PINK 0xFF66FFAA
  100. #define COLOR_KHAKI 0x999900AA
  101. #define COLOR_LIME 0x99FF00AA
  102. #define COLOR_SYSTEM 0xEFEFF7AA
  103. #define COLOR_GRAD2 0xBFC0C2FF
  104. #define COLOR_GRAD4 0xD8D8D8FF
  105. #define COLOR_GRAD6 0xF0F0F0FF
  106. #define COLOR_GRAD2 0xBFC0C2FF
  107. #define COLOR_GRAD3 0xCBCCCEFF
  108. #define COLOR_GRAD5 0xE3E3E3FF
  109. #define COLOR_GRAD1 0xB4B5B7FF
  110. #define COLOR_GILE 0x924161FF
  111. // ADDED 6-2-2012 Embed 0.3c
  112. #define COL_EASY           "{FFF1AF}"
  113. #define COL_WHITE          "{FFFFFF}"
  114. #define COL_BLACK          "{0E0101}"
  115. #define COL_GREY           "{C3C3C3}"
  116. #define COL_GREEN          "{6EF83C}"
  117. #define COL_RED            "{F81414}"
  118. #define COL_YELLOW         "{F3FF02}"
  119. #define COL_ORANGE         "{FFAF00}"
  120. #define COL_LIME           "{B7FF00}"
  121. #define COL_CYAN           "{00FFEE}"
  122. #define COL_LIGHTBLUE      "{00C0FF}"
  123. #define COL_BLUE           "{0049FF}"
  124. #define COL_MAGENTA        "{F300FF}"
  125. #define COL_VIOLET         "{B700FF}"
  126. #define COL_PINK           "{FF00EA}"
  127. #define COL_MARONE         "{A90202}"
  128. #define COL_CMD            "{B8FF02}"
  129. #define COL_PARAM          "{3FCD02}"
  130. #define COL_SERVER         "{AFE7FF}"
  131. #define COL_VALUE          "{A3E4FF}"
  132. #define COL_RULE           "{F9E8B7}"
  133. #define COL_RULE2          "{FBDF89}"
  134. #define COL_RWHITE         "{FFFFFF}"
  135. #define COL_LGREEN         "{C9FFAB}"
  136. #define COL_LRED           "{FFA1A1}"
  137. #define COL_LRED2          "{C77D87}"
  138.  
  139.  
  140.  
  141.  
  142. public OnFilterScriptInit()
  143. {
  144. print("\n--------------------------------------");
  145. print(" PARTY PLACE BY MUHD_FITRI a.k.a Guest123 Loaded v0.1");
  146. print("--------------------------------------\n");
  147.  
  148.  
  149.  
  150. // Party Object//
  151.  
  152. CreateObject(19129, 2530.183349, 1593.176757, 9.920310, 0.000000, 0.000000, 0.000000);
  153. CreateObject(2784, 2528.981933, 1599.467651, 11.490623, 0.000000, 0.000000, 0.000000);
  154. CreateObject(6865, 2529.206542, 1600.912231, 13.990623, 0.000000, 0.000000, 40.000000);
  155. CreateObject(3461, 2527.296875, 1601.308837, 18.334257, 0.000000, 0.000000, 0.000000);
  156. CreateObject(3461, 2530.896728, 1601.308837, 18.334257, 0.000000, 0.000000, 0.000000);
  157. CreateObject(625, 2522.692626, 1585.382934, 10.990623, 0.000000, 0.000000, 0.000000);
  158. CreateObject(625, 2541.206054, 1585.437255, 10.990623, 0.000000, 0.000000, 0.000000);
  159. CreateObject(3498, 2542.185058, 1593.903076, 10.820312, 0.000000, 0.000000, 0.000000);
  160. CreateObject(3498, 2542.185058, 1593.903076, 19.820312, 0.000000, 0.000000, 0.000000);
  161. CreateObject(3498, 2542.185058, 1588.903076, 19.820312, 0.000000, 0.000000, 0.000000);
  162. CreateObject(3498, 2542.185058, 1588.903076, 10.820312, 0.000000, 0.000000, 0.000000);
  163. CreateObject(16151, 2528.348388, 1586.507446, 10.490623, 0.000000, 0.000000, -90.000000);
  164. CreateObject(1515, 2539.520751, 1597.048461, 9.990623, 0.000000, 0.000000, -90.000000);
  165. CreateObject(1515, 2539.520751, 1598.048461, 9.990623, 0.000000, 0.000000, -90.000000);
  166. CreateObject(1515, 2539.520751, 1596.048461, 9.990623, 0.000000, 0.000000, -90.000000);
  167. new Glob213 = CreateObject(9190, 2542.238281, 1590.813354, 24.354778, 0.000000, 0.000000, -90.000000);
  168. new Glob124 = CreateObject(9190, 2542.238281, 1590.813354, 24.354778, 0.000000, 0.000000, 90.000000);
  169. SetObjectMaterialText(Glob213, "Welcome {C3C3C3}To Party {0049FF} Place", 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 19, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  170. SetObjectMaterialText(Glob124, "Welcome {C3C3C3}To Party {0049FF} Place", 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 19, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  171. return 1;
  172. //end of object
  173.  
  174.  
  175. //=== NO WEAPONS ALLOWED AT PARTY ===//
  176. //==Y(^_^)Y Peace==//
  177. }
  178.  
  179. public OnPlayerUpdate(playerid)
  180. {
  181.     if(IsPlayerInRangeOfPoint(playerid, 15.0 ,2530.183349, 1593.176757, 9.920310))
  182.     {
  183.     ResetPlayerWeapons(playerid);
  184.     //No Died On Party//
  185.     SetPlayerHealth(playerid,100);
  186.     SetPlayerArmour(playerid,100);
  187.     return 1;
  188.     }
  189.     return 1;
  190. }
  191.  
  192. public OnPlayerConnect(playerid)
  193. {
  194.     SendClientMessage(playerid, COLOR_RED, "This Server Are Using Party Place System Use /partyplace");
  195.     return 1;
  196. }
  197.  
  198. public OnPlayerCommandText(playerid, cmdtext[])
  199. {
  200.     if(!strcmp(cmdtext, "/partyplace", true, 10))
  201.     {
  202.         new str[128];
  203.         GetPlayerName(playerid, str, sizeof(str));
  204.         format(str, sizeof(str), "* %s{C0C0C0} has used {FF8000} /partyplace", str);
  205.         SetPlayerPos(playerid,2530.183349, 1593.176757, 9.920310 +2);
  206.         SendClientMessageToAll(0xFFFF00AA, str);
  207.         return 1;
  208.     }
  209.     if(strcmp(cmdtext, "/dance1", true) == 0)
  210.     {
  211.         new str[128];
  212.         GetPlayerName(playerid, str, sizeof(str));
  213.         format(str, sizeof(str), "* %s{C0C0C0} has used {FF8000} /dance1", str);
  214.         SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  215.         SendClientMessage(playerid, COLOR_RED, "You Are Dance Now");
  216.         SendClientMessageToAll(0xFFFF00AA, str);
  217.         return 1;
  218.     }
  219.     if(strcmp(cmdtext, "/dance2", true) == 0)
  220.     {
  221.         new CMD[128];
  222.         GetPlayerName(playerid, CMD, sizeof(CMD));
  223.         format(CMD, sizeof(CMD), "* %s{C0C0C0} has used {FF8000} /dance2", CMD);
  224.         SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  225.         SendClientMessage(playerid, COLOR_RED, "You Are Dance Now");
  226.         SendClientMessageToAll(0xFFFF00AA, CMD);
  227.         return 1;
  228.     }
  229.     if(strcmp(cmdtext, "/dance3", true) == 0)
  230.     {
  231.         new str[128];
  232.         GetPlayerName(playerid, str, sizeof(str));
  233.         format(str, sizeof(str), "* %s{C0C0C0} has used {FF8000} /dance3", str);
  234.         SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  235.         SendClientMessage(playerid, COLOR_RED, "You Are Dance Now");
  236.         SendClientMessageToAll(0xFFFF00AA, str);
  237.         return 1;
  238.     }
  239.     return 0;
  240. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement