Guest User

[FS] Sistema de Fezes v0.2

a guest
Apr 27th, 2011
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.39 KB | None | 0 0
  1. /*
  2. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  3. ==================================================================================================================
  4. SISTEMA DE FEZES V0.2
  5. FILTERSCRIPT CRIADO POR SHICKCARD
  6. CONTATO:
  7. SKYPE: shickcard
  8.  
  9. ==================================================================================================================
  10. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  11. */
  12.  
  13.  
  14. #include <a_samp>
  15.  
  16. #define CORBEMVINDO 0x8080FFAA
  17. #define CORMORREU 0xFF0000AA
  18. #define CORCMDS 0x80FF00AA
  19. #define CORCREDITOS 0xFF00FFAA
  20. #define CORAVISO 0x408080AA
  21. #define SHICK 2
  22.  
  23.  
  24. #if defined FILTERSCRIPT
  25.  
  26. public OnFilterScriptInit()
  27. {
  28. print("\n--------------------------------------");
  29. print(" [FS] Sistema de Defecação v0.1a");
  30. print(" Criador: Shickcard ");
  31. print("--------------------------------------\n");
  32. CreateObject(2926,1809.86218262,-1688.09643555,12.54815292,0.00000000,0.00000000,0.00000000);
  33. CreateObject(2926,1504.77978516,-1755.12133789,12.54687500,0.00000000,0.00000000,0.00000000);
  34. CreateObject(2926,1374.09301758,-1602.79504395,12.54687500,0.00000000,0.00000000,72.00000000);
  35. CreateObject(2926,1366.76293945,-1273.82214355,12.54687500,0.00000000,0.00000000,0.00000000);
  36. CreateObject(2926,1780.19836426,-1159.14099121,22.82812500,0.00000000,0.00000000,268.00000000);
  37. CreateObject(2926,2174.12133789,-1017.21093750,61.94620132,0.00000000,0.00000000,0.00000000);
  38. CreateObject(2926,2151.23779297,-1015.41033936,68.03906250,0.00000000,0.00000000,306.00000000);
  39. CreateObject(2926,2171.61230469,-1617.63232422,13.26051617,0.00000000,0.00000000,68.00000000);
  40. CreateObject(2926,2477.63037109,-1690.64123535,12.51051617,0.00000000,0.00000000,0.00000000);
  41. NivelFezes[playerid] = 0;
  42. SetTimer("TimerCagar", 300000, true);
  43. return 1;
  44. }
  45.  
  46. #else
  47.  
  48. new NivelFezes[MAX_PLAYERS];
  49. forward TimerCagar(playerid);
  50. forward Cagando(playerid);
  51.  
  52. main()
  53. {
  54. print("\n----------------------------------");
  55. print(" [FS] Sistema de Defecação v0.1a");
  56. print(" Criador: Shickcard ");
  57. print("----------------------------------\n");
  58. }
  59.  
  60. #endif
  61.  
  62. public OnPlayerConnect(playerid)
  63. {
  64. SendClientMessage(playerid, CORBEMVINDO, "[AVISO] Este servidor usa o Sistema de Defecação do Shickcard");
  65. return 1;
  66. }
  67.  
  68. public OnPlayerDisconnect(playerid, reason)
  69. {
  70. return 1;
  71. }
  72.  
  73. public OnPlayerSpawn(playerid)
  74. {
  75. SendClientMessage(playerid, CORBEMVINDO, "[AVISO] Este servidor usa o Sistema de Defecação do Shickcard");
  76. return 1;
  77. }
  78.  
  79. public OnPlayerDeath(playerid, killerid, reason)
  80. {
  81. if(NivelFezes[playerid] >= 7)
  82. {
  83. SetPlayerHealth(playerid,0);
  84. SendClientMessage(playerid, CORMORREU, "[LAUDO MÉDICO] Você morreu de infecção intestinal por acumular fezes.");
  85. NivelFezes[playerid] = 0;
  86. return 1;
  87. }
  88. return 1;
  89. }
  90.  
  91. public OnPlayerCommandText(playerid, cmdtext[])
  92. {
  93. if(strcmp("/creditos", cmdtext, true) == 0)
  94. {
  95. SendClientMessage(playerid, CORCREDITOS, "[CRÉDITOS] Todos os créditos ao criador do filterscript: Shickcard");
  96. return 1;
  97. }
  98. if(strcmp("/comandosfs", cmdtext, true) == 0)
  99. {
  100. SendClientMessage(playerid, CORCMDS, "[COMANDOS] /cagar /nivelfezes /creditos /gpsfezes /comandosfs");
  101. return 1;
  102. }
  103. if(strcmp("/cagar", cmdtext, true) == 0)
  104. {
  105. if(NivelFezes[playerid] == 0)
  106. {
  107. SendClientMessage(playerid, CORCMDS, "[ERRO] Você já cagou!");
  108. return 1;
  109. }
  110. if(!PlayerToPoint(2.0,playerid,1809.86218262,-1688.09643555,12.54815292) || !PlayerToPoint(2.0,playerid,1504.77978516,-1755.12133789,12.54687500)
  111. || !PlayerToPoint(2.0,playerid,1374.09301758,-1602.79504395,12.54687500) || !PlayerToPoint(2.0,playerid,1366.76293945,-1273.82214355,12.54687500)
  112. || !PlayerToPoint(2.0,playerid,1780.19836426,-1159.14099121,22.82812500) || !PlayerToPoint(2.0,playerid,2174.12133789,-1017.21093750,61.94620132)
  113. || !PlayerToPoint(2.0,playerid,2151.23779297,-1015.41033936,68.03906250) || !PlayerToPoint(2.0,playerid,2171.61230469,-1617.63232422,13.26051617)
  114. || !PlayerToPoint(2.0,playerid,2477.63037109,-1690.64123535,12.51051617))
  115. {
  116. SendClientMessage(playerid, CORCMDS, "[ERRO] Você não está em uma caixa de fezes!");
  117. return 1;
  118. }
  119. SetTimer("Cagando", 5000, 1);
  120. SendClientMessage(playerid, CORCMDS, "Você tá cagando!");
  121. ApplyAnimation(playerid,"FOOD","FF_Dam_Fwd",4.1,0,1,1,1,1);
  122. return 1;
  123. }
  124. if(strcmp("/gpsfezes", cmdtext ,true) == 0)
  125. {
  126. ShowPlayerDialog(playerid, SHICK, DIALOG_STYLE_LIST, "{FC69FF}.:: {DDE7FF} GPS Fezes {FC69FF}::.", "{C16FFF}Caixa Fezes 1\n{552FFF}Caixa Fezes 2\n{00B3FF}Caixa Fezes 3\n{0A23FF}Caixa Fezes 4\n{8769FF}Caixa Fezes 5\n{C8F5FF}Caixa Fezes 6\n{BFBFFF}Caixa Fezes 7\n{AF03FF}Caixa Fezes 8\n{FF00FF}Caixa Fezes 9", "Selecionar", "Cancelar");
  127. return 1;
  128. }
  129. if(strcmp("/nivelfezes", cmdtext, true) == 0)
  130. {
  131. new string[128];
  132. format(string, sizeof(string), "Nível de Fezes: %d", NivelFezes);
  133. SendClientMessageToAll(0xD5E8A8AA, string);
  134. return 1;
  135. }
  136. return 0;
  137. }
  138.  
  139. public TimerCagar(playerid)
  140. {
  141. new string[128];
  142. NivelFezes[playerid]+=1;
  143. format(string, sizeof(string), "[AVISO] Seu nível de fezes acabou de aumentar e agora é de: %d", NivelFezes);
  144. SendClientMessageToAll(0xD5E8A8AA, string);
  145. if(NivelFezes[playerid] == 2)
  146. {
  147. SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 2/6)");
  148. }
  149. if(NivelFezes[playerid] == 3)
  150. {
  151. SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 3/6)");
  152. }
  153. if(NivelFezes[playerid] == 4)
  154. {
  155. SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 4/6)");
  156. }
  157. if(NivelFezes[playerid] == 5)
  158. {
  159. SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 5/6)");
  160. }
  161. else if(NivelFezes[playerid] == 6)
  162. {
  163. SendClientMessage(playerid, CORAVISO, "[AVISO] Vá cagar ou você irá morrer por infecção intestinal (Nível Fezes: 6/6)");
  164. return 1;
  165. }
  166. return 1;
  167. }
  168.  
  169. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  170. {
  171. if(dialogid == SHICK)
  172. {
  173. if(response)
  174. {
  175. if(listitem == 0)
  176. {
  177. SetPlayerCheckpoint(playerid, 1809.86218262,-1688.09643555,12.54815292,8.0);
  178. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 1 - Marcada!");
  179. }
  180. if(listitem == 1)
  181. {
  182. SetPlayerCheckpoint(playerid, 1504.77978516,-1755.12133789,12.54687500,8.0);
  183. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 2 - Marcada!");
  184. }
  185. if(listitem == 2)
  186. {
  187. SetPlayerCheckpoint(playerid, 1374.09301758,-1602.79504395,12.54687500,8.0);
  188. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 3 - Marcada!");
  189. }
  190. if(listitem == 3)
  191. {
  192. SetPlayerCheckpoint(playerid, 1366.76293945,-1273.82214355,12.54687500,8.0);
  193. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 4 - Marcada!");
  194. }
  195. if(listitem == 4)
  196. {
  197. SetPlayerCheckpoint(playerid, 1780.19836426,-1159.14099121,22.82812500,8.0);
  198. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 5 - Marcada!");
  199. }
  200. if(listitem == 5)
  201. {
  202. SetPlayerCheckpoint(playerid, 2174.12133789,-1017.21093750,61.94620132,8.0);
  203. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 6 - Marcada!");
  204. }
  205. if(listitem == 6)
  206. {
  207. SetPlayerCheckpoint(playerid, 2151.23779297,-1015.41033936,68.03906250,8.0);
  208. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 7 - Marcada!");
  209. }
  210. if(listitem == 7)
  211. {
  212. SetPlayerCheckpoint(playerid, 2171.61230469,-1617.63232422,13.26051617,8.0);
  213. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 8 - Marcada!");
  214. }
  215. if(listitem == 8)
  216. {
  217. SetPlayerCheckpoint(playerid, 2477.63037109,-1690.64123535,12.51051617,8.0);
  218. SendClientMessage(playerid, 0xFFFFFFAA, "[-] Caixa de Fezes 9 - Marcada!");
  219. }
  220. return 1;
  221. }
  222. }
  223. return 0;
  224. }
  225.  
  226. public OnPlayerEnterCheckpoint(playerid)
  227. {
  228. DisablePlayerCheckpoint(playerid);
  229. return 1;
  230. }
  231.  
  232. public Cagando(playerid)
  233. {
  234. NivelFezes[playerid] = 0;
  235. SendClientMessage(playerid, CORCMDS, "Você acaba de cagar!");
  236. ClearAnimations(playerid);
  237. return 1;
  238. }
  239.  
  240. stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  241. {
  242. new Float:oldposx, Float:oldposy, Float:oldposz;
  243. new Float:tempposx, Float:tempposy, Float:tempposz;
  244. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  245. tempposx = (oldposx -x);
  246. tempposy = (oldposy -y);
  247. tempposz = (oldposz -z);
  248. if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  249. {
  250. return 1;
  251. }
  252. return 0;
  253. }
  254.  
  255. /*
  256. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  257. ==================================================================================================================
  258.  
  259. SISTEMA DE FEZES V0.2
  260. FILTERSCRIPT CRIADO POR SHICKCARD
  261. CONTATO:
  262. SKYPE: shickcard
  263.  
  264. ==================================================================================================================
  265. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  266. */
Advertisement
Add Comment
Please, Sign In to add comment