Advertisement
Guest User

Namaz time

a guest
May 1st, 2020
640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. #include <a_samp>
  2. #include <YSI\y_va>
  3. #include <YSI\y_timers>
  4. #include "../include/gl_messages.inc"
  5.  
  6. new klanja[MAX_PLAYERS];
  7.  
  8. static const _AnimsEnum[][] =
  9. {
  10. "COP_AMBIENT", "FAT", "RIOT" , "ped", "SUNBATHE"
  11. };
  12.  
  13. #if defined FILTERSCRIPT
  14. public OnFilterScriptInit()
  15. {
  16. print("\n--------------------------------------");
  17. print(" Filterscript by Kleo ");
  18. print("--------------------------------------\n");
  19. return 1;
  20. }
  21.  
  22. public OnFilterScriptExit()
  23. {
  24. return 1;
  25. }
  26. #endif
  27.  
  28. public OnPlayerConnect(playerid)
  29. {
  30. for(new anims = 0; anims < sizeof(_AnimsEnum); anims ++)
  31. {
  32. ApplyAnimation(playerid, _AnimsEnum[anims], "null", 4.0, 0, 0, 0, 0, 0, 1);
  33. }
  34. klanja[playerid] = 0;
  35. return 1;
  36. }
  37. YCMD:namaz(playerid, params[],help)
  38. {
  39. if(klanja[playerid] == 1) return SendClientMessage(playerid,-1,"Vec klanjas!"); klanja[playerid] = 1;
  40. TalkMessage(TALK_DISTANCE, playerid, "", "NEVEJTU EN USALLIJE LILLAHI TEALA SALATE SUNNETIL-FEDZRI, EDAEN MUSTAKBILEL-KIBLETI, ALLAHU EKBER");
  41. defer first(playerid);
  42. return 1;
  43. }
  44. timer first[2000](playerid)
  45. {
  46. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
  47. defer second(playerid);
  48. }
  49. timer second[800](playerid)
  50. {
  51. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  52. ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_watch", 4.0, 0, 0, 0, 1, 0, 0);
  53. defer third(playerid);
  54. }
  55. timer third[7000](playerid)
  56. {
  57. ApplyAnimation(playerid, "FAT", "IDLE_tired", 4.0, 1, 0, 0, 0, 0);
  58. defer fourth(playerid);
  59. }
  60. timer fourth[2000](playerid)
  61. {
  62. ApplyAnimation(playerid, "RIOT", "RIOT_challenge", 4.0, 0, 0, 0, 1, 0, 0);
  63. defer fifth(playerid);
  64. }
  65. timer fifth[3000](playerid)
  66. {
  67. ApplyAnimation(playerid, "ped", "cower", 4.0, 0, 0, 0, 0, 0);
  68. defer sixtha(playerid);
  69. }
  70. timer sixtha[800](playerid)
  71. {
  72. ApplyAnimation(playerid, "SUNBATHE", "ParkSit_M_IdleB", 4.0, 0, 0, 0, 0, 0);
  73. defer sixthb(playerid);
  74. return 1;
  75. }
  76. timer sixthb[1000](playerid)
  77. {
  78. ApplyAnimation(playerid, "ped", "cower", 4.0, 0, 0, 0, 0, 0);
  79. defer seventh(playerid);
  80. return 1;
  81. }
  82. timer seventh[3000](playerid)
  83. {
  84. ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_think", 4.0, 0, 0, 0, 1, 0, 0);
  85. defer eight(playerid);
  86. return 1;
  87. }
  88. timer eight[7000](playerid)
  89. {
  90. ApplyAnimation(playerid, "FAT", "IDLE_tired", 4.0, 1, 0, 0, 0, 0);
  91. defer nine(playerid);
  92. }
  93. timer nine[2000](playerid)
  94. {
  95. ApplyAnimation(playerid, "RIOT", "RIOT_challenge", 4.0, 0, 0, 0, 1, 0, 0);
  96. defer ten(playerid);
  97. }
  98. timer ten[2000](playerid)
  99. {
  100. ApplyAnimation(playerid, "ped", "cower", 4.0, 0, 0, 0, 0, 0);
  101. defer eleven(playerid);
  102. return 1;
  103. }
  104. timer eleven[800](playerid)
  105. {
  106. ApplyAnimation(playerid, "SUNBATHE", "ParkSit_M_IdleB", 4.0, 0, 0, 0, 0, 0);
  107. defer twelve(playerid);
  108. return 1;
  109. }
  110. timer twelve[1000](playerid)
  111. {
  112. ApplyAnimation(playerid, "ped", "cower", 4.0, 0, 0, 0, 0, 0);
  113. defer trines(playerid);
  114. return 1;
  115. }
  116. timer trines[800](playerid)
  117. {
  118. ApplyAnimation(playerid, "SUNBATHE", "ParkSit_M_IdleB", 4.0, 0, 0, 0, 0, 0);
  119. defer fourthteen(playerid);
  120. return 1;
  121. }
  122.  
  123. timer fourthteen[5000](playerid)
  124. {
  125. ClearAnimations(playerid); klanja[playerid] = 0;
  126. return 1;
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement