Guest User

Untitled

a guest
Jul 7th, 2012
1,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.58 KB | None | 0 0
  1. /////////////////////////////////////Hat System v1/////////////////////////////
  2. /////////////////////////////////////////BY////////////////////////////////////
  3. //////////////////////////////////////God'Z War////////////////////////////////
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print("This Server Is using Hat System v1 By God'Z War");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16. public OnPlayerConnect()
  17. {
  18. SendClientMessage(playerid, 0xFFFFFFFF, "~g~This Server Is using Hat System v1 By ~w~God'Z War!");
  19. return 1;
  20. }
  21.  
  22.  
  23. #endif
  24.  
  25. public OnPlayerCommandText(playerid, cmdtext[])
  26. {
  27. if(!strcmp(cmdtext, "/edithat", true)) {
  28. EditAttachedObject(playerid, 1);
  29. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~Change The Place Of ~r~Hat !");
  30. return 1;
  31. }
  32. if(!strcmp(cmdtext, "/removehat", true)) {
  33. for ( new i = 0; i < 5; i ++ )
  34. if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
  35. RemovePlayerAttachedObject( playerid, i );
  36. return 1;
  37. }
  38. if (strcmp("/hat", cmdtext, true, 10) == 0) {
  39. ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,"Wear Hat","Hat 1 \nHat 2 \nHat 3 \nHat 4 \nHat 5 \nHat 6 \nHat 7 \nHat 8 \nHat 9 \nHat 10 \nHat 11 \nHat 12 \nHat 13 \nHat 14 \nHat 15 \nHat 16 ","Select","Close");
  40. return 1;
  41. }
  42. return 0;
  43. }
  44. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  45. {
  46. if(dialogid == 25)
  47. {
  48. if(response)
  49. {
  50. if(listitem == 0)
  51. {
  52.  
  53. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  54. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  55.  
  56. SetPlayerAttachedObject( playerid, 1, 18926, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  57. EditAttachedObject(playerid, 1);
  58. }
  59. if(listitem == 1)
  60. {
  61.  
  62. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  63. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  64.  
  65. SetPlayerAttachedObject( playerid, 1, 18927, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  66. EditAttachedObject(playerid, 1);
  67. }
  68. if(listitem == 2)
  69. {
  70.  
  71. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  72. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  73.  
  74. SetPlayerAttachedObject( playerid, 1, 18928, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  75. EditAttachedObject(playerid, 1);
  76. }
  77. if(listitem == 3)
  78. {
  79.  
  80. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  81. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  82.  
  83. SetPlayerAttachedObject( playerid, 1, 18929, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  84. EditAttachedObject(playerid, 1);
  85. }
  86. if(listitem == 4)
  87. {
  88.  
  89. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  90. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  91.  
  92. SetPlayerAttachedObject( playerid, 1, 18930, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  93. EditAttachedObject(playerid, 1);
  94. }
  95. if(listitem == 5)
  96. {
  97.  
  98. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  99. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  100.  
  101. SetPlayerAttachedObject( playerid, 1, 18931, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  102. EditAttachedObject(playerid, 1);
  103. }
  104. if(listitem == 6)
  105. {
  106.  
  107. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  108. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  109.  
  110. SetPlayerAttachedObject( playerid, 1, 18932, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  111. EditAttachedObject(playerid, 1);
  112. }
  113. if(listitem == 7)
  114. {
  115.  
  116. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  117. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  118.  
  119. SetPlayerAttachedObject( playerid, 1, 18933, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  120. EditAttachedObject(playerid, 1);
  121. }
  122. if(listitem == 8)
  123. {
  124.  
  125. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  126. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  127.  
  128. SetPlayerAttachedObject( playerid, 1, 18934, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  129. EditAttachedObject(playerid, 1);
  130. }
  131. if(listitem == 9)
  132. {
  133.  
  134. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  135. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  136.  
  137. SetPlayerAttachedObject( playerid, 1, 18944, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  138. EditAttachedObject(playerid, 1);
  139. }
  140. if(listitem == 10)
  141. {
  142.  
  143. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  144. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  145.  
  146. SetPlayerAttachedObject( playerid, 1, 18945, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  147. EditAttachedObject(playerid, 1);
  148. }
  149. if(listitem == 11)
  150. {
  151.  
  152. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  153. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  154.  
  155. SetPlayerAttachedObject( playerid, 1, 18946, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  156. EditAttachedObject(playerid, 1);
  157. }
  158. if(listitem == 12)
  159. {
  160.  
  161. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  162. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  163.  
  164. SetPlayerAttachedObject( playerid, 1, 18947, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  165. EditAttachedObject(playerid, 1);
  166. }
  167. if(listitem == 13)
  168. {
  169.  
  170. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  171. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  172.  
  173. SetPlayerAttachedObject( playerid, 1, 18948, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  174. EditAttachedObject(playerid, 1);
  175. }
  176. if(listitem == 14)
  177. {
  178.  
  179. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  180. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  181.  
  182. SetPlayerAttachedObject( playerid, 1, 18949, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  183. EditAttachedObject(playerid, 1);
  184. }
  185. if(listitem == 15)
  186. {
  187.  
  188. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  189. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  190.  
  191. SetPlayerAttachedObject( playerid, 1, 18950, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  192. EditAttachedObject(playerid, 1);
  193. }
  194. if(listitem == 16)
  195. {
  196.  
  197. GameTextForPlayer(playerid,"~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT !",3000,3);
  198. SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: ~g~You Can Edit Your Hat Place By Typing ~r~/EDITHAT!");
  199.  
  200. SetPlayerAttachedObject( playerid, 1, 189451, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
  201. EditAttachedObject(playerid, 1);
  202. }
  203. }
  204. }
  205. return 1;
  206. }
Advertisement
Add Comment
Please, Sign In to add comment