Fk... Posted August 3, 2011 Report Share Posted August 3, 2011 Am o problema la un hold si cand dau pe unhold in dialog mi se inchide sv[pawn]for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i);[/pawn] Link to comment Share on other sites More sharing options...
IstuntmanI Posted August 3, 2011 Report Share Posted August 3, 2011 Da-ne tot dialogul. Link to comment Share on other sites More sharing options...
Fk... Posted August 3, 2011 Author Report Share Posted August 3, 2011 [pawn]if(strcmp(cmdtext, "/hold", true) == 0){ ShowPlayerDialog(playerid,hold,DIALOG_STYLE_LIST,"Hold!","{00CCFF}SantaHat \n{00CCFF}Parrot \n{00CCFF}ParrotMan \n{00CCFF}Hippo \n{00CCFF}MotorcycleHelmet \n{00CCFF}CapBack \n{00CCFF}Glasses \n{00CCFF}SmokeFlare \n{00CCFF}Sphere1 \n{00CCFF}Sphere2 \n{00CCFF}Sphere3 \nNext","Ok","Close"); return 1;}if(dialogid==hold) { if(response) { if(listitem==0)//SantaHat { 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)//Parrot { 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)//Parrot-Man { 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)//Hippo { 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)//Casca { 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)//Sapca { 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)//Glasses { 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)//SmokeFlare { 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)//Sphere1 { 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)//Sphere2 { 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)//Sphere3 { 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)//NEXT { ShowPlayerDialog(playerid,hold2,DIALOG_STYLE_LIST,"Hold!","{00CCFF}Briefcase \n{00CCFF}MoneyBag \n{00CCFF}Shark \n{00CCFF}Dolphin \n{00CCFF}CluckinBellHat \n{00CCFF}BeachBall \n{00CCFF}BasketBall \n{00CCFF}Sa-Mp Logo \n{00CCFF}BigCesar \n{00CCFF}Snow \nBack \n{00FF00}Un-Hold","Ok","Close"); } } return 1; } if(dialogid==hold2) { if(response) { if(listitem==0)// { SetPlayerAttachedObject( playerid, 0, 1210, 6, 0.259532, -0.043030, -0.009978, 85.185333, 271.380615, 253.650283, 1.000000, 1.000000, 1.000000 ); // briefcase - briefcase } if(listitem==1)// { SetPlayerAttachedObject( playerid, 0, 1550, 15, 0.016491, 0.205742, -0.208498, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // CJ_MONEY_BAG - money } if(listitem==2)// { SetPlayerAttachedObject( playerid, 0, 1608, 1, 0.201047, -1.839761, -0.010739, 0.000000, 90.005447, 0.000000, 1.000000, 1.000000, 1.000000 ); // shark - shark } if(listitem==3)// { SetPlayerAttachedObject( playerid, 0, 1607, 1, 0.000000, 0.000000, 0.000000, 0.000000, 86.543479, 0.000000, 1.000000, 1.000000, 1.000000 ); // dolphin - /dolphin } if(listitem==4)// { SetPlayerAttachedObject( playerid, 0, 19137, 2, 0.110959, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // CluckinBellHat1 - 7 } if(listitem==5)// { SetPlayerAttachedObject( playerid, 0, 1598, 2, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // beachball - are nume } if(listitem==6)// { SetPlayerAttachedObject( playerid, 0, 2114, 2, 0.043076, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // basketball - basket } if(listitem==7)// { SetPlayerAttachedObject( playerid, 0, 18749, 2, 0.264992, 0.043229, -0.004249, 0.000000, 87.368362, 165.130233, 1.000000, 1.000000, 1.000000 ); // SAMPLogoSmall - 9 } if(listitem==8)// { SetPlayerAttachedObject( playerid, 0, 18846, 1, 1.271241, 0.000000, 0.010044, 0.000000, 87.853263, 184.341857, 0.502093, 0.502093, 0.502093 ); // BigCesar - are nume } if(listitem==9)// { SetPlayerAttachedObject( playerid, 0, 18864, 1, 0.000000, -4.498021, 3.042705, 0.000000, 91.647048, 40.392372, 1.000000, 1.000000, 1.000000 ); // FakeSnow1 - are nume } if(listitem==10)//back { ShowPlayerDialog(playerid,hold,DIALOG_STYLE_LIST,"Hold!","{00CCFF}SantaHat \n{00CCFF}Parrot \n{00CCFF}ParrotMan \n{00CCFF}Hippo \n{00CCFF}MotorcycleHelmet \n{00CCFF}CapBack \n{00CCFF}Glasses \n{00CCFF}SmokeFlare \n{00CCFF}Sphere1 \n{00CCFF}Sphere2 \n{00CCFF}Sphere3 \nNext","Ok","Close"); } if(listitem==11)//Unhold { for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i); } } return 1; }[/pawn] Link to comment Share on other sites More sharing options...
Question
Fk...
Am o problema la un hold si cand dau pe unhold in dialog mi se inchide sv
[pawn]for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i);[/pawn]
Link to comment
Share on other sites
2 answers to this question
Recommended Posts