Guest User

Untitled

a guest
Feb 19th, 2010
5,909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.22 KB | None | 0 0
  1. //Anims By FLake.
  2. #include <a_samp>
  3. #define SPECIAL_ACTION_PISSING 68
  4. #define COLOR_BLUE 0x33AAFFFF
  5. #define COLOR_YELLOW 0xFFFF00AA
  6. public OnFilterScriptInit()
  7. {
  8. print("\n--------------------------------------");
  9. print(" Anims Loading ");
  10. print(" ");
  11. print("--------------------------------------\n");
  12. return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17. print("\n----------------------------------");
  18. print(" Anims Unloading ");
  19. print(" ");
  20. print("----------------------------------\n");
  21. return 1;
  22. }
  23.  
  24. public OnPlayerConnect(playerid)
  25. {
  26. SendClientMessage(playerid, COLOR_YELLOW,"Loaded: Flakes Anim System! use /anims");
  27. return 1;
  28. }
  29.  
  30. public OnPlayerCommandText(playerid, cmdtext[])
  31. {
  32. if (strcmp("/anims", cmdtext, true, 10) == 0)
  33. {
  34. SendClientMessage(playerid, COLOR_BLUE, "/relax | /scared | /sick | /wave | /spank | /taichi | /crossarms |");
  35. SendClientMessage(playerid, COLOR_BLUE, "/wank | /kiss | /talk | /fucku | /cocaine | /rocky | /sit | /smoke |");
  36. SendClientMessage(playerid, COLOR_BLUE, "/beach | /lookout | /circle | /medic | /chat | /die | /slapa | /rofl |");
  37. SendClientMessage(playerid, COLOR_BLUE, "/glitched | /fakefire | /bomb | /robman | /handsup | /piss |");
  38. SendClientMessage(playerid, COLOR_BLUE, "/getin | /skate | /cover | /fart | /vomit | /drunk | /bj1 | /bj2 | /bj3");
  39. SendClientMessage(playerid, COLOR_BLUE, "/funnywalk | /kickass | /cell | /laugh | /eat | /injured |");
  40. SendClientMessage(playerid, COLOR_BLUE, "/slapass | /laydown | /arrest | /laugh | /eat | /carjack | /strip | /strip2");
  41. SendClientMessage(playerid, COLOR_BLUE, "/animswat | /animswat1 | /animswat2 | /animswat3 | /animswat4 | /animswat5");
  42. SendClientMessage(playerid, COLOR_BLUE, "/animswat6 | /strip3 | /strip4 | /strip5 | /baseball | /baseball2");
  43. return 1;
  44. }
  45. else if (strcmp(cmdtext, "/relax", true)==0)
  46. {
  47. if (GetPlayerState(playerid)== 1)
  48. {
  49. ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  50. }
  51. return 1;
  52. }
  53. else if (strcmp(cmdtext, "/handsup", true)==0)
  54. {
  55. if (GetPlayerState(playerid)== 1)
  56. {
  57. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  58. }
  59. return 1;
  60. }
  61. else if (strcmp(cmdtext, "/bomb", true)==0)
  62. {
  63. if (GetPlayerState(playerid)== 1)
  64. {
  65. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  66. }
  67. return 1;
  68. }
  69. else if (strcmp(cmdtext, "/robman", true)==0)
  70. {
  71. if (GetPlayerState(playerid)== 1)
  72. {
  73. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  74. }
  75. return 1;
  76. }
  77. else if (strcmp(cmdtext, "/wank", true)==0)
  78. {
  79. if (GetPlayerState(playerid)== 1)
  80. {
  81. ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
  82. }
  83. return 1;
  84. }
  85. else if (strcmp(cmdtext, "/crossarms", true)==0)
  86. {
  87. if (GetPlayerState(playerid)== 1)
  88. {
  89. ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
  90. }
  91. return 1;
  92. }
  93. else if (strcmp(cmdtext, "/taichi", true)==0)
  94. {
  95. if (GetPlayerState(playerid)== 1)
  96. {
  97. ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
  98. }
  99. return 1;
  100. }
  101. else if (strcmp(cmdtext, "/spank", true)==0)
  102. {
  103. if (GetPlayerState(playerid)== 1)
  104. {
  105. ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
  106. }
  107. return 1;
  108. }
  109. else if (strcmp(cmdtext, "/wave", true)==0)
  110. {
  111. if (GetPlayerState(playerid)== 1)
  112. {
  113. ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
  114. }
  115. return 1;
  116. }
  117. else if (strcmp(cmdtext, "/sick", true)==0)
  118. {
  119. if (GetPlayerState(playerid)== 1)
  120. {
  121. ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  122. }
  123. return 1;
  124. }
  125. else if (strcmp(cmdtext, "/scared", true)==0)
  126. {
  127. if (GetPlayerState(playerid)== 1)
  128. {
  129. ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  130. }
  131. return 1;
  132. }
  133. else if (strcmp(cmdtext, "/talk", true)==0)
  134. {
  135. if (GetPlayerState(playerid)== 1)
  136. {
  137. ApplyAnimation(playerid,"PED","IDLE_CHAT",1.800001, 1, 1, 1, 1, 13000);
  138. }
  139. return 1;
  140. }
  141. else if (strcmp(cmdtext, "/kiss", true)==0)
  142. {
  143. if (GetPlayerState(playerid)== 1)
  144. {
  145. ApplyAnimation(playerid,"KISSING", "Grlfrd_Kiss_02", 1.800001, 1, 0, 0, 1, 600);
  146. }
  147. return 1;
  148. }
  149. else if (strcmp(cmdtext, "/sit", true)==0)
  150. {
  151. if (GetPlayerState(playerid)== 1)
  152. {
  153. ApplyAnimation(playerid,"INT_OFFICE", "OFF_Sit_Bored_Loop", 1.800001, 1, 0, 0, 1, 600);
  154. }
  155. return 1;
  156. }
  157. else if (strcmp(cmdtext, "/fucku", true)==0)
  158. {
  159. if (GetPlayerState(playerid)== 1)
  160. {
  161. ApplyAnimation(playerid,"ped", "fucku", 4.1, 0, 1, 1, 1, 1 );
  162. }
  163. return 1;
  164. }
  165. else if (strcmp(cmdtext, "/cocaine", true)==0)
  166. {
  167. if (GetPlayerState(playerid)== 1)
  168. {
  169. ApplyAnimation(playerid,"CRACK", "crckdeth2", 1.800001, 1, 0, 0, 1, 600);
  170. }
  171. return 1;
  172. }
  173. else if (strcmp(cmdtext, "/rocky", true)==0)
  174. {
  175. if (GetPlayerState(playerid)== 1)
  176. {
  177. ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox", 1.800001, 1, 0, 0, 1, 600);
  178. }
  179. return 1;
  180. }
  181. else if (strcmp(cmdtext, "/smoke", true)==0)
  182. {
  183. if (GetPlayerState(playerid)== 1)
  184. {
  185. ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  186. }
  187. return 1;
  188. }
  189. else if (strcmp("/beach", cmdtext, true, 10) == 0)
  190. {
  191. if (GetPlayerState(playerid)== 1)
  192. {
  193. ApplyAnimation(playerid,"BEACH","SitnWait_loop_W",4.1,0,1,1,1,1);
  194. }
  195. return 1;
  196. }
  197. else if (strcmp("/lookout", cmdtext, true, 10) == 0)
  198. {
  199. if (GetPlayerState(playerid)== 1)
  200. {
  201. ApplyAnimation(playerid,"ON_LOOKERS","lkup_in",4.1,0,1,1,1,1);
  202. }
  203. return 1;
  204. }
  205. else if (strcmp("/circle", cmdtext, true, 10) == 0)
  206. {
  207. if (GetPlayerState(playerid)== 1)
  208. {
  209. ApplyAnimation(playerid,"CHAINSAW","CSAW_Hit_2",4.1,0,1,1,1,1);
  210. }
  211. return 1;
  212. }
  213. else if (strcmp("/medic", cmdtext, true, 10) == 0)
  214. {
  215. if (GetPlayerState(playerid)== 1)
  216. {
  217. ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
  218. }
  219. return 1;
  220. }
  221. else if (strcmp("/chat", cmdtext, true, 10) == 0)
  222. {
  223. if (GetPlayerState(playerid)== 1)
  224. {
  225. ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
  226. }
  227. return 1;
  228. }
  229. else if (strcmp("/die", cmdtext, true, 10) == 0)
  230. {
  231. if (GetPlayerState(playerid)== 1)
  232. {
  233. ApplyAnimation(playerid,"PED","BIKE_fallR",4.1,0,1,1,1,1);
  234. }
  235. return 1;
  236. }
  237. else if (strcmp("/slapa", cmdtext, true, 10) == 0)
  238. {
  239. if (GetPlayerState(playerid)== 1)
  240. {
  241. ApplyAnimation(playerid,"PED","BIKE_elbowL",4.1,0,1,1,1,1);
  242. }
  243. return 1;
  244. }
  245. else if (strcmp("/rofl", cmdtext, true, 10) == 0)
  246. {
  247. if (GetPlayerState(playerid)== 1)
  248. {
  249. ApplyAnimation(playerid,"PED","Crouch_Roll_L",4.1,0,1,1,1,1);
  250. }
  251. return 1;
  252. }
  253. else if (strcmp("/glitched", cmdtext, true, 10) == 0)
  254. {
  255. if (GetPlayerState(playerid)== 1)
  256. {
  257. ApplyAnimation(playerid,"TATTOOS","TAT_Sit_Out_O",4.1,0,1,1,1,1);
  258. }
  259. return 1;
  260. }
  261. else if (strcmp("/fakefire", cmdtext, true, 10) == 0)
  262. {
  263. if (GetPlayerState(playerid)== 1)
  264. {
  265. ApplyAnimation(playerid,"SILENCED","SilenceCrouchfire",4.1,0,1,1,1,1);
  266. }
  267. return 1;
  268. }
  269. else if (strcmp("/fart", cmdtext, true, 10) == 0)
  270. {
  271. if (GetPlayerState(playerid)== 1)
  272. {
  273. PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
  274. }
  275. return 1;
  276. }
  277. else if (strcmp("/vomit", cmdtext, true) == 0)
  278. {
  279. if (GetPlayerState(playerid)== 1)
  280. {
  281. ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
  282. PlayerPlaySound(playerid, 1169, 0.0, 0.0, 0.0);
  283. }
  284. return 1;
  285. }
  286. else if (strcmp("/drunk", cmdtext, true, 10) == 0)
  287. {
  288. if (GetPlayerState(playerid)== 1)
  289. {
  290. ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
  291. }
  292. return 1;
  293. }
  294. else if (strcmp("/getin", cmdtext, true) == 0)
  295. {
  296. if (GetPlayerState(playerid)== 1)
  297. {
  298. ApplyAnimation(playerid,"NEVADA","NEVADA_getin",4.1,0,1,1,1,1);
  299. }
  300. return 1;
  301. }
  302. else if (strcmp("/piss", cmdtext, true) == 0)
  303. {
  304. if (GetPlayerState(playerid)== 1)
  305. {
  306. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
  307. }
  308. return 1;
  309. }
  310. else if (strcmp("/funnywalk", cmdtext, true) == 0)
  311. {
  312. if (GetPlayerState(playerid)== 1)
  313. {
  314. ApplyAnimation(playerid,"WUZI","Wuzi_Walk",4.1,0,1,1,1,1);
  315. }
  316. return 1;
  317. }
  318. else if (strcmp("/kickass", cmdtext, true) == 0)
  319. {
  320. if (GetPlayerState(playerid)== 1)
  321. {
  322. ApplyAnimation(playerid,"FIGHT_E","Hit_fightkick",4.1,0,1,1,1,1);
  323. }
  324. return 1;
  325. }
  326. if(strcmp("/cell", cmdtext, true) == 0)
  327. {
  328. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
  329. return 1;
  330. }
  331. if (strcmp("/laugh", cmdtext, true) == 0)
  332. {
  333. ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
  334. return 1;
  335. }
  336. if (strcmp("/eat", cmdtext, true) == 0)
  337. {
  338. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
  339. return 1;
  340. }
  341. if(strcmp("/injured", cmdtext, true) == 0)
  342. {
  343. ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
  344. return 1;
  345. }
  346. if (strcmp("/slapass", cmdtext, true) == 0)
  347. {
  348. ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
  349. return 1;
  350. }
  351. if (strcmp("/laydown", cmdtext, true) == 0)
  352. {
  353. ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
  354. return 1;
  355. }
  356. if (strcmp("/arrest", cmdtext, true) == 0)
  357. {
  358. ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
  359. return 1;
  360. }
  361. if(strcmp("/carjack", cmdtext, true) == 0)
  362. {
  363. ApplyAnimation(playerid,"PED","CAR_jackedLHS",4.0,0,1,1,1,0);
  364. return 1;
  365. }
  366. else if (strcmp(cmdtext, "/stopanim", true)==0)
  367. {
  368. ClearAnimations(playerid);
  369. return 1;
  370. }
  371. if(strcmp("/bj1", cmdtext, true) == 0)
  372. {
  373. ApplyAnimation(playerid,"BLOWJOBZ","BJ_STAND_END_W",4.0,0,1,1,1,0);
  374. return 1;
  375. }
  376. if(strcmp("/bj2", cmdtext, true) == 0)
  377. {
  378. ApplyAnimation(playerid,"BLOWJOBZ","BJ_STAND_END_P",4.0,0,1,1,1,0);
  379. return 1;
  380. }
  381. if(strcmp("/bj3", cmdtext, true) == 0)
  382. {
  383. ApplyAnimation(playerid,"BLOWJOBZ","BJ_STAND_LOOP_W",4.0,0,1,1,1,0);
  384. return 1;
  385. }
  386. if(strcmp("/animswat", cmdtext, true) == 0)
  387. {
  388. ApplyAnimation(playerid,"SWAT","gnstwall_injurd",4.0,0,1,1,1,0);
  389. return 1;
  390. }
  391. if(strcmp("/animswat2", cmdtext, true) == 0)
  392. {
  393. ApplyAnimation(playerid,"SWAT","JMP_Wall1m_180",4.0,0,1,1,1,0);
  394. return 1;
  395. }
  396. if(strcmp("/animswat3", cmdtext, true) == 0)
  397. {
  398. ApplyAnimation(playerid,"SWAT","Rail_fall",4.0,0,1,1,1,0);
  399. return 1;
  400. }
  401. if(strcmp("/animswat4", cmdtext, true) == 0)
  402. {
  403. ApplyAnimation(playerid,"SWAT","Rail_fall_crawl",4.0,0,1,1,1,0);
  404. return 1;
  405. }
  406. if(strcmp("/animswat5", cmdtext, true) == 0)
  407. {
  408. ApplyAnimation(playerid,"SWAT","swt_breach_01",4.0,0,1,1,1,0);
  409. return 1;
  410. }
  411. if(strcmp("/animswat6", cmdtext, true) == 0)
  412. {
  413. ApplyAnimation(playerid,"SWAT","swt_breach_02",4.0,0,1,1,1,0);
  414. return 1;
  415. }
  416. if(strcmp("/strip", cmdtext, true) == 0)
  417. {
  418. ApplyAnimation(playerid,"STRIP","strip_A",4.0,0,1,1,1,0);
  419. return 1;
  420. }
  421. if(strcmp("/strip2", cmdtext, true) == 0)
  422. {
  423. ApplyAnimation(playerid,"STRIP","strip_B",4.0,0,1,1,1,0);
  424. return 1;
  425. }
  426. if(strcmp("/strip3", cmdtext, true) == 0)
  427. {
  428. ApplyAnimation(playerid,"STRIP","strip_C",4.0,0,1,1,1,0);
  429. return 1;
  430. }
  431. if(strcmp("/strip4", cmdtext, true) == 0)
  432. {
  433. ApplyAnimation(playerid,"STRIP","strip_D",4.0,0,1,1,1,0);
  434. return 1;
  435. }
  436. if(strcmp("/stri5", cmdtext, true) == 0)
  437. {
  438. ApplyAnimation(playerid,"STRIP","strip_E",4.0,0,1,1,1,0);
  439. return 1;
  440. }
  441. if(strcmp("/Baseball", cmdtext, true) == 0)
  442. {
  443. ApplyAnimation(playerid,"BASEBALL","Bat_1",4.0,0,1,1,1,0);
  444. return 1;
  445. }
  446. if(strcmp("/baseball2", cmdtext, true) == 0)
  447. {
  448. ApplyAnimation(playerid,"BASEBALL","Bat_2",4.0,0,1,1,1,0);
  449. return 1;
  450. }
  451. return 0;
  452. }
Advertisement
Add Comment
Please, Sign In to add comment