Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================================
- // << Scripted By Ultraz >>
- // << Dont Remove Credits >>
- // << Holding Objects System >>
- // << Still Updating >>
- // << Thanks to Oktokt for His Help >>
- //============================================================================
- #include <a_samp>
- #define hold 1600
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/hold", true) == 0)
- {
- 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");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == hold)
- {
- if(response)
- {
- if(listitem==0)
- {
- SetPlayerAttachedObject( playerid, 0, 19065, 2, 0.121128, 0.023578, 0.001139, 222.540847, 90.773872, 211.130859, 1.098305, 1.122310, 1.106640 ); // SantaHat
- }
- if(listitem==1)
- {
- SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.329150, -0.072101, 0.156082, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot1
- }
- if(listitem==2)
- {
- SetPlayerAttachedObject( playerid, 0, 19078, 1, -1.097527, -0.348305, -0.008029, 0.000000, 0.000000, 0.000000, 8.073966, 8.073966, 8.073966 );
- 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
- }
- if(listitem==3)
- {
- 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
- }
- if(listitem==4)
- {
- 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
- }
- if(listitem==5)
- {
- 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
- }
- if(listitem==6)
- {
- 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
- }
- if(listitem==7)
- {
- 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
- }
- if(listitem==8)
- {
- 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]
- }
- if(listitem==9)
- {
- 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
- }
- if(listitem==10)
- {
- 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
- }
- if(listitem==11)
- {
- SetPlayerAttachedObject( playerid, 0, 19332, 1, 0.037538, 0.000000, -0.020199, 350.928314, 89.107200, 180.974227, 1.000000, 1.000000, 1.000000 );
- SetPlayerSpecialAction(playerid, 2);
- }
- if(listitem==12)
- {
- SetPlayerAttachedObject( playerid, 0, 1114, 1, 0.138007, 0.002714, -0.157366, 350.942352, 16.794704, 32.683506, 0.791829, 0.471535, 1.032759 );
- SetPlayerAttachedObject( playerid, 1, 1114, 1, 0.138007, 0.002714, 0.064523, 342.729064, 354.099456, 32.369094, 0.791829, 0.471535, 1.032759 );
- }
- if(listitem==13)
- {
- SetPlayerAttachedObject( playerid, 0, 18645, 2, 0.017478, 0.051500, 0.003912, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
- SetPlayerAttachedObject( playerid, 1, 18690, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
- SetPlayerAttachedObject( playerid, 2, 18716, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
- }
- if(listitem==14)
- {
- SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
- SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
- SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
- SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
- SetPlayerAttachedObject( playerid, 4, 18965, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000 );
- }
- if(listitem==15)
- {
- 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
- 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
- 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
- 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
- }
- if(listitem==16)//Close
- {
- for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i);
- }
- }
- return 1;
- }
- return 0;
- }
- //---- End of the Script -----------------
- // Wait me Sooon ---------
- // Ultraz----------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement