Advertisement
Shanidzee

Untitled

Apr 11th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. /*
  2.  
  3. - Special WWW.VERBY.GE
  4. - System Scripted By Shanidze Nodo (Tommy_Kallashnikov)
  5. - Lest Update 12.04.2020
  6.  
  7. - Eternity Role Play | Client 0.3.7
  8.  
  9. */
  10. /* --------NEWS---------- */
  11. static eternityrpofficial[MAX_PLAYERS];
  12.  
  13. /* ------ STOCK ------------ */
  14. stock GetWeaponModel(weaponid)
  15. {
  16. switch(weaponid)
  17. {
  18. case 1:
  19. return 331;
  20.  
  21. case 2..8:
  22. return weaponid+331;
  23.  
  24. case 9:
  25. return 341;
  26.  
  27. case 10..15:
  28. return weaponid+311;
  29.  
  30. case 16..18:
  31. return weaponid+326;
  32.  
  33. case 22..29:
  34. return weaponid+324;
  35.  
  36. case 30,31:
  37. return weaponid+325;
  38.  
  39. case 32:
  40. return 372;
  41.  
  42. case 46:
  43. return 371;
  44. }
  45. return 0;
  46. }
  47. /*------------------ OnPlayerUpdate ------------------*/
  48. {
  49. if(GetTickCount() - eternityrpofficial[playerid] > 113)
  50. {
  51. new weaponid[13],weaponammo[13],pArmedWeapon;
  52. pArmedWeapon = GetPlayerWeapon(playerid);
  53. GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]);
  54. GetPlayerWeaponData(playerid,2,weaponid[2],weaponammo[2]);
  55. GetPlayerWeaponData(playerid,4,weaponid[4],weaponammo[4]);
  56. GetPlayerWeaponData(playerid,5,weaponid[5],weaponammo[5]);
  57. GetPlayerWeaponData(playerid,7,weaponid[7],weaponammo[7]);
  58. if(weaponid[1] && weaponammo[1] > 0)
  59. {
  60. if(pArmedWeapon != weaponid[1])
  61. {
  62. if(!IsPlayerAttachedObjectSlotUsed(playerid,0))
  63. {
  64. SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),1, 0.199999, -0.139999, 0.030000, 0.500007, -115.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  65. }
  66. }
  67. else
  68. {
  69. if(IsPlayerAttachedObjectSlotUsed(playerid,0))
  70. {
  71. RemovePlayerAttachedObject(playerid,0);
  72. }
  73. }
  74. }
  75. else if(IsPlayerAttachedObjectSlotUsed(playerid,0))
  76. {
  77. RemovePlayerAttachedObject(playerid,0);
  78. }
  79. if(weaponid[2] && weaponammo[2] > 0)
  80. {
  81. if(pArmedWeapon != weaponid[2])
  82. {
  83. if(!IsPlayerAttachedObjectSlotUsed(playerid,1))
  84. {
  85. SetPlayerAttachedObject(playerid,1,GetWeaponModel(weaponid[2]),8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  86. }
  87. }
  88. else
  89. {
  90. if(IsPlayerAttachedObjectSlotUsed(playerid,1))
  91. {
  92. RemovePlayerAttachedObject(playerid,1);
  93. }
  94. }
  95. }
  96. else if(IsPlayerAttachedObjectSlotUsed(playerid,1))
  97. {
  98. RemovePlayerAttachedObject(playerid,1);
  99. }
  100. if(weaponid[4] && weaponammo[4] > 0)
  101. {
  102. if(pArmedWeapon != weaponid[4])
  103. {
  104. if(!IsPlayerAttachedObjectSlotUsed(playerid,2))
  105. {
  106. SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),7, 0.000000, -0.100000, -0.080000, -95.000000, -10.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  107. }
  108. }
  109. else
  110. {
  111. if(IsPlayerAttachedObjectSlotUsed(playerid,2))
  112. {
  113. RemovePlayerAttachedObject(playerid,2);
  114. }
  115. }
  116. }
  117. else if(IsPlayerAttachedObjectSlotUsed(playerid,2))
  118. {
  119. RemovePlayerAttachedObject(playerid,2);
  120. }
  121. if(weaponid[5] && weaponammo[5] > 0)
  122. {
  123. if(pArmedWeapon != weaponid[5])
  124. {
  125. if(!IsPlayerAttachedObjectSlotUsed(playerid,3))
  126. {
  127. SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[5]),1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  128. }
  129. }
  130. else
  131. {
  132. if(IsPlayerAttachedObjectSlotUsed(playerid,3))
  133. {
  134. RemovePlayerAttachedObject(playerid,3);
  135. }
  136. }
  137. }
  138. else if(IsPlayerAttachedObjectSlotUsed(playerid,3))
  139. {
  140. RemovePlayerAttachedObject(playerid,3);
  141. }
  142. if(weaponid[7] && weaponammo[7] > 0)
  143. {
  144. if(pArmedWeapon != weaponid[7])
  145. {
  146. if(!IsPlayerAttachedObjectSlotUsed(playerid,4))
  147. {
  148. SetPlayerAttachedObject(playerid,4,GetWeaponModel(weaponid[7]),1,-0.100000, 0.000000, -0.100000, 84.399932, 112.000000, 10.000000, 1.099999, 1.000000, 1.000000);
  149. }
  150. }
  151. else
  152. {
  153. if(IsPlayerAttachedObjectSlotUsed(playerid,4))
  154. {
  155. RemovePlayerAttachedObject(playerid,4);
  156. }
  157. }
  158. }
  159. else if(IsPlayerAttachedObjectSlotUsed(playerid,4))
  160. {
  161. RemovePlayerAttachedObject(playerid,4);
  162. }
  163. eternityrpofficial[playerid] = GetTickCount();
  164. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement