Advertisement
Guest User

Untitled

a guest
Dec 7th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.51 KB | None | 0 0
  1. //#define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. #define COLOR_BLUE 0x33AAFFFF
  8. #define COLOR_YELLOW 0xFFFF00AA
  9.  
  10. #define SPECIAL_ACTION_PISSING (68)
  11.  
  12. #define HOLDING(%0) \
  13. ((newkeys & (%0)) == (%0))
  14.  
  15. #define RELEASED(%0) \
  16. (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
  17.  
  18. #define PRESSED(%0) \
  19. (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  20.  
  21. #define PRESSED(%0) \
  22. (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  23.  
  24. #define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
  25.  
  26. #define HOLDING(%0) \
  27. ((newkeys & (%0)) == (%0))
  28.  
  29. #define RELEASED(%0) \
  30. (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
  31.  
  32. public OnFilterScriptInit()
  33. {
  34. print("\n--------------------------------------");
  35. print("Animations");
  36. print("--------------------------------------\n");
  37. return 1;
  38. }
  39.  
  40. public OnFilterScriptExit()
  41. {
  42. return 1;
  43. }
  44.  
  45. #else
  46.  
  47. main()
  48. {
  49. print("\n----------------------------------");
  50. print("Animations");
  51. print("----------------------------------\n");
  52. }
  53.  
  54. #endif
  55.  
  56. public OnGameModeInit()
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnGameModeExit()
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerRequestClass(playerid, classid)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnPlayerConnect(playerid)
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnPlayerDisconnect(playerid, reason)
  77. {
  78. return 1;
  79. }
  80.  
  81. public OnPlayerSpawn(playerid)
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerDeath(playerid, killerid, reason)
  87. {
  88. return 1;
  89. }
  90.  
  91. public OnVehicleSpawn(vehicleid)
  92. {
  93. return 1;
  94. }
  95.  
  96. public OnVehicleDeath(vehicleid, killerid)
  97. {
  98. return 1;
  99. }
  100.  
  101. public OnPlayerText(playerid, text[])
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerCommandText(playerid, cmdtext[])
  107. {
  108. if (strcmp(cmdtext, "/relax", true)==0)
  109. {
  110. if (GetPlayerState(playerid)== 1)
  111. {
  112. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  113. ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  114. }
  115. return 1;
  116. }
  117. if (strcmp(cmdtext, "/handsup", true)==0)
  118. {
  119. if (GetPlayerState(playerid)== 1)
  120. {
  121. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  122. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  123. }
  124. return 1;
  125. }
  126. if (strcmp(cmdtext, "/bomb", true)==0)
  127. {
  128. if (GetPlayerState(playerid)== 1)
  129. {
  130. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  131. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  132. }
  133. return 1;
  134. }
  135. if (strcmp(cmdtext, "/robman", true)==0)
  136. {
  137. if (GetPlayerState(playerid)== 1)
  138. {
  139. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  140. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  141. }
  142. return 1;
  143. }
  144. if (strcmp(cmdtext, "/wank", true)==0)
  145. {
  146. if (GetPlayerState(playerid)== 1)
  147. {
  148. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  149. ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
  150. }
  151. return 1;
  152. }
  153. if (strcmp(cmdtext, "/crossarms", true)==0)
  154. {
  155. if (GetPlayerState(playerid)== 1)
  156. {
  157. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  158. ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
  159. }
  160. return 1;
  161. }
  162. if (strcmp(cmdtext, "/taichi", true)==0)
  163. {
  164. if (GetPlayerState(playerid)== 1)
  165. {
  166. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  167. ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
  168. }
  169. return 1;
  170. }
  171. if (strcmp(cmdtext, "/spank", true)==0)
  172. {
  173. if (GetPlayerState(playerid)== 1)
  174. {
  175. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  176. ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
  177. }
  178. return 1;
  179. }
  180. if (strcmp(cmdtext, "/wave", true)==0)
  181. {
  182. if (GetPlayerState(playerid)== 1)
  183. {
  184. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  185. ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
  186. }
  187. return 1;
  188. }
  189. if (strcmp(cmdtext, "/sick", true)==0)
  190. {
  191. if (GetPlayerState(playerid)== 1)
  192. {
  193. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  194. ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  195. }
  196. return 1;
  197. }
  198. if (strcmp(cmdtext, "/scared", true)==0)
  199. {
  200. if (GetPlayerState(playerid)== 1)
  201. {
  202. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  203. ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  204. }
  205. return 1;
  206. }
  207. if (strcmp(cmdtext, "/talk", true)==0)
  208. {
  209. if (GetPlayerState(playerid)== 1)
  210. {
  211. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  212. ApplyAnimation(playerid,"PED","IDLE_CHAT",1.800001, 1, 1, 1, 1, 13000);
  213. }
  214. return 1;
  215. }
  216. if (strcmp(cmdtext, "/kiss", true)==0)
  217. {
  218. if (GetPlayerState(playerid)== 1)
  219. {
  220. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  221. ApplyAnimation(playerid,"KISSING", "Grlfrd_Kiss_02", 1.800001, 1, 0, 0, 1, 600);
  222. }
  223. return 1;
  224. }
  225. if (strcmp(cmdtext, "/sit", true)==0)
  226. {
  227. if (GetPlayerState(playerid)== 1)
  228. {
  229. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  230. ApplyAnimation(playerid,"INT_OFFICE", "OFF_Sit_Bored_Loop", 1.800001, 1, 0, 0, 1, 600);
  231. }
  232. return 1;
  233. }
  234. if (strcmp(cmdtext, "/fucku", true)==0)
  235. {
  236. if (GetPlayerState(playerid)== 1)
  237. {
  238. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  239. ApplyAnimation(playerid,"ped", "fucku", 4.1, 0, 1, 1, 1, 1 );
  240. }
  241. return 1;
  242. }
  243. if (strcmp(cmdtext, "/cocaine", true)==0)
  244. {
  245. if (GetPlayerState(playerid)== 1)
  246. {
  247. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  248. ApplyAnimation(playerid,"CRACK", "crckdeth2", 1.800001, 1, 0, 0, 1, 600);
  249. }
  250. return 1;
  251. }
  252. if (strcmp(cmdtext, "/rocky", true)==0)
  253. {
  254. if (GetPlayerState(playerid)== 1)
  255. {
  256. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  257. ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox", 1.800001, 1, 0, 0, 1, 600);
  258. }
  259. return 1;
  260. }
  261. if (strcmp(cmdtext, "/smoke", true)==0)
  262. {
  263. if (GetPlayerState(playerid)== 1)
  264. {
  265. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  266. ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  267. }
  268. return 1;
  269. }
  270. if (strcmp("/beach", cmdtext, true, 10) == 0)
  271. {
  272. if (GetPlayerState(playerid)== 1)
  273. {
  274. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  275. ApplyAnimation(playerid,"BEACH","SitnWait_loop_W",4.1,0,1,1,1,1);
  276. }
  277. return 1;
  278. }
  279. if (strcmp("/lookout", cmdtext, true, 10) == 0)
  280. {
  281. if (GetPlayerState(playerid)== 1)
  282. {
  283. GameTextForPlayer(playerid,"Type /sync to stop, 3000, 1);
  284. ApplyAnimation(playerid,"ON_LOOKERS","lkup_in",4.1,0,1,1,1,1);
  285. }
  286. return 1;
  287. }
  288. if (strcmp("/circle", cmdtext, true, 10) == 0)
  289. {
  290. if (GetPlayerState(playerid)== 1)
  291. {
  292. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  293. ApplyAnimation(playerid,"CHAINSAW","CSAW_Hit_2",4.1,0,1,1,1,1);
  294. }
  295. return 1;
  296. }
  297. if (strcmp("/medic", cmdtext, true, 10) == 0)
  298. {
  299. if (GetPlayerState(playerid)== 1)
  300. {
  301. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  302. ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
  303. }
  304. return 1;
  305. }
  306. if (strcmp("/chat", cmdtext, true, 10) == 0)
  307. {
  308. if (GetPlayerState(playerid)== 1)
  309. {
  310. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  311. ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
  312. }
  313. return 1;
  314. }
  315. if (strcmp("/die", cmdtext, true, 10) == 0)
  316. {
  317. if (GetPlayerState(playerid)== 1)
  318. {
  319. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  320. ApplyAnimation(playerid,"PED","BIKE_fallR",4.1,0,1,1,1,1);
  321. }
  322. return 1;
  323. }
  324. if (strcmp("/slapa", cmdtext, true, 10) == 0)
  325. {
  326. if (GetPlayerState(playerid)== 1)
  327. {
  328. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  329. ApplyAnimation(playerid,"PED","BIKE_elbowL",4.1,0,1,1,1,1);
  330. }
  331. return 1;
  332. }
  333. if (strcmp("/rofl", cmdtext, true, 10) == 0)
  334. {
  335. if (GetPlayerState(playerid)== 1)
  336. {
  337. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  338. ApplyAnimation(playerid,"PED","Crouch_Roll_L",4.1,0,1,1,1,1);
  339. }
  340. return 1;
  341. }
  342. if (strcmp("/glitched", cmdtext, true, 10) == 0)
  343. {
  344. if (GetPlayerState(playerid)== 1)
  345. {
  346. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  347. ApplyAnimation(playerid,"TATTOOS","TAT_Sit_Out_O",4.1,0,1,1,1,1);
  348. }
  349. return 1;
  350. }
  351. if (strcmp("/fakefire", cmdtext, true, 10) == 0)
  352. {
  353. if (GetPlayerState(playerid)== 1)
  354. {
  355. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  356. ApplyAnimation(playerid,"SILENCED","SilenceCrouchfire",4.1,0,1,1,1,1);
  357. }
  358. return 1;
  359. }
  360. if (strcmp("/fart", cmdtext, true, 10) == 0)
  361. {
  362. if (GetPlayerState(playerid)== 1)
  363. {
  364. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  365. PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
  366. }
  367. return 1;
  368. }
  369. if (strcmp("/vomit", cmdtext, true) == 0)
  370. {
  371. if (GetPlayerState(playerid)== 1)
  372. {
  373. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  374. ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
  375. PlayerPlaySound(playerid, 1169, 0.0, 0.0, 0.0);
  376. }
  377. return 1;
  378. }
  379. if (strcmp("/drunk", cmdtext, true, 10) == 0)
  380. {
  381. if (GetPlayerState(playerid)== 1)
  382. {
  383. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  384. ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
  385. ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
  386. ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
  387. }
  388. return 1;
  389. }
  390. if (strcmp("/getin", cmdtext, true) == 0)
  391. {
  392. if (GetPlayerState(playerid)== 1)
  393. {
  394. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  395. ApplyAnimation(playerid,"NEVADA","NEVADA_getin",4.1,0,1,1,1,1);
  396. }
  397. return 1;
  398. }
  399. if (strcmp("/piss", cmdtext, true) == 0)
  400. {
  401. if (GetPlayerState(playerid)== 1)
  402. {
  403. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  404. SetPlayerSpecialAction(playerid, 68);
  405. }
  406. return 1;
  407. }
  408. if (strcmp("/funnywalk", cmdtext, true) == 0)
  409. {
  410. if (GetPlayerState(playerid)== 1)
  411. {
  412. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  413. ApplyAnimation(playerid,"WUZI","Wuzi_Walk",4.1,0,1,1,1,1);
  414. }
  415. return 1;
  416. }
  417. if (strcmp("/kickass", cmdtext, true) == 0)
  418. {
  419. if (GetPlayerState(playerid)== 1)
  420. {
  421. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  422. ApplyAnimation(playerid,"FIGHT_E","Hit_fightkick",4.1,0,1,1,1,1);
  423. }
  424. return 1;
  425. }
  426. if(strcmp("/cell", cmdtext, true) == 0)
  427. {
  428. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  429. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
  430. return 1;
  431. }
  432. if (strcmp("/laugh", cmdtext, true) == 0)
  433. {
  434. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  435. ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
  436. return 1;
  437. }
  438. if (strcmp("/anims", cmdtext, true) == 0)
  439. {
  440. #define DIALOG_ANIMS 1
  441. new string[1024];
  442. strcat(string, "{F3FF02}" "/relax | /scared | /sick | /wave | /spank | /taichi | /crossarms |\n", 1024);
  443. strcat(string, "{F3FF02}" "/wank | /kiss | /talk | /fucku | /cocaine | /rocky | /sit | /smoke |\n", 1024);
  444. strcat(string, "{F3FF02}" "/beach | /lookout | /circle | /medic | /chat | /die | /slapa | /rofl |\n", 1024);
  445. strcat(string, "{F3FF02}" "/glitched | /fakefire | /bomb | /robman | /handsup | /piss |\n", 1024);
  446. strcat(string, "{F3FF02}" "/getin | /skate | /cover | /fart | /vomit | /drunk |\n", 1024);
  447. strcat(string, "{F3FF02}" "/funnywalk | /kickass | /cell | /laugh | /eat | /injured |\n", 1024);
  448. strcat(string, "{F3FF02}" "/slapass | /laydown | /arrest | /laugh | /eat | /carjack ||", 1024);
  449. strcat(string, "{F3FF02}" "To Stop an Anim Press Aim_KEY", 1024);
  450. ShowPlayerDialog(playerid,DIALOG_ANIMS,DIALOG_STYLE_MSGBOX,"{FFAF00}" "Menu" "{FFAF00}" "Anims", string, "Ok", "Cancel");
  451. return 1;
  452. }
  453. if (strcmp("/eat", cmdtext, true) == 0)
  454. {
  455. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  456. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
  457. return 1;
  458. }
  459. if(strcmp("/injured", cmdtext, true) == 0)
  460. {
  461. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  462. ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
  463. return 1;
  464. }
  465. if (strcmp("/slapass", cmdtext, true) == 0)
  466. {
  467. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  468. ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
  469. return 1;
  470. }
  471. if (strcmp("/laydown", cmdtext, true) == 0)
  472. {
  473. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  474. ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
  475. return 1;
  476. }
  477. if (strcmp("/arrest", cmdtext, true) == 0)
  478. {
  479. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  480. ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
  481. return 1;
  482. }
  483. if(strcmp("/carjack", cmdtext, true) == 0)
  484. {
  485. GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
  486. ApplyAnimation(playerid,"PED","CAR_jackedLHS",4.0,0,1,1,1,0);
  487. return 1;
  488. }
  489. return 0;
  490. }
  491.  
  492. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  493. {
  494. return 1;
  495. }
  496.  
  497. public OnPlayerExitVehicle(playerid, vehicleid)
  498. {
  499. return 1;
  500. }
  501.  
  502. public OnPlayerStateChange(playerid, newstate, oldstate)
  503. {
  504. return 1;
  505. }
  506.  
  507. public OnPlayerEnterCheckpoint(playerid)
  508. {
  509. return 1;
  510. }
  511.  
  512. public OnPlayerLeaveCheckpoint(playerid)
  513. {
  514. return 1;
  515. }
  516.  
  517. public OnPlayerEnterRaceCheckpoint(playerid)
  518. {
  519. return 1;
  520. }
  521.  
  522. public OnPlayerLeaveRaceCheckpoint(playerid)
  523. {
  524. return 1;
  525. }
  526.  
  527. public OnRconCommand(cmd[])
  528. {
  529. return 1;
  530. }
  531.  
  532. public OnPlayerRequestSpawn(playerid)
  533. {
  534. return 1;
  535. }
  536.  
  537. public OnObjectMoved(objectid)
  538. {
  539. return 1;
  540. }
  541.  
  542. public OnPlayerObjectMoved(playerid, objectid)
  543. {
  544. return 1;
  545. }
  546.  
  547. public OnPlayerPickUpPickup(playerid, pickupid)
  548. {
  549. return 1;
  550. }
  551.  
  552. public OnVehicleMod(playerid, vehicleid, componentid)
  553. {
  554. return 1;
  555. }
  556.  
  557. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  558. {
  559. return 1;
  560. }
  561.  
  562. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  563. {
  564. return 1;
  565. }
  566.  
  567. public OnPlayerSelectedMenuRow(playerid, row)
  568. {
  569. return 1;
  570. }
  571.  
  572. public OnPlayerExitedMenu(playerid)
  573. {
  574. return 1;
  575. }
  576.  
  577. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  578. {
  579. return 1;
  580. }
  581.  
  582. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  583. {
  584. return 1;
  585. }
  586.  
  587. public OnRconLoginAttempt(ip[], password[], success)
  588. {
  589. return 1;
  590. }
  591.  
  592. public OnPlayerUpdate(playerid)
  593. {
  594. return 1;
  595. }
  596.  
  597. public OnPlayerStreamIn(playerid, forplayerid)
  598. {
  599. return 1;
  600. }
  601.  
  602. public OnPlayerStreamOut(playerid, forplayerid)
  603. {
  604. return 1;
  605. }
  606.  
  607. public OnVehicleStreamIn(vehicleid, forplayerid)
  608. {
  609. return 1;
  610. }
  611.  
  612. public OnVehicleStreamOut(vehicleid, forplayerid)
  613. {
  614. return 1;
  615. }
  616.  
  617. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  618. {
  619. return 1;
  620. }
  621.  
  622. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  623. {
  624. return 1;
  625. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement