Advertisement
itsDearesT

objetos

Sep 20th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 18.80 KB | None | 0 0
  1. //Player Attachments system by Excel
  2. //==============================================================================
  3. #include <a_samp>
  4. #include <mSelection>
  5. #include <sscanf2>
  6. #include <dini>
  7. #include <zcmd>
  8. //==============================================================================
  9. #define DIALOG_ATTACH_INDEX             13500
  10. #define DIALOG_ATTACH_INDEX_SELECTION   DIALOG_ATTACH_INDEX+1
  11. #define DIALOG_ATTACH_EDITREPLACE       DIALOG_ATTACH_INDEX+2
  12. #define DIALOG_ATTACH_MODEL_SELECTION   DIALOG_ATTACH_INDEX+3
  13. #define DIALOG_ATTACH_BONE_SELECTION    DIALOG_ATTACH_INDEX+4
  14. #define DIALOG_ATTACH_OBJECT_SELECTION  DIALOG_ATTACH_INDEX+5
  15. #define DIALOG_ATTACH_OBJECT2_SELECTION DIALOG_ATTACH_INDEX+6
  16. //==============================================================================
  17. #pragma tabsize 0
  18. //==============================================================================
  19. #define MAX_OSLOTS  MAX_PLAYER_ATTACHED_OBJECTS
  20. //==============================================================================
  21. #define         COL_WHITE       "{FFFFFF}"
  22. #define         COL_BLACK       "{0E0101}"
  23. #define         COL_GREY        "{C3C3C3}"
  24. #define         COL_GREEN       "{6EF83C}"
  25. #define         COL_RED         "{F81414}"
  26. #define         COL_YELLOW      "{F3FF02}"
  27. #define         COL_ORANGE      "{FFAF00}"
  28. #define         COL_LIME        "{B7FF00}"
  29. #define         COL_CYAN        "{00FFEE}"
  30. #define         COL_BLUE        "{0049FF}"
  31. #define         COL_MAGENTA     "{F300FF}"
  32. #define         COL_VIOLET      "{B700FF}"
  33. #define         COL_PINK        "{FF00EA}"
  34. #define         COL_MARONE      "{A90202}"
  35. //==============================================================================
  36. new AttachmentObjectsList[] = {
  37. 18632,
  38. 18633,
  39. 18634,
  40. 18635,
  41. 18636,
  42. 18637,
  43. 18638,
  44. 18639,
  45. 18640,
  46. 18975,
  47. 19136,
  48. 19274,
  49. 18641,
  50. 18642,
  51. 18643,
  52. 18644,
  53. 18645,
  54. 18865,
  55. 18866,
  56. 18867,
  57. 18868,
  58. 18869,
  59. 18870,
  60. 18871,
  61. 18872,
  62. 18873,
  63. 18874,
  64. 18875,
  65. 18890,
  66. 18891,
  67. 18892,
  68. 18893,
  69. 18894,
  70. 18895,
  71. 18896,
  72. 18897,
  73. 18898,
  74. 18899,
  75. 18900,
  76. 18901,
  77. 18902,
  78. 18903,
  79. 18904,
  80. 18905,
  81. 18906,
  82. 18907,
  83. 18908,
  84. 18909,
  85. 18910,
  86. 18911,
  87. 18912,
  88. 18913,
  89. 18914,
  90. 18915,
  91. 18916,
  92. 18917,
  93. 18918,
  94. 18919,
  95. 18920,
  96. 18921,
  97. 18922,
  98. 18923,
  99. 18924,
  100. 18925,
  101. 18926,
  102. 18927,
  103. 18928,
  104. 18929,
  105. 18930,
  106. 18931,
  107. 18932,
  108. 18933,
  109. 18934,
  110. 18935,
  111. 18936,
  112. 18937,
  113. 18938,
  114. 18939,
  115. 18940,
  116. 18941,
  117. 18942,
  118. 18943,
  119. 18944,
  120. 18945,
  121. 18946,
  122. 18947,
  123. 18948,
  124. 18949,
  125. 18950,
  126. 18951,
  127. 18952,
  128. 18953,
  129. 18954,
  130. 18955,
  131. 18956,
  132. 18957,
  133. 18958,
  134. 18959,
  135. 18960,
  136. 18961,
  137. 18962,
  138. 18963,
  139. 18964,
  140. 18965,
  141. 18966,
  142. 18967,
  143. 18968,
  144. 18969,
  145. 18970,
  146. 18971,
  147. 18972,
  148. 18973,
  149. 18974,
  150. 18976,
  151. 18977,
  152. 18978,
  153. 18979,
  154. 19006,
  155. 19007,
  156. 19008,
  157. 19009,
  158. 19010,
  159. 19011,
  160. 19012,
  161. 19013,
  162. 19014,
  163. 19015,
  164. 19016,
  165. 19017,
  166. 19018,
  167. 19019,
  168. 19020,
  169. 19021,
  170. 19022,
  171. 19023,
  172. 19024,
  173. 19025,
  174. 19026,
  175. 19027,
  176. 19028,
  177. 19029,
  178. 19030,
  179. 19031,
  180. 19032,
  181. 19033,
  182. 19034,
  183. 19035,
  184. 19036,
  185. 19037,
  186. 19038,
  187. 19039,
  188. 19040,
  189. 19041,
  190. 19042,
  191. 19043,
  192. 19044,
  193. 19045,
  194. 19046,
  195. 19047,
  196. 19048,
  197. 19049,
  198. 19050,
  199. 19051,
  200. 19052,
  201. 19053,
  202. 19085,
  203. 19086,
  204. 19090,
  205. 19091,
  206. 19092,
  207. 19093,
  208. 19094,
  209. 19095,
  210. 19096,
  211. 19097,
  212. 19098,
  213. 19099,
  214. 19100,
  215. 19101,
  216. 19102,
  217. 19103,
  218. 19104,
  219. 19105,
  220. 19106,
  221. 19107,
  222. 19108,
  223. 19109,
  224. 19110,
  225. 19111,
  226. 19112,
  227. 19113,
  228. 19114,
  229. 19115,
  230. 19116,
  231. 19117,
  232. 19118,
  233. 19119,
  234. 19120,
  235. 19137,
  236. 19138,
  237. 19139,
  238. 19140,
  239. 19141,
  240. 19142,
  241. 19160,
  242. 19161,
  243. 19162,
  244. 19163,
  245. 19317,
  246. 19318,
  247. 19319,
  248. 19330,
  249. 19331,
  250. 19346,
  251. 19347,
  252. 19348,
  253. 19349,
  254. 19350,
  255. 19351,
  256. 19352,
  257. 19487,
  258. 19488,
  259. 19513,
  260. 19515,
  261. 331,
  262. 333,
  263. 334,
  264. 335,
  265. 336,
  266. 337,
  267. 338,
  268. 339,
  269. 341,
  270. 321,
  271. 322,
  272. 323,
  273. 324,
  274. 325,
  275. 326,
  276. 343,
  277. 346,
  278. 347,
  279. 348,
  280. 349,
  281. 350,
  282. 351,
  283. 352,
  284. 353,
  285. 355,
  286. 356,
  287. 372,
  288. 357,
  289. 358,
  290. 361,
  291. 363,
  292. 364,
  293. 365,
  294. 366,
  295. 367,
  296. 368,
  297. 369,
  298. 371
  299. };
  300. //==============================================================================
  301. new AttachmentBones[][24] = {
  302. {"Columna"},
  303. {"Cabeza"},
  304. {"Hombro Izquierdo"},
  305. {"Hombro Derecho"},
  306. {"Mano Izquierda"},
  307. {"Mano Derecha"},
  308. {"Muslo Izquierdo"},
  309. {"Muslo Derecho"},
  310. {"Pie Izquierdo"},
  311. {"Pie Derecho"},
  312. {"Pantorrilla Izquierda"},
  313. {"Pantorrilla Derecha"},
  314. {"Antebrazo Izquierdo"},
  315. {"Antebrazo Derecho"},
  316. {"Clavícula Izquierda"},
  317. {"Clavícula Derecha"},
  318. {"Cuello"},
  319. {"Mandíbula"}
  320. };
  321. //==============================================================================
  322. CMD:o(playerid,params[])
  323. {
  324.         new string[128];
  325.         new dialog[500];
  326.         for(new x;x<MAX_OSLOTS;x++)
  327.         {
  328.         if(IsPlayerAttachedObjectSlotUsed(playerid, x))
  329.                 {       format(string, sizeof(string), ""COL_WHITE"Espacio:%d :: "COL_GREEN"Usado\n", x);    }
  330.                 else format(string, sizeof(string), ""COL_WHITE"Espacio:%d\n", x);
  331.                 strcat(dialog,string);
  332.         }
  333.         ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST,"Objetos adjunto al jugador: (Seleccione un espacio)", dialog, "Seleccionar", "Cerrar(X)");
  334.         return 1;
  335. }
  336. CMD:att(playerid,params[])
  337. {
  338.         return cmd_o(playerid,params);
  339. }
  340. CMD:attachments(playerid,params[])
  341. {
  342.         return cmd_o(playerid,params);
  343. }
  344. //==============================================================================
  345. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  346. {
  347.     switch(dialogid)
  348.     {
  349.         case DIALOG_ATTACH_INDEX_SELECTION:
  350.         {
  351.             if(response)
  352.             {
  353.                 if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
  354.                 {
  355.                     ShowPlayerDialog(playerid, DIALOG_ATTACH_EDITREPLACE, DIALOG_STYLE_MSGBOX, \
  356.                     "Objetos adjunto al jugador: (Eliminar/Editar)", ""COL_WHITE"Seguro de que quieres editar o eliminar el objeto?", "Editar(!)", "Eliminar(X)");
  357.                 }
  358.                 else
  359.                 {
  360.                                         ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT_SELECTION,DIALOG_STYLE_LIST,"Objetos adjunto al jugador: (Selecciona)","1 :: "COL_GREY"Objetos Del Menu\n"COL_WHITE"2 :: "COL_GREY"Objetos Personalizados","Siguiente(>>)","Atras(<<)");
  361.                         }
  362.                 SetPVarInt(playerid, "AttachmentIndexSel", listitem);
  363.             }
  364.             return 1;
  365.         }
  366.         case DIALOG_ATTACH_OBJECT_SELECTION:
  367.         {
  368.             if(!response)
  369.             {
  370.                 cmd_o(playerid,"");
  371.             }
  372.             if(response)
  373.             {
  374.                 if(listitem==0) ShowModelSelectionMenuEx(playerid, AttachmentObjectsList, 228+38, "Objetos Para Player", DIALOG_ATTACH_MODEL_SELECTION, 0.0, 0.0, 0.0, 1.0, 0x00000099, 0x000000EE, 0xACCBF1FF);
  375.                 if(listitem==1) ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT2_SELECTION,DIALOG_STYLE_INPUT,"Objetos adjunto al jugador: (Inserta Id de objecto)",""COL_WHITE"Pone la id de un objeto, puedes encontrarlas en "COL_RED"''http://www.k-dst.de''.","Editar","Atras(<<)");
  376.                         }
  377.                 }
  378.         case DIALOG_ATTACH_OBJECT2_SELECTION:
  379.         {
  380.             if(!response)
  381.             {         ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT_SELECTION,DIALOG_STYLE_LIST,"Objetos adjunto al jugador: (Selecciona)","1 :: "COL_GREY"Objetos Del Menu\n"COL_WHITE"2 :: "COL_GREY"Objetos Personalizados","Siguiente(>>)","Atras(<<)");}                                  if(response)
  382.                         {
  383.                                 if(!strlen(inputtext))return SendClientMessage(playerid,-1,"No puedes dejar el espacio en blanco!."),ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT2_SELECTION,DIALOG_STYLE_INPUT,"Objetos adjunto al jugador: (Inserta Id de objecto)",""COL_WHITE"Pone la id de un objeto, puedes encontrarlas en "COL_RED"''http://www.k-dst.de''.","Editar","Atras(<<)");
  384.                                 if(!IsNumeric(inputtext)) return SendClientMessage(playerid,-1,"No puedes poner un nombre, solo usa "COL_RED"'ID' "COL_WHITE"."),ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT2_SELECTION,DIALOG_STYLE_INPUT,"Objetos adjunto al jugador: (Inserta Id de objecto)",""COL_WHITE"Pone la id de un objeto, puedes encontrarlas en "COL_RED"''http://www.k-dst.de''.","Editar","Atras(<<)");
  385.                                 new obj;
  386.                             if(!sscanf(inputtext, "i", obj))
  387.                                 {
  388.                                         if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, obj);
  389.                                     else
  390.                                     {
  391.                                             SetPVarInt(playerid, "AttachmentModelSel", obj);
  392.                                             new string[256+1];
  393.                                             new dialog[500];
  394.                                             for(new x;x<sizeof(AttachmentBones);x++)
  395.                                             {
  396.                                                 format(string, sizeof(string), "Lugar:%s\n", AttachmentBones[x]);
  397.                                                 strcat(dialog,string);
  398.                                             }
  399.                                                 ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, \
  400.                                                 "{FF0000}Edicion de Objeto - Seleccion del Lugar", dialog, "Seleccionar", "Cancelar");
  401.                                     }
  402.                                 }
  403.                         }
  404.         }
  405.         case DIALOG_ATTACH_EDITREPLACE:
  406.         {
  407.             if(response) EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
  408.             else
  409.                         {
  410.                             RemovePlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
  411.                 new file[256];
  412.                             new name[24];
  413.                             new x=GetPVarInt(playerid, "AttachmentIndexSel");
  414.                             new f1[15],f2[15],f3[15],f4[15],f5[15],f6[15],f7[15],f8[15],f9[15],f10[15],f11[15];
  415.                             GetPlayerName(playerid,name,24);
  416.                             format(file,sizeof(file),"Player Objects/%s.ini",name);
  417.                             if(!dini_Exists(file)) return 1;
  418.                             format(f1,15,"O_Model_%d",x);
  419.                             format(f2,15,"O_Bone_%d",x);
  420.                                 format(f3,15,"O_OffX_%d",x);
  421.                             format(f4,15,"O_OffY_%d",x);
  422.                             format(f5,15,"O_OffZ_%d",x);
  423.                             format(f6,15,"O_RotX_%d",x);
  424.                             format(f7,15,"O_RotY_%d",x);
  425.                             format(f8,15,"O_RotZ_%d",x);
  426.                             format(f9,15,"O_ScaleX_%d",x);
  427.                             format(f10,15,"O_ScaleY_%d",x);
  428.                             format(f11,15,"O_ScaleZ_%d",x);
  429.                             dini_Unset(file,f1);
  430.                             dini_Unset(file,f2);
  431.                             dini_Unset(file,f3);
  432.                             dini_Unset(file,f4);
  433.                             dini_Unset(file,f5);
  434.                             dini_Unset(file,f6);
  435.                             dini_Unset(file,f7);
  436.                             dini_Unset(file,f8);
  437.                             dini_Unset(file,f9);
  438.                             dini_Unset(file,f10);
  439.                             dini_Unset(file,f11);
  440.                                 DeletePVar(playerid, "AttachmentIndexSel");
  441.             }
  442.                         return 1;
  443.         }
  444.         case DIALOG_ATTACH_BONE_SELECTION:
  445.         {
  446.             if(response)
  447.             {
  448.                 SetPlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"), GetPVarInt(playerid, "AttachmentModelSel"), listitem+1);
  449.                 EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
  450.             }
  451.             DeletePVar(playerid, "AttachmentIndexSel");
  452.             DeletePVar(playerid, "AttachmentModelSel");
  453.             return 1;
  454.         }
  455.     }
  456.     return 0;
  457. }
  458. //==============================================================================
  459. public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
  460.                                    Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
  461.                                    Float:fRotX, Float:fRotY, Float:fRotZ,
  462.                                    Float:fScaleX, Float:fScaleY, Float:fScaleZ )
  463. {
  464.     /*new debug_string[256+1];
  465.         format(debug_string,256,"SetPlayerAttachedObject(playerid,%d,%d,%d,%f,%f,%f,%f,%f,%f,%f,%f,%f)",
  466.         index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);*/
  467.  
  468.     SetPlayerAttachedObject(playerid,index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);
  469.     SendClientMessage(playerid, 0xFFFFFFFF, "Ya haz finalizado la edicion, se guardo automaticamente en nuesta base de datos.");
  470.  
  471.     new file[256];
  472.     new name[24];
  473.     new f1[15],f2[15],f3[15],f4[15],f5[15],f6[15],f7[15],f8[15],f9[15],f10[15],f11[15];
  474.     GetPlayerName(playerid,name,24);
  475.     format(file,sizeof(file),"Player Objects/%s.ini",name);
  476.     if(!dini_Exists(file)) return 1;
  477.     format(f1,15,"O_Model_%d",index);
  478.     format(f2,15,"O_Bone_%d",index);
  479.         format(f3,15,"O_OffX_%d",index);
  480.     format(f4,15,"O_OffY_%d",index);
  481.     format(f5,15,"O_OffZ_%d",index);
  482.     format(f6,15,"O_RotX_%d",index);
  483.     format(f7,15,"O_RotY_%d",index);
  484.     format(f8,15,"O_RotZ_%d",index);
  485.     format(f9,15,"O_ScaleX_%d",index);
  486.     format(f10,15,"O_ScaleY_%d",index);
  487.     format(f11,15,"O_ScaleZ_%d",index);
  488.     dini_IntSet(file,f1,modelid);
  489.     dini_IntSet(file,f2,boneid);
  490.     dini_FloatSet(file,f3,fOffsetX);
  491.     dini_FloatSet(file,f4,fOffsetY);
  492.     dini_FloatSet(file,f5,fOffsetZ);
  493.     dini_FloatSet(file,f6,fRotX);
  494.     dini_FloatSet(file,f7,fRotY);
  495.     dini_FloatSet(file,f8,fRotZ);
  496.     dini_FloatSet(file,f9,fScaleX);
  497.     dini_FloatSet(file,f10,fScaleY);
  498.     dini_FloatSet(file,f11,fScaleZ);
  499.     return 1;
  500. }
  501. //==============================================================================
  502. public OnPlayerConnect(playerid)
  503. {
  504.     new file[256];
  505.     new name[24];
  506.     new f1[15],f2[15],f3[15],f4[15],f5[15],f6[15],f7[15],f8[15],f9[15],f10[15],f11[15];
  507.     GetPlayerName(playerid,name,24);
  508.     format(file,sizeof(file),"Player Objects/%s.ini",name);
  509.         if(!dini_Exists(file))
  510.         {
  511.             dini_Create(file);
  512.                 for(new x;x<MAX_OSLOTS;x++)
  513.                 {
  514.                     if(IsPlayerAttachedObjectSlotUsed(playerid, x))
  515.                     {
  516.                             format(f1,15,"O_Model_%d",x);
  517.                             format(f2,15,"O_Bone_%d",x);
  518.                                 format(f3,15,"O_OffX_%d",x);
  519.                             format(f4,15,"O_OffY_%d",x);
  520.                             format(f5,15,"O_OffZ_%d",x);
  521.                             format(f6,15,"O_RotX_%d",x);
  522.                             format(f7,15,"O_RotY_%d",x);
  523.                             format(f8,15,"O_RotZ_%d",x);
  524.                             format(f9,15,"O_ScaleX_%d",x);
  525.                             format(f10,15,"O_ScaleY_%d",x);
  526.                             format(f11,15,"O_ScaleZ_%d",x);
  527.                             dini_IntSet(file,f1,0);
  528.                             dini_IntSet(file,f2,0);
  529.                             dini_FloatSet(file,f3,0.0);
  530.                             dini_FloatSet(file,f4,0.0);
  531.                             dini_FloatSet(file,f5,0.0);
  532.                             dini_FloatSet(file,f6,0.0);
  533.                             dini_FloatSet(file,f7,0.0);
  534.                             dini_FloatSet(file,f8,0.0);
  535.                             dini_FloatSet(file,f9,0.0);
  536.                             dini_FloatSet(file,f10,0.0);
  537.                             dini_FloatSet(file,f11,0.0);
  538.                         }
  539.                 }
  540.         }
  541. }
  542. //==============================================================================
  543. public OnPlayerSpawn(playerid)
  544. {
  545.     new file[256];
  546.     new name[24];
  547.     new f1[15],f2[15],f3[15],f4[15],f5[15],f6[15],f7[15],f8[15],f9[15],f10[15],f11[15];
  548.     GetPlayerName(playerid,name,24);
  549.     format(file,sizeof(file),"Player Objects/%s.ini",name);
  550.     if(!dini_Exists(file)) return 1;
  551.     for(new x;x<MAX_OSLOTS;x++)
  552.         {
  553.             format(f1,15,"O_Model_%d",x);
  554.                 format(f2,15,"O_Bone_%d",x);
  555.                 format(f3,15,"O_OffX_%d",x);
  556.                 format(f4,15,"O_OffY_%d",x);
  557.                 format(f5,15,"O_OffZ_%d",x);
  558.                 format(f6,15,"O_RotX_%d",x);
  559.                 format(f7,15,"O_RotY_%d",x);
  560.                 format(f8,15,"O_RotZ_%d",x);
  561.                 format(f9,15,"O_ScaleX_%d",x);
  562.                 format(f10,15,"O_ScaleY_%d",x);
  563.                 format(f11,15,"O_ScaleZ_%d",x);
  564.             if(dini_Int(file,f1)!=0)
  565.             {
  566.                 SetPlayerAttachedObject(playerid,x,dini_Int(file,f1),dini_Int(file,f2),dini_Float(file,f3),dini_Float(file,f4),dini_Float(file,f5),dini_Float(file,f6),dini_Float(file,f7),dini_Float(file,f8),dini_Float(file,f9),dini_Float(file,f10),dini_Float(file,f11));
  567.                 }
  568.         }
  569.         return 1;
  570. }
  571. //==============================================================================
  572. public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
  573. {
  574.         if(extraid==DIALOG_ATTACH_MODEL_SELECTION)
  575.         {
  576.             if(!response)
  577.         {   ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT_SELECTION,DIALOG_STYLE_LIST,"Objetos adjunto al jugador: (Selecciona)","1 :: "COL_GREY"Objetos Del Menu\n"COL_WHITE"2 :: "COL_GREY"Objetos Personalizados","Siguiente(>>)","Atras(<<)");}
  578.                     if(response)
  579.             {
  580.                     if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, modelid);
  581.                     else
  582.                     {
  583.                             SetPVarInt(playerid, "AttachmentModelSel", modelid);
  584.                 new string[256+1];
  585.                                 new dialog[500];
  586.                                 for(new x;x<sizeof(AttachmentBones);x++)
  587.                         {
  588.                                         format(string, sizeof(string), "Lugar:%s\n", AttachmentBones[x]);
  589.                                         strcat(dialog,string);
  590.                                 }
  591.                                 ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, \
  592.                                 "{FF0000}Edicion de Objeto - Seleccion del Lugar", dialog, "Seleccionar", "Cancelar");
  593.                     }//else DeletePVar(playerid, "AttachmentIndexSel");
  594.                 }
  595.         }
  596.         return 1;
  597. }
  598. //==============================================================================
  599. stock IsNumeric(string[])
  600. {
  601.         for (new i = 0, j = strlen(string); i < j; i++)
  602.         {
  603.                 if (string[i] > '9' || string[i] < '0') return 0;
  604.         }
  605.         return 1;
  606. }
  607. //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement