Advertisement
Guest User

Ultraz Holding Objects System

a guest
Sep 1st, 2016
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. //============================================================================
  2. // << Scripted By Ultraz >>
  3. // << Dont Remove Credits >>
  4. // << Holding Objects System >>
  5. // << Still Updating >>
  6. // << Thanks to Oktokt for His Help >>
  7. //============================================================================
  8.  
  9.  
  10. #include <a_samp>
  11.  
  12.  
  13. #define hold 1600
  14.  
  15. public OnPlayerCommandText(playerid, cmdtext[])
  16. {
  17. if(strcmp(cmdtext, "/hold", true) == 0)
  18. {
  19. ShowPlayerDialog(playerid,hold,DIALOG_STYLE_LIST,"Hold Objects","SantaHat \nParrot \nParrot-Man \nHippo \nMotorCycleHelmet \nCapBack \nGlasses \nSmokeFlare \nSphere1 \nSphere2 \nSphere3 \nBalon \nIron \nAlien \nIcread \n{ffff12}Weaponaizer \nRemove Hold Objects","Ok","Close");
  20. return 1;
  21. }
  22. return 0;
  23. }
  24. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  25. {
  26. if(dialogid == hold)
  27. {
  28. if(response)
  29. {
  30. if(listitem==0)
  31. {
  32. SetPlayerAttachedObject( playerid, 0, 19065, 2, 0.121128, 0.023578, 0.001139, 222.540847, 90.773872, 211.130859, 1.098305, 1.122310, 1.106640 ); // SantaHat
  33. }
  34. if(listitem==1)
  35. {
  36. SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.329150, -0.072101, 0.156082, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot1
  37. }
  38. if(listitem==2)
  39. {
  40. SetPlayerAttachedObject( playerid, 0, 19078, 1, -1.097527, -0.348305, -0.008029, 0.000000, 0.000000, 0.000000, 8.073966, 8.073966, 8.073966 );
  41. SetPlayerAttachedObject( playerid, 0, 19078, 1, -1.097527, -0.348305, -0.008029, 0.000000, 0.000000, 0.000000, 8.073966, 8.073966, 8.073966 ); // TheParrot1 - parrot man
  42. }
  43. if(listitem==3)
  44. {
  45. SetPlayerAttachedObject( playerid, 0, 1371, 1, 0.037538, 0.000000, -0.020199, 350.928314, 89.107200, 180.974227, 1.000000, 1.000000, 1.000000 ); // CJ_HIPPO_BIN - /hippo
  46. }
  47. if(listitem==4)
  48. {
  49. SetPlayerAttachedObject( playerid, 0, 18645, 2, 0.079577, 0.016865, 0.005709, 171.620758, 93.131149, 280.057983, 1.000000, 1.000000, 1.000000 ); // MotorcycleHelmet1 - casca
  50. }
  51. if(listitem==5)
  52. {
  53. SetPlayerAttachedObject( playerid, 0, 18939, 2, 0.147825, 0.010626, -0.004892, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // CapBack1 - Sapca RuTeN
  54. }
  55. if(listitem==6)
  56. {
  57. SetPlayerAttachedObject( playerid, 0, 19006, 2, 0.109624, 0.029350, -0.000269, 271.726898, 86.017311, 177.508102, 1.000000, 1.000000, 1.000000 ); // GlassesType1 - red
  58. }
  59. if(listitem==7)
  60. {
  61. SetPlayerAttachedObject( playerid, 0, 18728, 2, 0.134301, 1.475258, -0.192459, 82.870338, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // smoke_flare - are ea nume
  62. }
  63. if(listitem==8)
  64. {
  65. SetPlayerAttachedObject( playerid, 0, 18843, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, -0.027590, -0.027590, -0.027590 ); // GlassSphere1 - are nume]
  66. }
  67. if(listitem==9)
  68. {
  69. SetPlayerAttachedObject( playerid, 0, 18844, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, -0.027590, -0.027590, -0.027590 ); // WaterUVAnimSphere1 - are nume
  70. }
  71. if(listitem==10)
  72. {
  73. SetPlayerAttachedObject( playerid, 0, 18845, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, -0.027590, -0.027590, -0.027590 ); // RTexturesphere - are nume
  74. }
  75. if(listitem==11)
  76. {
  77. SetPlayerAttachedObject( playerid, 0, 19332, 1, 0.037538, 0.000000, -0.020199, 350.928314, 89.107200, 180.974227, 1.000000, 1.000000, 1.000000 );
  78. SetPlayerSpecialAction(playerid, 2);
  79. }
  80. if(listitem==12)
  81. {
  82. SetPlayerAttachedObject( playerid, 0, 1114, 1, 0.138007, 0.002714, -0.157366, 350.942352, 16.794704, 32.683506, 0.791829, 0.471535, 1.032759 );
  83. SetPlayerAttachedObject( playerid, 1, 1114, 1, 0.138007, 0.002714, 0.064523, 342.729064, 354.099456, 32.369094, 0.791829, 0.471535, 1.032759 );
  84. }
  85. if(listitem==13)
  86. {
  87. SetPlayerAttachedObject( playerid, 0, 18645, 2, 0.017478, 0.051500, 0.003912, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
  88. SetPlayerAttachedObject( playerid, 1, 18690, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
  89. SetPlayerAttachedObject( playerid, 2, 18716, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
  90. }
  91. if(listitem==14)
  92. {
  93. SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  94. SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  95. SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  96. SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  97. SetPlayerAttachedObject( playerid, 4, 18965, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000 );
  98. }
  99. if(listitem==15)
  100. {
  101. SetPlayerAttachedObject( playerid, 0, 369, 2, -0.183602, 0.016535, -0.039228, 1.763265, 356.138977, 355.971618, 3.034477, 3.000000, 3.000000 ); // irgoggles - ON FACE
  102. SetPlayerAttachedObject( playerid, 1, 356, 6, 0.013610, -0.021393, -0.144862, 2.354303, 354.413848, 0.219168, 3.034477, 3.000000, 3.000000 ); // m4 - M4 HAND
  103. SetPlayerAttachedObject( playerid, 2, 359, 1, 0.000000, -0.232854, -0.241260, 354.348602, 29.348077, 357.846679, 2.000000, 2.000000, 2.000000 ); // rocketla - ROCKETBACK
  104. SetPlayerAttachedObject( playerid, 3, 363, 7, 0.176143, 0.281574, -0.120761, 79.200103, 267.183990, 337.320526, 1.200000, 1.200000, 1.200000 ); // satchel - packet
  105. }
  106. if(listitem==16)//Close
  107. {
  108. for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i);
  109. }
  110. }
  111. return 1;
  112. }
  113. return 0;
  114. }
  115.  
  116. //---- End of the Script -----------------
  117. // Wait me Sooon ---------
  118. // Ultraz----------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement