Advertisement
horsemeat

Jbobjectsv1.3R2

Jun 12th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 153.65 KB | None | 0 0
  1. //----------------------------------JB-----------------------------------//
  2. //-----------------------------Samp-objects------------------------------//
  3. //---------------------------------V1.3R1----------------------------------//
  4. //------------------------Gameman87/horsemeat----------------------------//
  5. //-----------------------------built-on-0.3x-----------------------------//
  6. //--------------------LastUpdate-for-0.3x-5,6,2013----------------------//
  7. //if you want partical effects then make sure you follow the steps there in the OnDialogResponse Section
  8. #include <a_samp>//Thanks SA-MP developers
  9. #include <zcmd>//Thanks Zeex
  10. #include <sscanf2>//Thanks Y_Less
  11. #include <dini>//Thanks DracoBlue
  12. #include <streamer>//Thanks Incognito
  13. #define RED 0xFF0000ff
  14. #define DARKBLUE 0x0000FFff
  15. #define LIGHTBLUE 0x00E1FFff
  16. #define GREEN 0x22D451ff
  17. #define YELLOW 0xEAFF00ff
  18. #define BLUEGREEN 0xA5C9B0ff
  19. #define PINK 0xFF00CCff
  20. #define WHITE 0xFFFFFFff
  21. #define GREY 0x969696ff
  22. #define PURPLE 0x74007AAA
  23. #define ORANGE 0xFF7700ff
  24. #define COLOR YELLOW//You can change the Color of labels
  25. #define MAX_SAMPOBJECTS 8000//just change to what every you like (don't do to mutch)
  26. #define DIALOG_ADDOBJECTS 5
  27. #define DIALOG_CUSTOMINPUT 6
  28. #define DIALOG_SAMPLOGOS 7
  29. #define DIALOG_PARTICLEEFFECTS 8
  30. #define DIALOG_LANDMASSES 9
  31. #define DIALOG_BASES 10
  32. #define DIALOG_ELEVATOR 11
  33. #define DIALOG_DMCAGES 12
  34. #define DIALOG_PARKOUR 14
  35. #define DIALOG_PLATFORMS 15
  36. #define DIALOG_TUNNELS 16
  37. #define DIALOG_RAMPS 17
  38. #define DIALOG_ROADS 18
  39. #define DIALOG_BRIDGES 19
  40. #define DIALOG_TUBES 20
  41. #define DIALOG_SPHERES 21
  42. #define DIALOG_OTHERS 22
  43. #define DIALOG_PARTICLEEFFECTSP1 23
  44. #define DIALOG_PARTICLEEFFECTSP2 24
  45. #define DIALOG_PARTICLEEFFECTSP3 25
  46. #define DIALOG_PARTICLEEFFECTSP4 26
  47. #define DIALOG_PARTICLEEFFECTSP5 27
  48. #define DIALOG_TUBESP1 28
  49. #define DIALOG_TUBESP2 29
  50. #define DIALOG_CUSTOMINPUTSTRING 30
  51. #define DIALOG_FAVORITEADDDELETE 31
  52. #define DIALOG_FAVORITEADD 32
  53. #define DIALOG_FAVORITEDELETE 33
  54. #define DIALOG_FAVORITEINPORT 34
  55. #define DIALOG_FAVORITEINPUTSTRING 35
  56. #define DIALOG_FAVORITEINPUTOBJECTID 36
  57. #define DIALOG_NOT 37
  58. #define MAX_OPERATIONS 3
  59. new Float:DISTANCELABEL = 25.0;
  60. new objectsfilename[128];
  61. new objectcount;
  62. new PlayerText3D:objectlabel[MAX_PLAYERS][MAX_SAMPOBJECTS];
  63. new objects[MAX_SAMPOBJECTS];
  64. new jbobjectid[MAX_SAMPOBJECTS],playerpick[MAX_PLAYERS],objectstring[128][MAX_SAMPOBJECTS];
  65. new Float:objx[MAX_SAMPOBJECTS],Float:objy[MAX_SAMPOBJECTS],Float:objz[MAX_SAMPOBJECTS],Float:objxrot[MAX_SAMPOBJECTS],Float:objyrot[MAX_SAMPOBJECTS],Float:objzrot[MAX_SAMPOBJECTS];
  66. new editobjnum[MAX_PLAYERS];
  67. new Float:oldx[MAX_PLAYERS],Float:oldy[MAX_PLAYERS],Float:oldz[MAX_PLAYERS],Float:oldxrot[MAX_PLAYERS],Float:oldyrot[MAX_PLAYERS],Float:oldzrot[MAX_PLAYERS],editfirstcheck[MAX_PLAYERS];
  68. new slotobjectid[12],slotstring[128][12],slotstate[12],favoritedialogstring[128],listitempicked[MAX_PLAYERS];
  69. new showlabel[MAX_PLAYERS];
  70. new allowence[3][MAX_PLAYERS],allowencejoin[MAX_OPERATIONS],playersinput;
  71. new hex:objectcolor[MAX_SAMPOBJECTS];
  72. forward IsPlayerLoggingIntoAdmin();
  73. forward InputAdminSystem(playerid,level);
  74. /*public InputAdminSystem(playerid,level)
  75. {
  76.     //put your custom admin system here and uncomment (do not leave blank unless commented
  77.     return 1;
  78. }*/
  79. public IsPlayerLoggingIntoAdmin()
  80. {
  81.     for(new i = 0; i < MAX_PLAYERS; i++)
  82.     {
  83.         if(IsPlayerConnected(i))
  84.         {
  85.             if(IsPlayerAdmince(i,3))
  86.             {
  87.                 for(new count; count < MAX_OPERATIONS;count++)
  88.                 {
  89.                     if((allowence[count][i])==1)
  90.                     {
  91.                         allowence[count][i] = 0;
  92.                         new string[256],taskname[128];
  93.                         if((count)==0)
  94.                         {
  95.                             taskname = "addobjects";
  96.                         }
  97.                         if((count)==1)
  98.                         {
  99.                             taskname = "moveobjects";
  100.                         }
  101.                         if((count)==2)
  102.                         {
  103.                             taskname = "deleteobjects";
  104.                         }
  105.                         format(string,256,"you logged into admin over 3 or RCON and you have an allowence for %s, it has been remove since you are permently allowed to use it",taskname);
  106.                         SendClientMessage(i,PINK,string);
  107.                     }
  108.                 }
  109.             }
  110.         }
  111.     }
  112.     return 1;
  113. }
  114. public OnFilterScriptInit()
  115. {
  116.     format(objectsfilename,sizeof(objectsfilename),"jbobjects.ini");
  117.     if(!dini_Exists(objectsfilename))
  118.     {
  119.         dini_Create(objectsfilename);
  120.         dini_IntSet(objectsfilename,"objectcount",(objectcount));
  121.         dini_IntSet(objectsfilename,"labeldistance",floatround(DISTANCELABEL));
  122.         print("Objects Save File has been created");
  123.     }
  124.     objectcount = dini_Int(objectsfilename, "objectcount");
  125.     DISTANCELABEL = dini_Int(objectsfilename,"labeldistance");
  126.     if((DISTANCELABEL) < 5)
  127.     {
  128.         DISTANCELABEL = 5;
  129.     }
  130.     SetTimer("IsPlayerLoggingIntoAdmin",1000,true);
  131.     print("------------------JB-------------------");
  132.     print("-------------Samp-objects--------------");
  133.     print("----------------Loaded-----------------");
  134.     print("-----------------V1.3R1------------------");
  135.     new savestringname[128];
  136.     for(new count =0;count <= objectcount;count++)
  137.     {
  138.         format(savestringname,sizeof(savestringname),"object[%i]",count);
  139.         jbobjectid[count] = dini_Int(objectsfilename,savestringname);
  140.         if((jbobjectid[count])==0)
  141.         {
  142.  
  143.         }
  144.         else
  145.         {
  146.             format(savestringname,sizeof(savestringname),"objx[%i]",count);
  147.             objx[count] = dini_Int(objectsfilename,savestringname);
  148.             format(savestringname,sizeof(savestringname),"objy[%i]",count);
  149.             objy[count] = dini_Int(objectsfilename,savestringname);
  150.             format(savestringname,sizeof(savestringname),"objz[%i]",count);
  151.             objz[count] = dini_Int(objectsfilename,savestringname);
  152.             format(savestringname,sizeof(savestringname),"objxrot[%i]",count);
  153.             objxrot[count] = dini_Int(objectsfilename,savestringname);
  154.             format(savestringname,sizeof(savestringname),"objyrot[%i]",count);
  155.             objyrot[count] = dini_Int(objectsfilename,savestringname);
  156.             format(savestringname,sizeof(savestringname),"objzrot[%i]",count);
  157.             objzrot[count] = dini_Int(objectsfilename,savestringname);
  158.             format(savestringname,sizeof(savestringname),"objectlabel[%i]",count);
  159.             objectstring[count] = dini_Get(objectsfilename,savestringname);
  160.             format(savestringname,sizeof(savestringname),"objectcolor[%i]",count);
  161.             objectcolor[count] = dini_Int(objectsfilename,savestringname);
  162.             format(savestringname,sizeof(savestringname),"object[%i]",count);
  163.             jbobjectid[count] = dini_Int(objectsfilename,savestringname);
  164.             objects[count] = CreateDynamicObject(jbobjectid[count],objx[count],objy[count],objz[count],objxrot[count],objyrot[count],objzrot[count],0);
  165.             if((objectcolor[count])==0)
  166.             {
  167.                 SetDynamicObjectMaterial(objects[count],0,-1,"none","none",0);
  168.             }
  169.             else
  170.             {
  171.                 SetDynamicObjectMaterial(objects[count],0 ,2707, "Shopping", "white",objectcolor[count]);
  172.             }
  173.             for(new i = 0;i < MAX_PLAYERS;i++)
  174.             {
  175.                 if(IsPlayerConnected(i))
  176.                 {
  177.                     new name[128];
  178.                     GetPlayerName(i,name,sizeof(name));
  179.                     format(savestringname,sizeof(savestringname),"showlabel[%s]",name);
  180.                     showlabel[i] = dini_Int(objectsfilename,savestringname);
  181.                     if((showlabel[i])==1)
  182.                     {
  183.                         new string[128];
  184.                         format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[count],count,jbobjectid[count]);
  185.                         objectlabel[i][count] = CreatePlayer3DTextLabel(i,string,COLOR,objx[count],objy[count],objz[count],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  186.                     }
  187.                 }
  188.             }
  189.         }
  190.     }
  191.     return 1;
  192. }
  193. public OnPlayerConnect(playerid)
  194. {
  195.     new string[128],name[128];
  196.     new savestringname[128];
  197.     GetPlayerName(playerid,name,sizeof(name));
  198.     format(savestringname,sizeof(savestringname),"showlabel[%s]",name);
  199.     showlabel[playerid] = dini_Int(objectsfilename,savestringname);
  200.     if((showlabel[playerid])==1)
  201.     {
  202.         for(new count=0;count <= objectcount;count++)
  203.         {
  204.             if((jbobjectid[count])==0)
  205.             {
  206.  
  207.             }
  208.             else
  209.             {
  210.                 format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[count],count,jbobjectid[count]);
  211.                 objectlabel[playerid][count] = CreatePlayer3DTextLabel(playerid,string,COLOR,objx[count],objy[count],objz[count],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  212.             }
  213.         }
  214.     }
  215.     for(new count=0;count < MAX_OPERATIONS;count ++)
  216.     {
  217.         if((allowencejoin[count])==1)
  218.         {
  219.             if(IsPlayerAdmince(count,3))
  220.             {
  221.  
  222.             }
  223.             else
  224.             {
  225.                 new command[128];
  226.                 if((count)==0)
  227.                 {
  228.                     format(command,128,"addobjects");
  229.                 }
  230.                 if((count)==1)
  231.                 {
  232.                     format(command,128,"moveobjects");
  233.                 }
  234.                 if((count) == 2)
  235.                 {
  236.                     format(command,128,"deleteobjects");
  237.                 }
  238.                 GetPlayerName(playerid,name,sizeof(name));
  239.                 allowence[count][playerid]=1;
  240.                 format(string,128, "%s has joined and has been give autorization for the %s command",name,command);
  241.                 SendClientMessageToAll(GREY,string);
  242.             }
  243.         }
  244.     }
  245.     return 1;
  246. }
  247. public OnPlayerDisconnect(playerid, reason)
  248. {
  249.     for(new count;count < MAX_OPERATIONS;count++)
  250.     {
  251.         if((allowence[count][playerid])==1)
  252.         {
  253.             allowence[count][playerid] = 0;
  254.         }
  255.     }
  256.     return 1;
  257. }
  258. public OnFilterScriptExit()
  259. {
  260.     for(new count=0;count <= objectcount;count++)
  261.     {
  262.         DestroyDynamicObject(objects[count]);
  263.         for(new i;i < MAX_PLAYERS;i++)
  264.         {
  265.             if(IsPlayerConnected(i))
  266.             {
  267.                 DeletePlayer3DTextLabel(i,objectlabel[i][count]);
  268.             }
  269.         }
  270.     }
  271.     print("------------------JB-------------------");
  272.     print("-------------Samp-objects--------------");
  273.     print("----------------UnLoaded---------------");
  274.     print("-----------------V1.3R1----------------");
  275.     return 1;
  276. }
  277. CMD:deleteallobjects(playerid,params[])
  278. {
  279.     if(IsPlayerAdmince(playerid,4))
  280.     {
  281.         new savestringname[128];
  282.         for(new count =0;count < objectcount;count++)
  283.         {
  284.             objx[count] = 0;
  285.             objy[count] = 0;
  286.             objz[count] = 0;
  287.             objxrot[count] = 0;
  288.             objyrot[count] = 0;
  289.             objzrot[count] = 0;
  290.             jbobjectid[count] = 0;
  291.             objectstring[count] = "";
  292.             format(savestringname,sizeof(savestringname),"objx[%i]",count);
  293.             dini_IntSet(objectsfilename,savestringname,floatround(0));
  294.             dini_Unset(objectsfilename,savestringname);
  295.             format(savestringname,sizeof(savestringname),"objy[%i]",count);
  296.             dini_IntSet(objectsfilename,savestringname,floatround(0));
  297.             dini_Unset(objectsfilename,savestringname);
  298.             format(savestringname,sizeof(savestringname),"objz[%i]",count);
  299.             dini_IntSet(objectsfilename,savestringname,floatround(0));
  300.             dini_Unset(objectsfilename,savestringname);
  301.             format(savestringname,sizeof(savestringname),"objxrot[%i]",count);
  302.             dini_IntSet(objectsfilename,savestringname,floatround(0));
  303.             dini_Unset(objectsfilename,savestringname);
  304.             format(savestringname,sizeof(savestringname),"objyrot[%i]",count);
  305.             dini_IntSet(objectsfilename,savestringname,floatround(0));
  306.             dini_Unset(objectsfilename,savestringname);
  307.             format(savestringname,sizeof(savestringname),"objzrot[%i]",count);
  308.             dini_IntSet(objectsfilename,savestringname,floatround(0));
  309.             dini_Unset(objectsfilename,savestringname);
  310.             format(savestringname,sizeof(savestringname),"object[%i]",count);
  311.             dini_IntSet(objectsfilename,savestringname,(0));
  312.             dini_Unset(objectsfilename,savestringname);
  313.             format(savestringname,sizeof(savestringname),"objectlabel[%i]",count);
  314.             dini_Set(objectsfilename,savestringname,(""));
  315.             dini_Unset(objectsfilename,savestringname);
  316.             format(savestringname,sizeof(savestringname),"objectcolor[%i]",count);
  317.             dini_IntSet(objectsfilename,savestringname,(0));
  318.             dini_Unset(objectsfilename,savestringname);
  319.             DestroyDynamicObject(objects[count]);
  320.             for(new i =0;i < MAX_PLAYERS;i++)
  321.             {
  322.                 if((showlabel[i])==1)
  323.                 {
  324.                     DeletePlayer3DTextLabel(i,objectlabel[i][count]);
  325.                 }
  326.             }
  327.         }
  328.         new string[128],name[128];
  329.         GetPlayerName(playerid, name,sizeof(name));
  330.         format(string,128,"[ADMIN:%s] has delete all of the objects & removed it from the history",name);
  331.         objectcount = 0;
  332.         dini_IntSet(objectsfilename,"count",(objectcount));
  333.         SendClientMessageToAll(PINK,string);
  334.     }
  335.     else
  336.     {
  337.         SendClientMessage(playerid, RED, "You have to be atleast admin level 5 or Rcon admin to use this command");
  338.     }
  339.     return 1;
  340. }
  341. CMD:allowplayer(playerid, params[])
  342. {
  343.     if(IsPlayerAdmince(playerid,4))
  344.     {
  345.         new choice[128],yesno[128],idinput[128],id =-1,string[128];
  346.         if(sscanf(params,"s["#64"]s["#64"]s["#64"]",idinput,choice,yesno))
  347.         {
  348.             SendClientMessage(playerid, RED, "SYNTAX /allowplayer [id/all] [choice] [yes/no]");
  349.             SendClientMessage(playerid, RED, "Choice:addobject,moveobject,deleteobject,all");
  350.             return 1;
  351.         }
  352.         if(strcmp(idinput,"all",true,64)==0)
  353.         {
  354.             for(new i; i < MAX_PLAYERS;i++)
  355.             {
  356.                 if(strcmp(choice,"addobject",true,64)==0)
  357.                 {
  358.                     if(strcmp(yesno,"yes",true,64)==0)
  359.                     {
  360.                         if(IsPlayerAdmince(i,3))
  361.                         {
  362.  
  363.                         }
  364.                         else
  365.                         {
  366.                             new adminname[128];
  367.                             GetPlayerName(playerid,adminname,sizeof(adminname));
  368.                             allowence[0][i] = 1;
  369.                             format(string,128,"[ADMIN:%s] has allowed you to use the /addobject command check /jbobjectshelp for more help",adminname);
  370.                             SendClientMessage(i,YELLOW,string);
  371.                             allowencejoin[0] = 1;
  372.                             SendClientMessage(i, YELLOW, "allowencejoin in enabled meaning any player that joins is auto atherized to use the /addobject command /disallowplayerbuildonjoin to disable this");
  373.                         }
  374.                     }
  375.                     else if(strcmp(yesno,"no",true,64)==0)
  376.                     {
  377.                         if(IsPlayerAdmince(i,3))
  378.                         {
  379.  
  380.                         }
  381.                         else
  382.                         {
  383.                             allowence[0][i] = 0;
  384.                             new adminname[128];
  385.                             GetPlayerName(playerid, adminname,sizeof(adminname));
  386.                             format(string,128,"[ADMIN:%s] has disalowed everyone to use /addobject",adminname);
  387.                             SendClientMessage(i,RED,string);
  388.                         }
  389.                     }
  390.                     else
  391.                     {
  392.                         SendClientMessage(playerid, RED, "type in Yes or No");
  393.                     }
  394.                 }
  395.                 else if(strcmp(choice,"moveobject",true,64)==0)
  396.                 {
  397.                     if(strcmp(yesno,"yes",true,64)==0)
  398.                     {
  399.                         if(IsPlayerAdmince(i,3))
  400.                         {
  401.  
  402.                         }
  403.                         else
  404.                         {
  405.                             new adminname[128];
  406.                             GetPlayerName(playerid,adminname,sizeof(adminname));
  407.                             allowence[1][i] = 1;
  408.                             format(string,128,"[ADMIN:%s] has allowed you to use the /moveobject command check /jbobjectshelp for more help",adminname);
  409.                             SendClientMessage(i,YELLOW,string);
  410.                             format(string,127,"[ADMIN:%s] has allowed everyone to use  the moveobject functions",adminname);
  411.                             SendClientMessage(i,PINK,string);
  412.                             allowencejoin[1] = 1;
  413.                             SendClientMessage(i, YELLOW, "allowencejoin in enabled meaning any player that joins is auto atherized to use the /moveobject command /disallowplayerbuildonjoin to disable this");
  414.                         }
  415.                     }
  416.                     else if(strcmp(yesno,"no",true,64)==0)
  417.                     {
  418.                         if((allowence[1][i])==1)
  419.                         {
  420.                             if(IsPlayerAdmince(i,3))
  421.                             {
  422.  
  423.                             }
  424.                             else
  425.                             {
  426.                             allowence[1][i] = 0;
  427.                             new adminname[128];
  428.                             GetPlayerName(playerid, adminname,sizeof(adminname));
  429.                             format(string,128,"[ADMIN:%s] has disalowed everyone to use /moveobject",adminname);
  430.                             SendClientMessage(i,RED,string);
  431.                             }
  432.                         }
  433.                         else
  434.                         {
  435.                             SendClientMessage(playerid, RED, "This player already has premission to use moveobjects");
  436.                         }
  437.                     }
  438.                     else
  439.                     {
  440.                         SendClientMessage(playerid, RED, "type in Yes or No");
  441.                     }
  442.                 }
  443.                 else if(strcmp(choice,"deleteobject",true,64)==0)
  444.                 {
  445.                     if(strcmp(yesno,"yes",true,64)==0)
  446.                     {
  447.                         if(IsPlayerAdmince(i,3))
  448.                         {
  449.  
  450.                         }
  451.                         else
  452.                         {
  453.                             new adminname[128];
  454.                             GetPlayerName(playerid,adminname,sizeof(adminname));
  455.                             allowence[2][i] = 1;
  456.                             format(string,128,"[ADMIN:%s] has allowed you to use the /deleteobject command check /jbobjectshelp for more help",adminname);
  457.                             SendClientMessage(i,YELLOW,string);
  458.                             format(string,127,"ADMIN:%s] has allowed everyone to use the deleteobject functions",adminname);
  459.                             SendClientMessage(i,PINK,string);
  460.                             allowencejoin[2] = 1;
  461.                             SendClientMessage(i, YELLOW, "allowencejoin in enabled meaning any player that joins is auto atherized to use the /deleteobject command /disallowplayerbuildonjoin to disable this");
  462.                         }
  463.                     }
  464.                     else if(strcmp(yesno,"no",true,64)==0)
  465.                     {
  466.                         if((allowence[2][i])==1)
  467.                         {
  468.                             if(IsPlayerAdmince(i,3))
  469.                             {
  470.  
  471.                             }
  472.                             else
  473.                             {
  474.                                 allowence[2][i] = 0;
  475.                                 new adminname[128];
  476.                                 GetPlayerName(playerid, adminname,sizeof(adminname));
  477.                                 format(string,128,"[ADMIN:%s] has disalowed everyone to use /deleteobjects",adminname);
  478.                                 SendClientMessage(i,RED,string);
  479.                             }
  480.                             if((i)==playerid)
  481.                             {
  482.                                 SendClientMessage(playerid, RED, "You have disabled deleteobjects for all player");
  483.                                 SendClientMessage(playerid, ORANGE, "!NOTE you have also disable allowbuildonjoin /allowplayerbuildonjoin to change that");
  484.                             }
  485.                         }
  486.                         else
  487.                         {
  488.                             SendClientMessage(playerid, RED, "This player already has premission to use deleteobjects");
  489.                         }
  490.                     }
  491.                     else
  492.                     {
  493.                         SendClientMessage(playerid, RED, "type in Yes or No");
  494.                     }
  495.                 }
  496.                 else if(strcmp(choice,"all",true,64)==0)
  497.                 {
  498.                     if(strcmp(yesno,"yes",true,64)==0)
  499.                     {
  500.                         if(IsPlayerAdmince(i,3))
  501.                         {
  502.  
  503.                         }
  504.                         else
  505.                         {
  506.                             new adminname[128];
  507.                             GetPlayerName(playerid,adminname,sizeof(adminname));
  508.                             for(new count=0;count < MAX_OPERATIONS;count++)
  509.                             {
  510.                                 allowence[count][i] = 1;
  511.                                 allowencejoin[count] = 1;
  512.                             }
  513.                             format(string,128,"[ADMIN:%s] has Allowed you to use all 3 function do /jbobjectshelp for more information",adminname);
  514.                             SendClientMessage(i,YELLOW,string);
  515.                             format(string,127,"[ADMIN:%s] has allowed everyone to use all the functions",adminname);
  516.                             SendClientMessage(i,PINK,string);
  517.                         }
  518.                         if((i)==playerid)
  519.                         {
  520.                             SendClientMessage(playerid, YELLOW, "You have allowed everyone to use JBobjects functions");
  521.                             SendClientMessage(playerid, ORANGE, "NOTE everyone who joins will automaticly be able to build /disallowplayerbuildonjoin to disable that");
  522.                         }
  523.                     }
  524.                     else if(strcmp(yesno,"no",true,64)==0)
  525.                     {
  526.                         if(IsPlayerAdmince(i,3))
  527.                         {
  528.  
  529.                         }
  530.                         else
  531.                         {
  532.                             for(new count=0;count < MAX_OPERATIONS;count++)
  533.                             {
  534.                                 allowence[count][i] = 0;
  535.                                 allowencejoin[count] = 0;
  536.                                 new adminname[128];
  537.                                 GetPlayerName(playerid, adminname,sizeof(adminname));
  538.                                 format(string,128,"[ADMIN:%s] has disalowed everyone to use all the build functions",adminname);
  539.                                 SendClientMessage(i,RED,string);
  540.                             }
  541.                             if((i)==playerid)
  542.                             {
  543.                                 SendClientMessage(playerid, YELLOW, "You have disallowed everyone to use JBobjects functions");
  544.                                 SendClientMessage(playerid, ORANGE, "NOTE everyone who joins will not automaticly be able to build");
  545.                             }
  546.                         }
  547.                     }
  548.                     else
  549.                     {
  550.                         SendClientMessage(playerid, RED, "type in Yes or No");
  551.                     }
  552.                 }
  553.                 else
  554.                 {
  555.                     SendClientMessage(playerid, RED, "Choice:addobject,moveobject,deleteobject,all");
  556.                 }
  557.             }
  558.             return 1;
  559.         }
  560.         else
  561.         {
  562.             id = strval(idinput);
  563.             if((playerid)==id)
  564.             {
  565.                 return SendClientMessage(playerid, RED, "You can not make yourself allowed becuse you are an admin over level 3 and permently can edit an object");
  566.             }
  567.             if(!IsPlayerConnected(id))
  568.             {
  569.                 return SendClientMessage(playerid, RED, "This Player is not connected");
  570.             }
  571.             if(strcmp(choice,"addobject",true,64)==0)
  572.             {
  573.                 if(strcmp(yesno,"yes",true,64)==0)
  574.                 {
  575.                     if((allowence[0][id])==0)
  576.                     {
  577.                         new adminname[128],playername[128];
  578.                         GetPlayerName(playerid,adminname,sizeof(adminname));
  579.                         GetPlayerName(id,playername,sizeof(playername));
  580.                         if(IsPlayerAdmince(id,3))
  581.                         {
  582.                             format(string,128,"%s is an admin over level 3 you can not allow him to addobject becuse he is permently allowed",playername);
  583.                             SendClientMessage(playerid, RED, string);
  584.                             return 1;
  585.                         }
  586.                         allowence[0][id] = 1;
  587.                         format(string,128,"[ADMIN:%s] has allowed [%s] to use the addobject function",adminname,playername);
  588.                         SendClientMessageToAll(PINK,string);
  589.                         format(string,128,"[ADMIN:%s] has allowed you to use the /addobject command check /jbobjectshelp for more help",adminname);
  590.                         SendClientMessage(id,YELLOW,string);
  591.                     }
  592.                     else
  593.                     {
  594.                         SendClientMessage(playerid, RED, "This player already has premission to use addobjects");
  595.                     }
  596.                 }
  597.                 else if(strcmp(yesno,"no",true,64)==0)
  598.                 {
  599.                     if((allowence[0][id])==1)
  600.                     {
  601.                         new adminname[128],playername[128];
  602.                         GetPlayerName(playerid,adminname,sizeof(adminname));
  603.                         GetPlayerName(id,playername,sizeof(playername));
  604.                         if((allowence[1][id])==0||(allowence[2][id])==0)
  605.                         {
  606.                             allowence[0][id] = 0;
  607.                             format(string,128,"[ADMIN:%s] has Disallowed [%s] to use the addobject function",adminname,playername);
  608.                             SendClientMessageToAll(PINK,string);
  609.                         }
  610.                         else
  611.                         {
  612.                             if((allowence[1][id])==0)
  613.                             {
  614.                                 format(string,128,"%s's moveobject allowence is still on",playername);
  615.                                 SendClientMessage(playerid, RED,string);
  616.                             }
  617.                             if((allowence[2][id])==0)
  618.                             {
  619.                                 format(string,128,"%s's deleteobjects allowence is still on",playername);
  620.                                 SendClientMessage(playerid, RED, string);
  621.                             }
  622.                             SendClientMessage(playerid, RED, "You can not disabel addobjects");
  623.                         }
  624.                     }
  625.                     else
  626.                     {
  627.                         SendClientMessage(playerid, RED, "This player already dose not has premission to use moveobjects");
  628.                     }
  629.                 }
  630.                 else
  631.                 {
  632.                     SendClientMessage(playerid, RED, "type in Yes or No");
  633.                 }
  634.             }
  635.             else if(strcmp(choice,"moveobject",true,64)==0)
  636.             {
  637.                 if(strcmp(yesno,"yes",true,64)==0)
  638.                 {
  639.                     if((allowence[1][id])==0)
  640.                     {
  641.                         if((allowence[0][id])==1)
  642.                         {
  643.                             new adminname[128],playername[128];
  644.                             GetPlayerName(playerid,adminname,sizeof(adminname));
  645.                             GetPlayerName(id,playername,sizeof(playername));
  646.                             if(IsPlayerAdmince(id,3))
  647.                             {
  648.                                 format(string,128,"%s is an admin over level 3 you can not allow him to moveobjects becuse he is permently allowed",playername);
  649.                                 SendClientMessage(playerid, RED, string);
  650.                                 return 1;
  651.                             }
  652.                             allowence[1][id] = 1;
  653.                             format(string,128,"[ADMIN:%s] has allowed [%s] to use the moveobjects function",adminname,playername);
  654.                             SendClientMessageToAll(PINK,string);
  655.                             format(string,128,"[ADMIN:%s] has allowed you to use the /moveobject command check /jbobjectshelp for more help",adminname);
  656.                             SendClientMessage(id,YELLOW,string);
  657.                         }
  658.                         else
  659.                         {
  660.                             SendClientMessage(playerid, RED, "You have to enable editing objects for the player in order to let him move objects");
  661.                         }
  662.                     }
  663.                     else
  664.                     {
  665.                         SendClientMessage(playerid, RED, "This player already has premission to use moveobjects");
  666.                     }
  667.                 }
  668.                 else if(strcmp(yesno,"no",true,64)==0)
  669.                 {
  670.                     if((allowence[1][id])==1)
  671.                     {
  672.                         new adminname[128],playername[128];
  673.                         GetPlayerName(playerid,adminname,sizeof(adminname));
  674.                         GetPlayerName(id,playername,sizeof(playername));
  675.                         allowence[1][id] = 0;
  676.                         format(string,128,"[ADMIN:%s] has Disabled [%s] to use the moveobjects function",adminname,playername);
  677.                         SendClientMessageToAll(PINK,string);
  678.                     }
  679.                     else
  680.                     {
  681.                         SendClientMessage(playerid, RED, "This player already does not have premission to use moveobjects");
  682.                     }
  683.                 }
  684.                 else
  685.                 {
  686.                     SendClientMessage(playerid, RED, "type in Yes or No");
  687.                 }
  688.             }
  689.             else if(strcmp(choice,"deleteobject",true,64)==0)
  690.             {
  691.                 if(strcmp(yesno,"yes",true,64)==0)
  692.                 {
  693.                     if((allowence[2][id])==0)
  694.                     {
  695.                         if((allowence[0][id])==1)
  696.                         {
  697.                             new adminname[128],playername[128];
  698.                             GetPlayerName(playerid,adminname,sizeof(adminname));
  699.                             GetPlayerName(id,playername,sizeof(playername));
  700.                             if(IsPlayerAdmince(id,3))
  701.                             {
  702.                                 format(string,128,"%s is an admin over level 3 you can not allow him to deleteobjects becuse he is permently allowed",playername);
  703.                                 SendClientMessage(playerid, RED, string);
  704.                                 return 1;
  705.                             }
  706.                             allowence[2][id] = 1;
  707.                             format(string,128,"[ADMIN:%s] has allowed [%s] to use the deleteobject function",adminname,playername);
  708.                             SendClientMessageToAll(PINK,string);
  709.                             format(string,128,"[ADMIN:%s] has allowed you to use the /deleteobject command check /jbobjectshelp for more help",adminname);
  710.                             SendClientMessage(id,YELLOW,string);
  711.                         }
  712.                         else
  713.                         {
  714.                             SendClientMessage(playerid, RED, "You have to enable editing objects for the player in order to let him delete objects");
  715.                         }
  716.                     }
  717.                     else
  718.                     {
  719.                         SendClientMessage(playerid, RED, "This player already has premission to use deleteobjects");
  720.                     }
  721.                 }
  722.                 else if(strcmp(yesno,"no",true,64)==0)
  723.                 {
  724.                     if((allowence[2][id])==1)
  725.                     {
  726.                         new adminname[128],playername[128];
  727.                         GetPlayerName(playerid,adminname,sizeof(adminname));
  728.                         GetPlayerName(id,playername,sizeof(playername));
  729.                         allowence[2][id] = 0;
  730.                         format(string,128,"[ADMIN:%s] has disallowed [%s] to use the deleteobject function",adminname,playername);
  731.                         SendClientMessageToAll(PINK,string);
  732.                     }
  733.                     else
  734.                     {
  735.                         SendClientMessage(playerid, RED, "This player already dose not have premission to use deleteobjects");
  736.                     }
  737.                 }
  738.                 else
  739.                 {
  740.                     SendClientMessage(playerid, RED, "type in Yes or No");
  741.                 }
  742.             }
  743.             else if(strcmp(choice,"all",false,64)==0)
  744.             {
  745.                 if(strcmp(yesno,"yes",true,64)==0)
  746.                 {
  747.                     new adminname[128],playername[128];
  748.                     GetPlayerName(playerid,adminname,sizeof(adminname));
  749.                     GetPlayerName(id,playername,sizeof(playername));
  750.                     if(IsPlayerAdmince(id,3))
  751.                     {
  752.                         format(string,128,"%s is an admin over level 3 you can not allow him to use the functions becuse he is permently allowed",playername);
  753.                         SendClientMessage(playerid, RED, string);
  754.                         return 1;
  755.                     }
  756.                     for(new count=0;count < 3;count++)
  757.                     {
  758.                         allowence[count][id] = 1;
  759.                     }
  760.                     format(string,128,"[ADMIN:%s] has Allowed [%s] to use all 3 functions [addobject,editobject,deleteobject]",adminname,playername);
  761.                     SendClientMessageToAll(PINK,string);
  762.                     format(string,128,"[ADMIN:%s] has Allowed you to use all 3 function do /jbobjectshelp for more information",adminname);
  763.                     SendClientMessage(id,YELLOW,string);
  764.                 }
  765.                 else if(strcmp(yesno,"no",true,64)==0)
  766.                 {
  767.                     new adminname[128],playername[128];
  768.                     GetPlayerName(playerid,adminname,sizeof(adminname));
  769.                     GetPlayerName(id,playername,sizeof(playername));
  770.                     for(new count=0;count < 3;count++)
  771.                     {
  772.                         allowence[count][id] = 0;
  773.                     }
  774.                     format(string,128,"[ADMIN:%s] has Disallowed [%s] to use all 3 functions [addobject,editobject,deleteobject]",adminname,playername);
  775.                     SendClientMessageToAll(PINK,string);
  776.                 }
  777.                 else
  778.                 {
  779.                     SendClientMessage(playerid, RED, "type in Yes or No");
  780.                 }
  781.             }
  782.             else
  783.             {
  784.                 SendClientMessage(playerid, RED, "Choice:addobject,moveobject,deleteobject,all");
  785.             }
  786.         }
  787.     }
  788.     else
  789.     {
  790.         SendClientMessage(playerid, RED, "You have to be atleast admin level 4 or Rcon admin to use this command");
  791.     }
  792.     return 1;
  793. }
  794. CMD:jbobjectshelp(playerid,params[])
  795. {
  796.     SendClientMessage(playerid, YELLOW, "/enablelabels/disablelabels");
  797.     if(IsPlayerAdmince(playerid,1)||(allowence[0][playerid])==1||(allowence[1][playerid])==1||(allowence[2][playerid])==1)
  798.     {
  799.         SendClientMessage(playerid, YELLOW, "/addobject-/moveobject-/deleteobject-/copyobject-/gotoobject/setobject/setobjectcolor/moveawayfromobject/getobject");
  800.         if(IsPlayerAdmince(playerid,2))
  801.         {
  802.             SendClientMessage(playerid,YELLOW, "/deleteallobjects-/labeldistance-/jbobjectscheck-/allowplayer-/disallowplayerbuildonjoin-/allowplayerbuildonjoin-/setplayerlabelstate");
  803.         }
  804.     }
  805.     else
  806.     {
  807.         SendClientMessage(playerid, YELLOW, "if you want to add,move,delete objects you have to ask an admin");
  808.     }
  809.     return 1;
  810. }
  811. CMD:allowplayerbuildonjoin(playerid, params[])
  812. {
  813.     if(IsPlayerAdmince(playerid,4))
  814.     {
  815.         new input[64],string[128],name[128];
  816.         if(sscanf(params,"s["#64"]",input))
  817.         {
  818.             SendClientMessage(playerid,RED,"SYNTAX /allowplayerbuildonjoin [command]");
  819.             SendClientMessage(playerid,RED,"command:addobject,moveobject,deleteobject,all");
  820.             return 1;
  821.         }
  822.         GetPlayerName(playerid, name,sizeof(name));
  823.         if(strcmp(input,"addobject",true,64)==0)
  824.         {
  825.             if((allowencejoin[0])==0)
  826.             {
  827.                 allowencejoin[0]=1;
  828.                 format(string,sizeof(string),"[ADMIN:%s] had enabled allowplayerbuildonjoin for addingobjects",name);
  829.                 SendClientMessageToAll(PINK,string);
  830.             }
  831.             else
  832.             {
  833.                 SendClientMessage(playerid, RED, "allowence join addobject is already enabled");
  834.             }
  835.         }
  836.         else if(strcmp(input,"moveobject",true,64)==0)
  837.         {
  838.             if((allowencejoin[1])==0)
  839.             {
  840.                 if((allowencejoin[0])==1)
  841.                 {
  842.                     allowencejoin[1]=1;
  843.                     format(string,sizeof(string),"[ADMIN:%s] had enabled allowplayerbuildonjoin for moveingobjects",name);
  844.                     SendClientMessageToAll(PINK,string);
  845.                 }
  846.                 else
  847.                 {
  848.                     SendClientMessage(playerid, RED, "you have to enable addobjects before you enable moveobjects; allowence on join");
  849.                 }
  850.             }
  851.             else
  852.             {
  853.                 SendClientMessage(playerid, RED, "allowence join moveobjects is already enabled");
  854.             }
  855.         }
  856.         else if(strcmp(input,"deleteobject",true,64)==0)
  857.         {
  858.             if((allowencejoin[2])==0)
  859.             {
  860.                 if((allowencejoin[0])==1)
  861.                 {
  862.                     allowencejoin[2]=1;
  863.                     format(string,sizeof(string),"[ADMIN:%s] had enabled allowplayerbuildonjoin for deleteobjects",name);
  864.                     SendClientMessageToAll(PINK,string);
  865.                 }
  866.                 else
  867.                 {
  868.                     SendClientMessage(playerid, RED, "you have to enable addobjects before you enable deleteobjects; allowence on join");
  869.                 }
  870.             }
  871.             else
  872.             {
  873.                 SendClientMessage(playerid, RED, "allowence join deleteobject is already enabled");
  874.             }
  875.         }
  876.         else if(strcmp(input,"all",true,64)==0)
  877.         {
  878.             for(new count;count < MAX_OPERATIONS;count++)
  879.             {
  880.                 if((allowencejoin[count])==0)
  881.                 {
  882.                     allowencejoin[count] = 1;
  883.                 }
  884.                 else
  885.                 {
  886.                     if((count)==0)
  887.                     {
  888.                         SendClientMessage(playerid, RED, "addobjects auto join is already enabled");
  889.                     }
  890.                     else if((count)==1)
  891.                     {
  892.                         SendClientMessage(playerid, RED, "moveobjects auto join is already enabled");
  893.                     }
  894.                     else if((count)==2)
  895.                     {
  896.                         SendClientMessage(playerid, RED, "deleteobjects auto join is already enabled");
  897.                     }
  898.                 }
  899.             }
  900.             format(string,128,"[ADMIN:%s] had enabled allowplayerbuildonjoin for all",name);
  901.             SendClientMessageToAll(PINK,string);
  902.         }
  903.         else
  904.         {
  905.             SendClientMessage(playerid,RED,"command:addobject,moveobject,deleteobject,all");
  906.         }
  907.     }
  908.     else
  909.     {
  910.         SendClientMessage(playerid, RED, "You have to be atleast admin level 4 or Rcon admin to use this command");
  911.     }
  912.     return 1;
  913. }
  914. CMD:disallowplayerbuildonjoin(playerid, params[])
  915. {
  916.     if(IsPlayerAdmince(playerid,4))
  917.     {
  918.         new input[64],string[128],name[128];
  919.         if(sscanf(params,"s["#64"]",input))
  920.         {
  921.             SendClientMessage(playerid,RED,"SYNTAX / disallowplayerbuildonjoin [command]");
  922.             SendClientMessage(playerid,RED,"command:addobject,moveobject,deleteobject,all");
  923.             return 1;
  924.         }
  925.         GetPlayerName(playerid,name,sizeof(name));
  926.         if(strcmp(input,"addobject",true,64)==0)
  927.         {
  928.             if((allowencejoin[0])==1)
  929.             {
  930.                 allowencejoin[0] = 0;
  931.                 format(string,128,"[ADMIN:%s] has stop puting people into auto allowence [/addobject & /copyobject]",name);
  932.                 SendClientMessageToAll(PINK,string);
  933.             }
  934.             else
  935.             {
  936.                 SendClientMessage(playerid, RED, "allowence join addobject is already disabled");
  937.             }
  938.         }
  939.         else if(strcmp(input,"moveobject",true,64)==0)
  940.         {
  941.             if((allowencejoin[1])==1)
  942.             {
  943.                 if((allowencejoin[0])==0)
  944.                 {
  945.                     allowencejoin[1] = 0;
  946.                     format(string,128,"[ADMIN:%s] has stop puting people into auto allowence [/moveobject]",name);
  947.                     SendClientMessageToAll(PINK,string);
  948.                 }
  949.                 else
  950.                 {
  951.                     SendClientMessage(playerid, RED, "You have to disable addobjects before you can disable moveobjects");
  952.                 }
  953.             }
  954.             else
  955.             {
  956.                 SendClientMessage(playerid, RED, "allowence join moveobject is already disabled");
  957.             }
  958.         }
  959.         else if(strcmp(input,"deleteobject",true,64)==0)
  960.         {
  961.             if((allowencejoin[2])==1)
  962.             {
  963.                 if((allowencejoin[0])==0)
  964.                 {
  965.                     allowencejoin[2] = 0;
  966.                     format(string,128,"[ADMIN:%s] has stop puting people into auto allowence [/deleteobject]",name);
  967.                     SendClientMessageToAll(PINK,string);
  968.                 }
  969.                 else
  970.                 {
  971.                     SendClientMessage(playerid, RED, "you have to disable addobjects before you disable deleteobjects");
  972.                 }
  973.             }
  974.             else
  975.             {
  976.                 SendClientMessage(playerid, RED, "allowence join deleteobject is already disabled");
  977.             }
  978.         }
  979.         else if(strcmp(input,"all",true,64)==0)
  980.         {
  981.             for(new count;count < MAX_OPERATIONS;count++)
  982.             {
  983.                 if((allowencejoin[count])==1)
  984.                 {
  985.                     allowencejoin[count] = 0;
  986.                 }
  987.                 else
  988.                 {
  989.                     if((count)==0)
  990.                     {
  991.                         SendClientMessage(playerid, RED, "addobjects auto join is already disabled");
  992.                     }
  993.                     else if((count)==1)
  994.                     {
  995.                         SendClientMessage(playerid, RED, "moveobjects auto join is already disabled");
  996.                     }
  997.                     else if((count)==2)
  998.                     {
  999.                         SendClientMessage(playerid, RED, "deleteobjects auto join is already disabled");
  1000.                     }
  1001.                 }
  1002.             }
  1003.             format(string,128,"[ADMIN:%s] has stop puting people into auto allowence [all commands]",name);
  1004.             SendClientMessageToAll(PINK,string);
  1005.         }
  1006.         else
  1007.         {
  1008.             SendClientMessage(playerid,RED,"command:addobject,moveobject,deleteobject,all");
  1009.         }
  1010.     }
  1011.     else
  1012.     {
  1013.         SendClientMessage(playerid, RED, "You have to be atleast admin level 4 or Rcon admin to use this command");
  1014.     }
  1015.     return 1;
  1016. }
  1017. CMD:gotoobject(playerid,params[])
  1018. {
  1019.     if(IsPlayerAdmince(playerid,3)||(allowence[1][playerid])==1)
  1020.     {
  1021.         new index,string[128];
  1022.         if(sscanf(params,"i",index))
  1023.         {
  1024.             return SendClientMessage(playerid, RED, "SYNTAX /gotoobject [jbobjectid]");
  1025.         }
  1026.         if((index) > objectcount)
  1027.         {
  1028.             return SendClientMessage(playerid, RED, "You are over the ammount of objects that exist");
  1029.         }
  1030.         if((jbobjectid[index])==0)
  1031.         {
  1032.             return SendClientMessage(playerid, RED, "This object does not exist");
  1033.         }
  1034.         if(IsPlayerInAnyVehicle(playerid))
  1035.         {
  1036.             if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1037.             {
  1038.                 new vehicleid = GetPlayerVehicleID(playerid);
  1039.                 SetVehiclePos(vehicleid,objx[index],objy[index],objz[index]);
  1040.                 format(string,128,"you have teleported with your car to jbobjectid:%i",index);
  1041.                 SendClientMessage(playerid, YELLOW, string);
  1042.             }
  1043.             else
  1044.             {
  1045.                 SendClientMessage(playerid, RED, "You can not be in the passenger seat to teleport you have to be the drive or outside of the car");
  1046.             }
  1047.         }
  1048.         else
  1049.         {
  1050.             SetPlayerPos(playerid,objx[index],objy[index],objz[index]);
  1051.             format(string,128,"you have teleported to jbobjectid:%i",index);
  1052.             SendClientMessage(playerid, YELLOW, string);
  1053.         }
  1054.         if((allowence[1][playerid])==1)
  1055.         {
  1056.             if((playersinput)==1)
  1057.             {
  1058.                 for(new count=0;count < MAX_PLAYERS;count++)
  1059.                 {
  1060.                     if(IsPlayerAdmince(count,3))
  1061.                     {
  1062.                         new name[128];
  1063.                         GetPlayerName(playerid,name,sizeof(name));
  1064.                         format(string,128,"%s has teleported to object id %i",name,index);
  1065.                         SendClientMessage(count,DARKBLUE,string);
  1066.                     }
  1067.                 }
  1068.             }
  1069.         }
  1070.     }
  1071.     else
  1072.     {
  1073.         SendClientMessage(playerid, RED, "You have to be atleast admin level 3 or Rcon admin or allowed to go to a object");
  1074.     }
  1075.     return 1;
  1076. }
  1077. CMD:copyobject(playerid, params[])
  1078. {
  1079.     if(IsPlayerAdmince(playerid,3)||(allowence[0][playerid])==1&&(allowence[1][playerid])==1)
  1080.     {
  1081.         new index;
  1082.         if(sscanf(params,"i",index))
  1083.         {
  1084.             return SendClientMessage(playerid, RED, "SYNTAX /copyobject [jbobjectid]");
  1085.         }
  1086.         if((jbobjectid[index])==0)
  1087.         {
  1088.             return SendClientMessage(playerid, RED, "This object does not exist");
  1089.         }
  1090.         if((index) < objectcount)
  1091.         {
  1092.             new string[128],savestringname[128];
  1093.             objx[objectcount] = objx[index];
  1094.             objy[objectcount] = objy[index];
  1095.             objz[objectcount] = objz[index];
  1096.             objxrot[objectcount] = objxrot[index];
  1097.             objyrot[objectcount] = objyrot[index];
  1098.             objzrot[objectcount] = objzrot[index];
  1099.             jbobjectid[objectcount] = jbobjectid[index];
  1100.             objectstring[objectcount] = objectstring[index];
  1101.             objectcolor[objectcount] = objectcolor[index];
  1102.             objects[objectcount] = CreateDynamicObject(jbobjectid[objectcount],objx[objectcount],objy[objectcount],objz[objectcount],objxrot[objectcount],objyrot[objectcount],objzrot[objectcount],0);
  1103.             format(savestringname,sizeof(savestringname),"objx[%i]",objectcount);
  1104.             dini_IntSet(objectsfilename,savestringname,floatround(objx[objectcount]));
  1105.             format(savestringname,sizeof(savestringname),"objy[%i]",objectcount);
  1106.             dini_IntSet(objectsfilename,savestringname,floatround(objy[objectcount]));
  1107.             format(savestringname,sizeof(savestringname),"objz[%i]",objectcount);
  1108.             dini_IntSet(objectsfilename,savestringname,floatround(objz[objectcount]));
  1109.             format(savestringname,sizeof(savestringname),"objectcolor[%i]",objectcolor[objectcount]);
  1110.             dini_IntSet(objectsfilename,savestringname,(objectcolor[objectcount]));
  1111.             format(savestringname,sizeof(savestringname),"objxrot[%i]",objectcount);
  1112.             dini_IntSet(objectsfilename,savestringname,floatround(objxrot[objectcount]));
  1113.             format(savestringname,sizeof(savestringname),"objyrot[%i]",objectcount);
  1114.             dini_IntSet(objectsfilename,savestringname,floatround(objyrot[objectcount]));
  1115.             format(savestringname,sizeof(savestringname),"objzrot[%i]",objectcount);
  1116.             dini_IntSet(objectsfilename,savestringname,floatround(objzrot[objectcount]));
  1117.             format(savestringname,sizeof(savestringname),"object[%i]",objectcount);
  1118.             dini_IntSet(objectsfilename,savestringname,(jbobjectid[objectcount]));
  1119.             format(savestringname,sizeof(savestringname),"objectlabel[%i]",objectcount);
  1120.             dini_Set(objectsfilename,savestringname,(objectstring[objectcount]));
  1121.             format(string,128,"you have copy and object, The object id of the object you copyed is %i",objectcount);
  1122.             SendClientMessage(playerid, YELLOW, string);
  1123.             SendClientMessage(playerid, ORANGE, "!NOTE the objects are right on top of eachother make sure you move them");
  1124.             if((showlabel[playerid])==1)
  1125.             {
  1126.                 format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[objectcount],objectcount,jbobjectid[objectcount]);
  1127.                 objectlabel[playerid][objectcount] = CreatePlayer3DTextLabel(playerid,string,COLOR,objx[objectcount],objy[objectcount],objz[objectcount],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  1128.             }
  1129.             if((objectcolor[objectcount])==0)
  1130.             {
  1131.                 SetDynamicObjectMaterial(objects[objectcount],0,-1,"none","none",0);
  1132.             }
  1133.             else
  1134.             {
  1135.                 SetDynamicObjectMaterial(objects[objectcount],0 ,2707, "Shopping", "white",objectcolor[objectcount]);
  1136.             }
  1137.             if((allowence[0][playerid])==1)
  1138.             {
  1139.                 if((playersinput)==1)
  1140.                 {
  1141.                     for(new count=0;count < MAX_PLAYERS;count++)
  1142.                     {
  1143.                         if(IsPlayerAdmince(count,3))
  1144.                         {
  1145.                             new name[128];
  1146.                             GetPlayerName(playerid,name,sizeof(name));
  1147.                             format(string,128,"%s has copyed object id %i the jbobjectid for the clone is %i the object id is %i",name,index,objectcount,jbobjectid[objectcount]);
  1148.                             SendClientMessage(count,DARKBLUE,string);
  1149.                         }
  1150.                     }
  1151.                 }
  1152.             }
  1153.             objectcount ++;
  1154.             dini_IntSet(objectsfilename,"objectcount",(objectcount));
  1155.         }
  1156.         else
  1157.         {
  1158.             SendClientMessage(playerid, RED, "You are over the number of object there are");
  1159.         }
  1160.     }
  1161.     else
  1162.     {
  1163.         SendClientMessage(playerid, RED, "You have to be atleast admin level 3 or Rcon admin or allowed to copyobjects to use this command");
  1164.     }
  1165.     return 1;
  1166. }
  1167. CMD:getobject(playerid, params[])
  1168. {
  1169.     if(IsPlayerAdmince(playerid,3)||(allowence[1][playerid])==1)
  1170.     {
  1171.         new index,string[128];
  1172.         if(sscanf(params, "i",index))
  1173.         {
  1174.             return SendClientMessage(playerid, RED, "SYNTAX /getobject [jbobjectid]");
  1175.         }
  1176.         if((index) > objectcount)
  1177.         {
  1178.             return SendClientMessage(playerid, RED, "You are over the ammount of objects that exist");
  1179.         }
  1180.         if((jbobjectid[index])==0)
  1181.         {
  1182.             return SendClientMessage(playerid, RED, "This object does not exist");
  1183.         }
  1184.         new Float:x,Float:y,Float:z;
  1185.         GetPlayerPos(playerid,x,y,z);
  1186.         objx[index] = x + 5;
  1187.         objy[index] = y;
  1188.         objz[index] = z;
  1189.         MoveDynamicObject(objects[index],objx[index],objy[index],objz[index],100.0,objxrot[index],objyrot[index],objzrot[index]);
  1190.         SendClientMessage(playerid, LIGHTBLUE, "You brought the object over to where you are");
  1191.         for(new i;i < MAX_PLAYERS;i++)
  1192.         {
  1193.             if(IsPlayerConnected(i))
  1194.             {
  1195.                 if((showlabel[i])==1)
  1196.                 {
  1197.                     DeletePlayer3DTextLabel(playerid,objectlabel[i][index]);
  1198.                     format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[index],index,jbobjectid[index]);
  1199.                     objectlabel[i][index] = CreatePlayer3DTextLabel(playerid,string,COLOR,objx[index],objy[index],objz[index],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  1200.                 }
  1201.             }
  1202.         }
  1203.         if((allowence[1][playerid])==1)
  1204.         {
  1205.             if((playersinput)==1)
  1206.             {
  1207.                 for(new count=0;count < MAX_PLAYERS;count++)
  1208.                 {
  1209.                     if(IsPlayerAdmince(count,3))
  1210.                     {
  1211.                         new name[128];
  1212.                         GetPlayerName(playerid,name,sizeof(name));
  1213.                         format(string,sizeof(string),"%s has brought over object id:%i to were he is witch is...",name,index);
  1214.                         SendClientMessage(count,DARKBLUE,string);
  1215.                         format(string,sizeof(string),"x:%f y:%f z:%f--rot--x:%f,y:%f,z:%f",objx[index],objy[index],objz[index],objxrot[index],objyrot[index],objzrot[index]);
  1216.                         SendClientMessage(count,DARKBLUE,string);
  1217.                     }
  1218.                 }
  1219.             }
  1220.         }
  1221.     }
  1222.     else
  1223.     {
  1224.         SendClientMessage(playerid, RED, "You have to be admin level 3 or rcon or have an allowence to moveobjects");
  1225.     }
  1226.     return 1;
  1227. }
  1228. CMD:addobject(playerid,params[])
  1229. {
  1230.     if(IsPlayerAdmince(playerid,3)||(allowence[0][playerid])==1)
  1231.     {
  1232.         ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  1233.         if((allowence[0][playerid])==1)
  1234.         {
  1235.             if((playersinput)==1)
  1236.             {
  1237.                 for(new count=0;count < MAX_PLAYERS;count++)
  1238.                 {
  1239.                     if(IsPlayerAdmince(count,3))
  1240.                     {
  1241.                         new string[128],name[128];
  1242.                         GetPlayerName(playerid,name,sizeof(name));
  1243.                         format(string,128,"%s is adding an object",name);
  1244.                         SendClientMessage(count,DARKBLUE,string);
  1245.                     }
  1246.                 }
  1247.             }
  1248.         }
  1249.     }
  1250.     else
  1251.     {
  1252.         SendClientMessage(playerid, RED, "You have to be atleast admin level 3 or Rcon admin or allowed to addobjects to use this command");
  1253.     }
  1254.     return 1;
  1255. }
  1256. CMD:setobject(playerid,params[])
  1257. {
  1258.     if(IsPlayerAdmince(playerid,3)||(allowence[1][playerid])==1)
  1259.     {
  1260.         new choice[64],choice2[64],input,index;
  1261.         new string[128];
  1262.         if(sscanf(params,"s["#64"]s["#64"]ii",choice2,choice,index,input))
  1263.         {
  1264.             SendClientMessage(playerid, RED, "SYNTAX /setobject [choice2] [choice] [objectid] [ammount]");
  1265.             SendClientMessage(playerid, RED, "Choice:xrot x yrot y zrot z");
  1266.             SendClientMessage(playerid, RED, "Choice2:Set,shift+,shift-");
  1267.             return 1;
  1268.         }
  1269.         oldx[playerid] = objx[index];
  1270.         oldy[playerid] = objy[index];
  1271.         oldz[playerid] = objz[index];
  1272.         oldxrot[playerid] = objxrot[index];
  1273.         oldyrot[playerid] = objyrot[index];
  1274.         oldzrot[playerid] = objzrot[index];
  1275.         if((index) > objectcount||(jbobjectid[index])==0)
  1276.         {
  1277.             return SendClientMessage(playerid, RED, "This object does not exist");
  1278.         }
  1279.         if(strcmp(choice2,"set",true,64)==0)
  1280.         {
  1281.             if(strcmp(choice,"xrot",true,64)==0)
  1282.             {
  1283.                 objxrot[index] = input;
  1284.             }
  1285.             else if(strcmp(choice,"yrot",true,64)==0)
  1286.             {
  1287.                 objyrot[index] = input;
  1288.             }
  1289.             else if(strcmp(choice,"zrot",true,64)==0)
  1290.             {
  1291.                 objzrot[index] = input;
  1292.             }
  1293.             else if(strcmp(choice,"x",true,64)==0)
  1294.             {
  1295.                 objx[index] = input;
  1296.             }
  1297.             else if(strcmp(choice,"y",true,64)==0)
  1298.             {
  1299.                 objy[index] = input;
  1300.             }
  1301.             else if(strcmp(choice,"z",true,64)==0)
  1302.             {
  1303.                 objz[index] = input;
  1304.             }
  1305.             else
  1306.             {
  1307.                 SendClientMessage(playerid, RED, "SYNTAX /setobject [choice2] [choice] [objectid] [ammount]");
  1308.                 SendClientMessage(playerid, RED, "Choice:xrot x yrot y zrot z");
  1309.                 SendClientMessage(playerid, RED, "Choice2:Set,shift+,shift-");
  1310.                 return 1;
  1311.             }
  1312.         }
  1313.         else if(strcmp(choice2,"shift+",true,64)==0)
  1314.         {
  1315.             if(strcmp(choice,"xrot",true,64)==0)
  1316.             {
  1317.                 objxrot[index] =  objxrot[index] + input;
  1318.             }
  1319.             else if(strcmp(choice,"yrot",true,64)==0)
  1320.             {
  1321.                 objyrot[index] = objxrot[index] + input;
  1322.             }
  1323.             else if(strcmp(choice,"zrot",true,64)==0)
  1324.             {
  1325.                 objzrot[index] = objzrot[index] + input;
  1326.             }
  1327.             else if(strcmp(choice,"x",true,64)==0)
  1328.             {
  1329.                 objx[index] = objx[index] + input;
  1330.             }
  1331.             else if(strcmp(choice,"y",true,64)==0)
  1332.             {
  1333.                 objy[index] = objy[index] + input;
  1334.             }
  1335.             else if(strcmp(choice,"z",true,64)==0)
  1336.             {
  1337.                 objz[index] = objz[index] + input;
  1338.             }
  1339.             else
  1340.             {
  1341.                 SendClientMessage(playerid, RED, "SYNTAX /setobject [choice2] [choice] [objectid] [ammount]");
  1342.                 SendClientMessage(playerid, RED, "Choice:xrot x yrot y zrot z");
  1343.                 SendClientMessage(playerid, RED, "Choice2:Set,shift+,shift-");
  1344.                 return 1;
  1345.             }
  1346.         }
  1347.         else if(strcmp(choice2,"shift-",true,64)==0)
  1348.         {
  1349.             if(strcmp(choice,"xrot",true,64)==0)
  1350.             {
  1351.                 objxrot[index] =  objxrot[index] - input;
  1352.             }
  1353.             else if(strcmp(choice,"yrot",true,64)==0)
  1354.             {
  1355.                 objyrot[index] = objxrot[index] - input;
  1356.             }
  1357.             else if(strcmp(choice,"zrot",true,64)==0)
  1358.             {
  1359.                 objzrot[index] = objzrot[index] - input;
  1360.             }
  1361.             else if(strcmp(choice,"x",true,64)==0)
  1362.             {
  1363.                 objx[index] = objx[index] - input;
  1364.             }
  1365.             else if(strcmp(choice,"y",true,64)==0)
  1366.             {
  1367.                 objy[index] = objy[index] - input;
  1368.             }
  1369.             else if(strcmp(choice,"z",true,64)==0)
  1370.             {
  1371.                 objz[index] = objz[index] - input;
  1372.             }
  1373.             else
  1374.             {
  1375.                 SendClientMessage(playerid, RED, "SYNTAX /setobject [choice2] [choice] [objectid] [ammount]");
  1376.                 SendClientMessage(playerid, RED, "Choice:xrot x yrot y zrot z");
  1377.                 SendClientMessage(playerid, RED, "Choice2:Set,shift+,shift-");
  1378.                 return 1;
  1379.             }
  1380.         }
  1381.         else
  1382.         {
  1383.             SendClientMessage(playerid, RED, "SYNTAX /setobject [choice2] [choice] [objectid] [ammount]");
  1384.             SendClientMessage(playerid, RED, "Choice:xrot x yrot y zrot z");
  1385.             SendClientMessage(playerid, RED, "Choice2:Set,shift+,shift-");
  1386.             return 1;
  1387.         }
  1388.         new savestringname[128];
  1389.         MoveDynamicObject(objects[index],objx[index],objy[index],objz[index],10,objxrot[index],objyrot[index],objzrot[index]);
  1390.         SendClientMessage(playerid, LIGHTBLUE, "You have moved this object");
  1391.         format(savestringname,sizeof(savestringname),"objx[%i]",index);
  1392.         dini_IntSet(objectsfilename,savestringname,floatround(objx[index]));
  1393.         format(savestringname,sizeof(savestringname),"objy[%i]",index);
  1394.         dini_IntSet(objectsfilename,savestringname,floatround(objy[index]));
  1395.         format(savestringname,sizeof(savestringname),"objz[%i]",index);
  1396.         dini_IntSet(objectsfilename,savestringname,floatround(objz[index]));
  1397.         format(savestringname,sizeof(savestringname),"objxrot[%i]",index);
  1398.         dini_IntSet(objectsfilename,savestringname,floatround(objxrot[index]));
  1399.         format(savestringname,sizeof(savestringname),"objyrot[%i]",index);
  1400.         dini_IntSet(objectsfilename,savestringname,floatround(objyrot[index]));
  1401.         format(savestringname,sizeof(savestringname),"objzrot[%i]",index);
  1402.         dini_IntSet(objectsfilename,savestringname,floatround(objzrot[index]));
  1403.         format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[index],index,jbobjectid[index]);
  1404.         for(new i=0;i < MAX_PLAYERS;i++)
  1405.         {
  1406.             if(IsPlayerConnected(i))
  1407.             {
  1408.                 if((showlabel[i])==1)
  1409.                 {
  1410.                     DeletePlayer3DTextLabel(i,objectlabel[i][index]);
  1411.                     objectlabel[i][index] = CreatePlayer3DTextLabel(i,string,COLOR,objx[index],objy[index],objz[index],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  1412.                 }
  1413.             }
  1414.         }
  1415.         if((allowence[1][playerid])==1)
  1416.         {
  1417.             if((playersinput)==1)
  1418.             {
  1419.                 for(new count=0;count < MAX_PLAYERS;count++)
  1420.                 {
  1421.                     if(IsPlayerAdmince(count,3))
  1422.                     {
  1423.                         new name[128];
  1424.                         GetPlayerName(playerid,name,sizeof(name));
  1425.                         format(string,sizeof(string),"%s has rotated object id:%i",name,index);
  1426.                         SendClientMessage(count,DARKBLUE,string);
  1427.                         format(string,sizeof(string),"[from] [%f - %f -%f -angle- %f - %f - %f]",oldx[playerid],oldy[playerid],oldz[playerid],oldxrot[playerid],oldyrot[playerid],oldzrot[playerid]);
  1428.                         SendClientMessage(count,DARKBLUE,string);
  1429.                         format(string,128,"[To] [%f - %f -%f -angle- %f - %f - %f]",objx[index],objy[index],objz[index],objxrot[index],objyrot[index],objzrot[index]);
  1430.                         SendClientMessage(count,DARKBLUE,string);
  1431.                     }
  1432.                 }
  1433.             }
  1434.         }
  1435.     }
  1436.     return 1;
  1437. }
  1438. CMD:setobjectcolor(playerid, params[])
  1439. {
  1440.     if(IsPlayerAdmince(playerid,3)||(allowence[1][playerid])==1)
  1441.     {
  1442.         new index,hex:c,choice[64],string[128];
  1443.         if(sscanf(params,"is["#64"]",index,choice))
  1444.         {
  1445.             SendClientMessage(playerid, RED, "SYNTAX /setobjectcolor [objectid] [choice/hexcolor]");
  1446.             SendClientMessage(playerid, RED, "Choice:green,red,blue,yellow,pink,white,grey,purple,orange,normal");
  1447.         }
  1448.         if((index) > objectcount||(jbobjectid[index])==0)
  1449.         {
  1450.             return SendClientMessage(playerid, RED, "This object does not exist");
  1451.         }
  1452.         if(strcmp(choice,"green",true,64)==0)
  1453.         {
  1454.             c = 0xFF00FF00;
  1455.         }
  1456.         else if(strcmp(choice,"red",true,64)==0)
  1457.         {
  1458.             c = 0xA71212FF;
  1459.         }
  1460.         else if(strcmp(choice,"blue",true,64)==0)
  1461.         {
  1462.             c = 0xFF0783B1;
  1463.         }
  1464.         else if(strcmp(choice,"yellow",true,64)==0)
  1465.         {
  1466.             c = 0xFFFFFF06;
  1467.         }
  1468.         else if(strcmp(choice,"pink",true,64)==0)
  1469.         {
  1470.             c = 0xFFFF00FF;
  1471.         }
  1472.         else if(strcmp(choice,"white",true,64)==0)
  1473.         {
  1474.             c = 0xFFFFFFFF;
  1475.         }
  1476.         else if(strcmp(choice,"grey",true,64)==0)
  1477.         {
  1478.             c = 0xFFC0C0C0;
  1479.         }
  1480.         else if(strcmp(choice,"purple",true,64)==0)
  1481.         {
  1482.             c = 0xFF8000FF;
  1483.         }
  1484.         else if(strcmp(choice,"orange",true,64)==0)
  1485.         {
  1486.             c = 0xFFFF8000;
  1487.         }
  1488.         else if(strcmp(choice,"normal",true,64)==0)
  1489.         {
  1490.             c = 0;
  1491.         }
  1492.         else
  1493.         {
  1494.             c = strval(choice);
  1495.             SendClientMessage(playerid, ORANGE,"Note please input a ARGB not a RGBA");
  1496.         }
  1497.         objectcolor[index] = c;
  1498.         if((objectcolor[index])==0)
  1499.         {
  1500.             SetDynamicObjectMaterial(objects[index],0,-1,"none","none",0);
  1501.         }
  1502.         else
  1503.         {
  1504.             SetDynamicObjectMaterial(objects[index],0 ,2707, "Shopping", "white",objectcolor[index]);
  1505.         }
  1506.         new savestringname[128];
  1507.         format(savestringname,sizeof(savestringname),"objectcolor[%i]",index);
  1508.         dini_IntSet(objectsfilename,savestringname,(objectcolor[index]));
  1509.         if((objectcolor[index])==0)
  1510.         {
  1511.             SendClientMessage(playerid, WHITE, "You have set the objects color back to normal");
  1512.         }
  1513.         else
  1514.         {
  1515.             format(string,sizeof(string),"You have set the objects color to %x",objectcolor[index]);
  1516.             SendClientMessage(playerid,LIGHTBLUE,string);
  1517.         }
  1518.         if((allowence[1][playerid])==1)
  1519.         {
  1520.             if((playersinput)==1)
  1521.             {
  1522.                 for(new count=0;count < MAX_PLAYERS;count++)
  1523.                 {
  1524.                     if(IsPlayerAdmince(count,3))
  1525.                     {
  1526.                         new name[128];
  1527.                         GetPlayerName(playerid,name,sizeof(name));
  1528.                         format(string,128,"%s has changed the color for objectid %i",name,index);
  1529.                         SendClientMessage(count,DARKBLUE,string);
  1530.                     }
  1531.                 }
  1532.             }
  1533.         }
  1534.     }
  1535.     else
  1536.     {
  1537.         SendClientMessage(playerid, RED, "You have to be atleast admin level 3 or Rcon admin or allowed to moveobjects to use this command");
  1538.     }
  1539.     return 1;
  1540. }
  1541. CMD:moveawayfromobject(playerid, params[])
  1542. {
  1543.     if(IsPlayerAdmince(playerid,3)||(allowence[0][playerid])==1)
  1544.     {
  1545.         new index,choice[64],ammount;
  1546.         if(sscanf(params,"is["#64"]i",index,choice,ammount))
  1547.         {
  1548.             SendClientMessage(playerid, RED, "/Syntax /moveawayfromobject [objid] [choice] [ammount]");
  1549.             SendClientMessage(playerid, RED, "Choice:x,y,z");
  1550.             return 1;
  1551.         }
  1552.         if(IsPlayerInRangeOfPoint(playerid,25.0,objx[index],objy[index],objz[index]))
  1553.         {
  1554.             if(strcmp(choice,"x",true,64)==0)
  1555.             {
  1556.                 if(IsPlayerInAnyVehicle(playerid))
  1557.                 {      //
  1558.                     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1559.                     {
  1560.                         new vehicleid = GetPlayerVehicleID(playerid);
  1561.                         SetVehiclePos(vehicleid,objx[index]+ammount,objy[index],objz[index]);
  1562.                         SendClientMessage(playerid, YELLOW, "You have teleported away from the object");
  1563.                     }
  1564.                     else
  1565.                     {
  1566.                         SendClientMessage(playerid, RED, "You have to be the driver inorder to teleport from the object");
  1567.                     }
  1568.                 }
  1569.                 else
  1570.                 {
  1571.                     SetPlayerPos(playerid,objx[index]+ammount,objy[index],objz[index]);
  1572.                     SendClientMessage(playerid, YELLOW, "You have teleported away from the object");
  1573.                 }
  1574.             }
  1575.             else if(strcmp(choice,"y",true,64)==0)
  1576.             {
  1577.                 if(IsPlayerInAnyVehicle(playerid))
  1578.                 {      //
  1579.                     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1580.                     {
  1581.                         new vehicleid = GetPlayerVehicleID(playerid);
  1582.                         SetVehiclePos(vehicleid,objx[index],objy[index]+ammount,objz[index]);
  1583.                         SendClientMessage(playerid, YELLOW, "You have teleported away from the object");
  1584.                     }
  1585.                     else
  1586.                     {
  1587.                         SendClientMessage(playerid, RED, "You have to be the driver inorder to teleport from the object");
  1588.                     }
  1589.                 }
  1590.                 else
  1591.                 {
  1592.                     SetPlayerPos(playerid,objx[index],objy[index]+ammount,objz[index]);
  1593.                     SendClientMessage(playerid, YELLOW, "You have teleported away from the object");
  1594.                 }
  1595.             }
  1596.             else if(strcmp(choice,"z",true,64)==0)
  1597.             {
  1598.                 if(IsPlayerInAnyVehicle(playerid))
  1599.                 {      //
  1600.                     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1601.                     {
  1602.                         new vehicleid = GetPlayerVehicleID(playerid);
  1603.                         SetVehiclePos(vehicleid,objx[index],objy[index],objz[index]+ammount);
  1604.                         SendClientMessage(playerid, YELLOW, "You have teleported away from the object");
  1605.                     }
  1606.                     else
  1607.                     {
  1608.                         SendClientMessage(playerid, RED, "You have to be the driver inorder to teleport from the object");
  1609.                     }
  1610.                 }
  1611.                 else
  1612.                 {
  1613.                     SetPlayerPos(playerid,objx[index],objy[index],objz[index]+ammount);
  1614.                     SendClientMessage(playerid, YELLOW, "You have teleported away from the object");
  1615.                 }
  1616.             }
  1617.             else
  1618.             {
  1619.                 SendClientMessage(playerid, RED, "/Syntax /moveawayfromobject [objid] [choice] [ammount]");
  1620.                 SendClientMessage(playerid, RED, "Choice:x,y,z");
  1621.             }
  1622.         }
  1623.         else
  1624.         {
  1625.             SendClientMessage(playerid, RED, "You are to far away from the object inorder to teleport from it");
  1626.         }
  1627.     }
  1628.     else
  1629.     {
  1630.         SendClientMessage(playerid, RED, "You have to be atleast admin level 3 or Rcon admin or allowed to addobjects to use this command");
  1631.     }
  1632.     return 1;
  1633. }
  1634. CMD:moveobject(playerid, params[])
  1635. {
  1636.     if(IsPlayerAdmince(playerid,3)||(allowence[1][playerid])==1)
  1637.     {
  1638.         new index;
  1639.         new string[128];
  1640.         if(sscanf(params,"i",index))
  1641.         {
  1642.             return SendClientMessage(playerid, RED, "SYNTAX:/moveobject [jbobjectid]");
  1643.         }
  1644.         if((index) < objectcount)
  1645.         {
  1646.             EditDynamicObject(playerid,objects[index]);
  1647.             editobjnum[playerid] = index;
  1648.             if((allowence[1][playerid])==1)
  1649.             {
  1650.                 if((playersinput)==1)
  1651.                 {
  1652.                     for(new count=0;count < MAX_PLAYERS;count++)
  1653.                     {
  1654.                         if(IsPlayerAdmince(count,3))
  1655.                         {
  1656.                             new name[128];
  1657.                             GetPlayerName(playerid,name,sizeof(name));
  1658.                             format(string,128,"%s is moveing objectid %i",name,index);
  1659.                             SendClientMessage(count,DARKBLUE,string);
  1660.                         }
  1661.                     }
  1662.                 }
  1663.             }
  1664.         }
  1665.         else
  1666.         {
  1667.             format(string,128,"There are only %i objects, you picked id %i",objectcount,index);
  1668.             SendClientMessage(playerid, RED, string);
  1669.         }
  1670.     }
  1671.     else
  1672.     {
  1673.         SendClientMessage(playerid, RED, "You have to be atleast admin level 3 or Rcon admin or allowed to moveobjects to use this command");
  1674.     }
  1675.     return 1;
  1676. }
  1677. CMD:deleteobject(playerid,params[])
  1678. {
  1679.     if(IsPlayerAdmince(playerid,3)||(allowence[2][playerid])==1)
  1680.     {
  1681.         new index,savestringname[128],string[128];
  1682.         if(sscanf(params,"i",index))
  1683.         {
  1684.             return SendClientMessage(playerid, RED, "SYNTAX:/deleteobject [objectid]");
  1685.         }
  1686.         objx[index] = 0;
  1687.         objy[index] = 0;
  1688.         objz[index] = 0;
  1689.         objxrot[index] = 0;
  1690.         objyrot[index] = 0;
  1691.         objzrot[index] = 0;
  1692.         jbobjectid[index] = 0;
  1693.         objectstring[index] = "";
  1694.         format(savestringname,sizeof(savestringname),"objx[%i]",index);
  1695.         dini_IntSet(objectsfilename,savestringname,floatround(0));
  1696.         dini_Unset(objectsfilename,savestringname);
  1697.         format(savestringname,sizeof(savestringname),"objy[%i]",index);
  1698.         dini_IntSet(objectsfilename,savestringname,floatround(0));
  1699.         dini_Unset(objectsfilename,savestringname);
  1700.         format(savestringname,sizeof(savestringname),"objz[%i]",index);
  1701.         dini_IntSet(objectsfilename,savestringname,floatround(0));
  1702.         dini_Unset(objectsfilename,savestringname);
  1703.         format(savestringname,sizeof(savestringname),"objxrot[%i]",index);
  1704.         dini_IntSet(objectsfilename,savestringname,floatround(0));
  1705.         dini_Unset(objectsfilename,savestringname);
  1706.         format(savestringname,sizeof(savestringname),"objyrot[%i]",index);
  1707.         dini_IntSet(objectsfilename,savestringname,floatround(0));
  1708.         dini_Unset(objectsfilename,savestringname);
  1709.         format(savestringname,sizeof(savestringname),"objzrot[%i]",index);
  1710.         dini_IntSet(objectsfilename,savestringname,floatround(0));
  1711.         dini_Unset(objectsfilename,savestringname);
  1712.         format(savestringname,sizeof(savestringname),"object[%i]",index);
  1713.         dini_IntSet(objectsfilename,savestringname,(0));
  1714.         format(savestringname,sizeof(savestringname),"objectlabel[%i]",index);
  1715.         dini_Set(objectsfilename,savestringname,(""));
  1716.         dini_Unset(objectsfilename,savestringname);
  1717.         format(savestringname,sizeof(savestringname),"objectcolor[%i]",index);
  1718.         dini_IntSet(objectsfilename,savestringname,(0));
  1719.         dini_Unset(objectsfilename,savestringname);
  1720.         DestroyDynamicObject(objects[index]);
  1721.         format(string,128,"You have delete a object [objectid:%i]",index);
  1722.         SendClientMessage(playerid, YELLOW, string);
  1723.         if((allowence[2][playerid])==1)
  1724.         {
  1725.             if((playersinput)==1)
  1726.             {
  1727.                 for(new count=0;count < MAX_PLAYERS;count++)
  1728.                 {
  1729.                     if(IsPlayerAdmince(count,3))
  1730.                     {
  1731.                         new name[128];
  1732.                         GetPlayerName(playerid,name,sizeof(name));
  1733.                         format(string,128,"%s has deleted objectid %i",name,index);
  1734.                         SendClientMessage(count,DARKBLUE,string);
  1735.                     }
  1736.                 }
  1737.             }
  1738.         }
  1739.         for(new i=0;i < MAX_PLAYERS;i++)
  1740.         {
  1741.             DeletePlayer3DTextLabel(i,objectlabel[i][index]);
  1742.         }
  1743.     }
  1744.     else
  1745.     {
  1746.         SendClientMessage(playerid, RED, "You have to be atleast admin level 3 or Rcon admin or allowed to deleteobjects to use this command");
  1747.     }
  1748.     return 1;
  1749. }
  1750. CMD:labeldistance(playerid, params[])
  1751. {
  1752.     if(IsPlayerAdmince(playerid,5))
  1753.     {
  1754.         new input;
  1755.         if(sscanf(params,"i",input))
  1756.         {
  1757.             SendClientMessage(playerid, RED, "Syntax /labeldistance [number]");
  1758.             return 1;
  1759.         }
  1760.         if((input) > 5)
  1761.         {
  1762.             new name[128],string[128]/*,savestringname[128]*/;
  1763.             GetPlayerName(playerid, name,sizeof(name));
  1764.             format(string,128,"[ADMIN:%s] Has Change the label distance from %f to %i",name,DISTANCELABEL,input);
  1765.             DISTANCELABEL = input;
  1766.             dini_IntSet(objectsfilename,"labeldistance",floatround(DISTANCELABEL));
  1767.             SendClientMessageToAll(PINK,string);
  1768.             for(new count=0;count < objectcount;count++)
  1769.             {
  1770.                 for(new i = 0;i < MAX_PLAYERS;i++)
  1771.                 {
  1772.                     if(IsPlayerConnected(i))
  1773.                     {
  1774.                         DeletePlayer3DTextLabel(i,objectlabel[i][count]);
  1775.                     }
  1776.                 }
  1777.             }
  1778.             for(new count=0;count < objectcount;count++)
  1779.             {
  1780.                 for(new i = 0;i < MAX_PLAYERS;i++)
  1781.                 {
  1782.                     if(IsPlayerConnected(i))
  1783.                     {
  1784.                         if((jbobjectid[count])==0)
  1785.                         {
  1786.  
  1787.                         }
  1788.                         else
  1789.                         {
  1790.                             if((showlabel[i])==1)
  1791.                             {
  1792.                                 format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[count],count,jbobjectid[count]);
  1793.                                 objectlabel[i][count] = CreatePlayer3DTextLabel(i,string,COLOR,objx[count],objy[count],objz[count],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  1794.                             }
  1795.                         }
  1796.                     }
  1797.                 }
  1798.             }
  1799.         }
  1800.         else
  1801.         {
  1802.             SendClientMessage(playerid, RED, "The Input has to be atleast five");
  1803.         }
  1804.     }
  1805.     else
  1806.     {
  1807.         SendClientMessage(playerid, RED, "You have to be atleast admin level 5 or Rcon admin to use this command");
  1808.     }
  1809.     return 1;
  1810. }
  1811. CMD:enablelabels(playerid,params[])
  1812. {
  1813.     if((showlabel[playerid])==0)
  1814.     {
  1815.         new savestringname[128],name[128],string[128];
  1816.         GetPlayerName(playerid,name,sizeof(name));
  1817.         showlabel[playerid] = 1;
  1818.         SendClientMessage(playerid, LIGHTBLUE, "You Have Enabled Labels");
  1819.         format(savestringname,sizeof(savestringname),"showlabel[%s]",name);
  1820.         dini_IntSet(objectsfilename,savestringname,(showlabel[playerid]));
  1821.         for(new count=0;count < objectcount;count++)
  1822.         {
  1823.             if((jbobjectid[count])==0)
  1824.             {
  1825.  
  1826.             }
  1827.             else
  1828.             {
  1829.                 format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[count],count,jbobjectid[count]);
  1830.                 objectlabel[playerid][count] = CreatePlayer3DTextLabel(playerid,string,COLOR,objx[count],objy[count],objz[count],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  1831.             }
  1832.         }
  1833.     }
  1834.     else
  1835.     {
  1836.         SendClientMessage(playerid, RED, "You already have enabled labels");
  1837.     }
  1838.     return 1;
  1839. }
  1840. CMD:disablelabels(playerid, params[])
  1841. {
  1842.     if((showlabel[playerid])==1)
  1843.     {
  1844.         new savestringname[128],name[128];
  1845.         GetPlayerName(playerid,name,sizeof(name));
  1846.         showlabel[playerid]=0;
  1847.         SendClientMessage(playerid, LIGHTBLUE, "You Have Disabled Labels");
  1848.         format(savestringname,sizeof(savestringname),"showlabel[%s]",name);
  1849.         dini_IntSet(objectsfilename,savestringname,(showlabel[playerid]));
  1850.         for(new count=0;count < objectcount;count++)
  1851.         {
  1852.             DeletePlayer3DTextLabel(playerid,objectlabel[playerid][count]);
  1853.         }
  1854.     }
  1855.     else
  1856.     {
  1857.         SendClientMessage(playerid, RED, "your labels are off already");
  1858.     }
  1859.     return 1;
  1860. }
  1861. CMD:setplayerlabelstate(playerid,params[])
  1862. {
  1863.     if(IsPlayerAdmince(playerid,4))
  1864.     {
  1865.         new id,input[128],choice[128];
  1866.         if(sscanf(params,"s["#64"]s["#64"]",input,choice))
  1867.         {
  1868.             return SendClientMessage(playerid, RED, "SYNTAX /setplayerlabelstate [playerid/all] [yes/no]");
  1869.         }
  1870.         new adminname[128],savestringname[128],string[128],name[128];
  1871.         GetPlayerName(playerid,adminname,sizeof(adminname));
  1872.         if(strcmp(input,"all",true,64)==0)
  1873.         {
  1874.             if(strcmp(choice,"yes",true,4)==0)
  1875.             {
  1876.                 for(new i=0;i < MAX_PLAYERS;i++)
  1877.                 {
  1878.                     if(IsPlayerConnected(i))
  1879.                     {
  1880.                         if((showlabel[i])==0)
  1881.                         {
  1882.                             for(new count;count < objectcount;count ++)
  1883.                             {
  1884.                                 if((jbobjectid[count])==0)
  1885.                                 {
  1886.  
  1887.                                 }
  1888.                                 else
  1889.                                 {
  1890.                                     showlabel[i] = 1;
  1891.                                     GetPlayerName(i,name,sizeof(name));
  1892.                                     format(savestringname,sizeof(savestringname),"showlabel[%s]",name);
  1893.                                     dini_IntSet(objectsfilename,savestringname,(showlabel[i]));
  1894.                                     format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[count],count,jbobjectid[count]);
  1895.                                     objectlabel[i][count] = CreatePlayer3DTextLabel(i,string,COLOR,objx[count],objy[count],objz[count],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  1896.                                 }
  1897.                             }
  1898.                         }
  1899.                     }
  1900.                 }
  1901.                 format(string,127,"[ADMIN:%s] has enabled all labels",adminname);
  1902.                 SendClientMessageToAll(PINK,string);
  1903.             }
  1904.             else if(strcmp(choice,"no",true,3)==0)
  1905.             {
  1906.                 for(new i=0;i < MAX_PLAYERS;i++)
  1907.                 {
  1908.                     if(IsPlayerConnected(i))
  1909.                     {
  1910.                         if((showlabel[i])==1)
  1911.                         {
  1912.                             for(new count;count < objectcount;count ++)
  1913.                             {
  1914.                                 showlabel[i] = 0;
  1915.                                 GetPlayerName(i,name,sizeof(name));
  1916.                                 format(savestringname,sizeof(savestringname),"showlabel[%s]",name);
  1917.                                 dini_IntSet(objectsfilename,savestringname,(showlabel[i]));
  1918.                                 DeletePlayer3DTextLabel(i,objectlabel[i][count]);
  1919.                             }
  1920.                         }
  1921.                     }
  1922.                 }
  1923.                 format(string,127,"[ADMIN:%s] has disabled all labels",adminname);
  1924.                 SendClientMessageToAll(PINK,string);
  1925.             }
  1926.             else
  1927.             {
  1928.                 SendClientMessage(playerid, RED, "Yes or No");
  1929.             }
  1930.         }
  1931.         else
  1932.         {
  1933.             id = strval(input);
  1934.             GetPlayerName(id,name,sizeof(name));
  1935.             if(!IsPlayerConnected(id))
  1936.             {
  1937.                 return SendClientMessage(playerid, RED, "This id is not connected");
  1938.             }
  1939.             if(strcmp(choice,"yes",true,64)==0)
  1940.             {
  1941.                 if((showlabel[id])==0)
  1942.                 {
  1943.                     showlabel[id] = 1;
  1944.                     format(string,127,"[ADMIN:%s] has enabled %s's labels",adminname,name);
  1945.                     SendClientMessageToAll(PINK,string);
  1946.                     format(savestringname,sizeof(savestringname),"showlabel[%s]",name);
  1947.                     dini_IntSet(objectsfilename,savestringname,(showlabel[id]));
  1948.                     for(new count; count < objectcount;count++)
  1949.                     {
  1950.                         if((jbobjectid[count])==0)
  1951.                         {
  1952.                             format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[count],count,jbobjectid[count]);
  1953.                             objectlabel[id][count] = CreatePlayer3DTextLabel(id,string,COLOR,objx[count],objy[count],objz[count],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  1954.                         }
  1955.                     }
  1956.                 }
  1957.                 else
  1958.                 {
  1959.                     format(string,128,"the labels are already enabled for %s",name);
  1960.                     SendClientMessage(playerid, RED, string);
  1961.                 }
  1962.             }
  1963.             else if(strcmp(choice,"no",true,64)==0)
  1964.             {
  1965.                 if((showlabel[id])==1)
  1966.                 {
  1967.                     showlabel[id] = 0;
  1968.                     format(string,127,"[ADMIN:%s] has Disabled %s's labels",adminname,name);
  1969.                     SendClientMessageToAll(PINK,string);
  1970.                     format(savestringname,sizeof(savestringname),"showlabel[%s]",name);
  1971.                     dini_IntSet(objectsfilename,savestringname,(showlabel[id]));
  1972.                     for(new count;count < objectcount;count++)
  1973.                     {
  1974.                         DeletePlayer3DTextLabel(id,objectlabel[id][count]);
  1975.                     }
  1976.                 }
  1977.                 else
  1978.                 {
  1979.                     format(string,128,"the labels are disabeled enabled for %s",name);
  1980.                 }
  1981.             }
  1982.             else
  1983.             {
  1984.                 SendClientMessage(playerid, RED, "Yes or No");
  1985.             }
  1986.         }
  1987.     }
  1988.     else
  1989.     {
  1990.         SendClientMessage(playerid, RED, "You have to be atleast admin level 4 or Rcon admin to use this command");
  1991.     }
  1992.     return 1;
  1993. }
  1994. CMD:jbobjectscheck(playerid,params[])
  1995. {
  1996.     if(IsPlayerAdmince(playerid,5))
  1997.     {
  1998.         new choice[128],input;
  1999.         if(sscanf(params,"s["#64"]i",choice,input))
  2000.         {
  2001.             SendClientMessage(playerid, RED, "SYNTAX /jbobjectscheck [choice] [input]");
  2002.             SendClientMessage(playerid, RED, "Choices are [objectpos,playersinput]");
  2003.             SendClientMessage(playerid, ORANGE, "NOTE:playerinput requirs a yes[1] or no[0] use appropriate symbol");
  2004.             return 1;
  2005.         }
  2006.         if(strcmp(choice,"objectpos",true,128)==0)
  2007.         {
  2008.                 if((input)< objectcount)
  2009.                 {
  2010.                     if((jbobjectid[input])==0)
  2011.                     {
  2012.                         SendClientMessage(playerid, RED, "this object does not exist");
  2013.                     }
  2014.                     else
  2015.                     {
  2016.                         new Float:ox,Float:oy,Float:oz,Float:oxrot,Float:oyrot,Float:ozrot;
  2017.                         new Float:cx,Float:cy,Float:cz,Float:cxrot,Float:cyrot,Float:czrot;
  2018.                         new savestringname[128],name[128],string[128];
  2019.                         printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%s~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",name);
  2020.                         print("~~~~~~~~~~~~~~~~~~~~~~~checks the object current positions~~~~~~~~~~~~~~~~~");
  2021.                         GetPlayerName(playerid,name,sizeof(name));
  2022.                         GetDynamicObjectPos(objects[input],ox,oy,oz);
  2023.                         GetDynamicObjectRot(objects[input],oxrot,oyrot,ozrot);
  2024.                         format(savestringname,sizeof(savestringname),"objx[%i]",input);
  2025.                         print(savestringname);
  2026.                         cx = dini_Int(objectsfilename,savestringname);
  2027.                         format(savestringname,sizeof(savestringname),"objy[%i]",input);
  2028.                         print(savestringname);
  2029.                         cy = dini_Int(objectsfilename,savestringname);
  2030.                         format(savestringname,sizeof(savestringname),"objz[%i]",input);
  2031.                         print(savestringname);
  2032.                         cz = dini_Int(objectsfilename,savestringname);
  2033.                         format(savestringname,sizeof(savestringname),"objxrot[%i]",input);
  2034.                         print(savestringname);
  2035.                         cxrot = dini_Int(objectsfilename,savestringname);
  2036.                         format(savestringname,sizeof(savestringname),"objyrot[%i]",input);
  2037.                         print(savestringname);
  2038.                         cyrot = dini_Int(objectsfilename,savestringname);
  2039.                         format(savestringname,sizeof(savestringname),"objzrot[%i]",input);
  2040.                         print(savestringname);
  2041.                         czrot = dini_Int(objectsfilename,savestringname);
  2042.                         format(string,sizeof(string),"[ADMIN:%s] has has check the ange for object %i this informat can be found in the console or log",name,input);
  2043.                         SendClientMessageToAll(DARKBLUE,string);
  2044.                         printf("loaded object floats [%f-%f-%f--angle:-%f-%f-%f",cx,cy,cz,cxrot,cyrot,czrot);
  2045.                         printf("CurrentPosition floats [%f-%f-%f--angle:-%f-%f-%f",ox,oy,oz,oxrot,oyrot,ozrot);
  2046.                         print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  2047.                     }
  2048.                 }
  2049.                 else
  2050.                 {
  2051.                     SendClientMessage(playerid,RED,"Object does not exist");
  2052.                 }
  2053.         }
  2054.         else if(strcmp(choice,"playersinput",true,128)==0)
  2055.         {
  2056.             if((input)==0)
  2057.             {
  2058.                 if((playersinput)==1)
  2059.                 {
  2060.                     new name[128],string[128];
  2061.                     GetPlayerName(playerid, name,sizeof(name));
  2062.                     format(string,128,"[ADMIN:%s] has Disabled the reading of the addobject,moveobjects,deleteobject commands",name);
  2063.                     SendClientMessageToAll(PINK,string);
  2064.                     playersinput = 0;
  2065.                 }
  2066.                 else
  2067.                 {
  2068.                     SendClientMessage(playerid, RED, "Players input is not enabled");
  2069.                 }
  2070.             }
  2071.             else if((input)==1)
  2072.             {
  2073.                 if((playersinput)==0)
  2074.                 {
  2075.                     new name[128],string[128];
  2076.                     GetPlayerName(playerid, name,sizeof(name));
  2077.                     format(string,128,"[ADMIN:%s] has Enabled the reading of the addobject,moveobjects,deleteobject commands",name);
  2078.                     SendClientMessageToAll(PINK,string);
  2079.                     playersinput = 1;
  2080.                 }
  2081.                 else
  2082.                 {
  2083.                     SendClientMessage(playerid, RED, "Players input has already been enabled");
  2084.                 }
  2085.             }
  2086.         }
  2087.         else
  2088.         {
  2089.             SendClientMessage(playerid, RED, "You enterd an invalid choice");
  2090.             SendClientMessage(playerid, RED, "Choices are [objectpos,playersinput]");
  2091.             SendClientMessage(playerid, RED, "NOTE:playersinput must be followed by 0 for no 1 for yes");
  2092.         }
  2093.     }
  2094.     else
  2095.     {
  2096.         SendClientMessage(playerid, RED, "You have to be atleast admin level 5 or Rcon admin to use this command");
  2097.     }
  2098.     return 1;
  2099. }
  2100.  
  2101. public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
  2102. {
  2103.     if((editfirstcheck[playerid])==0)
  2104.     {
  2105.         editfirstcheck[playerid] = 1;
  2106.         oldx[playerid] = x;
  2107.         oldy[playerid] = y;
  2108.         oldz[playerid] = z;
  2109.         oldxrot[playerid] = rx;
  2110.         oldyrot[playerid] = ry;
  2111.         oldzrot[playerid] = rz;
  2112.         if((allowence[1][playerid])==1)
  2113.         {
  2114.             if((playersinput)==1)
  2115.             {
  2116.                 for(new count=0;count < MAX_PLAYERS;count++)
  2117.                 {
  2118.                     if(IsPlayerAdmince(count,3))
  2119.                     {
  2120.                         new name[128],string[128];
  2121.                         GetPlayerName(playerid,name,sizeof(name));
  2122.                         format(string,sizeof(string),"%s has started moveing object id:%i",name,editobjnum[playerid]);
  2123.                         SendClientMessage(count,DARKBLUE,string);
  2124.                     }
  2125.                 }
  2126.             }
  2127.         }
  2128.     }
  2129.     if(response == EDIT_RESPONSE_UPDATE)
  2130.     {
  2131.         new string[128], savestringname[128];
  2132.         format(savestringname,sizeof(savestringname),"objectlabel[%i]",editobjnum[playerid]);
  2133.         format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[editobjnum[playerid]],editobjnum[playerid],jbobjectid[editobjnum[playerid]]);
  2134.         for(new i=0;i < MAX_PLAYERS;i++)
  2135.         {
  2136.             if(IsPlayerConnected(i))
  2137.             {
  2138.                 if((showlabel[i])==1)
  2139.                 {
  2140.                     DeletePlayer3DTextLabel(i,objectlabel[i][editobjnum[playerid]]);
  2141.                     objectlabel[i][editobjnum[playerid]] = CreatePlayer3DTextLabel(i,string,COLOR,objx[editobjnum[playerid]],objy[editobjnum[playerid]],objz[editobjnum[playerid]],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  2142.                 }
  2143.             }
  2144.         }
  2145.         objx[editobjnum[playerid]] =x;
  2146.         objy[editobjnum[playerid]] =y;
  2147.         objz[editobjnum[playerid]] =z;
  2148.         objxrot[editobjnum[playerid]] = rx;
  2149.         objyrot[editobjnum[playerid]] = ry;
  2150.         objzrot[editobjnum[playerid]] = rz;
  2151.         MoveDynamicObject(objects[editobjnum[playerid]],objx[editobjnum[playerid]],objy[editobjnum[playerid]],objz[editobjnum[playerid]],10,objxrot[editobjnum[playerid]],objyrot[editobjnum[playerid]],objzrot[editobjnum[playerid]]);
  2152.     }
  2153.     if(response == EDIT_RESPONSE_FINAL)
  2154.     {
  2155.         new savestringname[128];
  2156.         new Float:xpos,Float:ypos,Float:zpos,Float:xposrot,Float:yposrot,Float:zposrot;
  2157.         GetDynamicObjectPos(objects[editobjnum[playerid]],xpos,ypos,zpos);
  2158.         GetDynamicObjectRot(objects[editobjnum[playerid]],xposrot,yposrot,zposrot);
  2159.         objx[editobjnum[playerid]] = xpos;
  2160.         objy[editobjnum[playerid]] = ypos;
  2161.         objz[editobjnum[playerid]] = zpos;
  2162.         objxrot[editobjnum[playerid]] = xposrot;
  2163.         objyrot[editobjnum[playerid]] = yposrot;
  2164.         objzrot[editobjnum[playerid]] = zposrot;
  2165.         SendClientMessage(playerid, LIGHTBLUE, "You have moved this object");
  2166.         format(savestringname,sizeof(savestringname),"objx[%i]",editobjnum[playerid]);
  2167.         dini_IntSet(objectsfilename,savestringname,floatround(objx[editobjnum[playerid]]));
  2168.         format(savestringname,sizeof(savestringname),"objy[%i]",editobjnum[playerid]);
  2169.         dini_IntSet(objectsfilename,savestringname,floatround(objy[editobjnum[playerid]]));
  2170.         format(savestringname,sizeof(savestringname),"objz[%i]",editobjnum[playerid]);
  2171.         dini_IntSet(objectsfilename,savestringname,floatround(objz[editobjnum[playerid]]));
  2172.         format(savestringname,sizeof(savestringname),"objxrot[%i]",editobjnum[playerid]);
  2173.         dini_IntSet(objectsfilename,savestringname,floatround(objxrot[editobjnum[playerid]]));
  2174.         format(savestringname,sizeof(savestringname),"objyrot[%i]",editobjnum[playerid]);
  2175.         dini_IntSet(objectsfilename,savestringname,floatround(objyrot[editobjnum[playerid]]));
  2176.         format(savestringname,sizeof(savestringname),"objzrot[%i]",editobjnum[playerid]);
  2177.         dini_IntSet(objectsfilename,savestringname,floatround(objzrot[editobjnum[playerid]]));
  2178.         editfirstcheck[playerid] = 0;
  2179.         if((allowence[1][playerid])==1)
  2180.         {
  2181.             if((playersinput)==1)
  2182.             {
  2183.                 for(new count=0;count < MAX_PLAYERS;count++)
  2184.                 {
  2185.                     if(IsPlayerAdmince(count,3))
  2186.                     {
  2187.                         new name[128],string[128];
  2188.                         GetPlayerName(playerid,name,sizeof(name));
  2189.                         format(string,sizeof(string),"%s has moved object id:%i",name,editobjnum[playerid]);
  2190.                         SendClientMessage(count,DARKBLUE,string);
  2191.                         format(string,sizeof(string),"[from] [%f - %f -%f -angle- %f - %f - %f]",oldx[playerid],oldy[playerid],oldz[playerid],oldxrot[playerid],oldyrot[playerid],oldzrot[playerid]);
  2192.                         SendClientMessage(count,DARKBLUE,string);
  2193.                         format(string,128,"[To] [%f - %f -%f -angle- %f - %f - %f]",objx[editobjnum[playerid]],objy[editobjnum[playerid]],objz[editobjnum[playerid]],objxrot[editobjnum[playerid]],objyrot[editobjnum[playerid]],objzrot[editobjnum[playerid]]);
  2194.                         SendClientMessage(count,DARKBLUE,string);
  2195.                     }
  2196.                 }
  2197.             }
  2198.         }
  2199.     }
  2200.     if(response == EDIT_RESPONSE_CANCEL)
  2201.     {
  2202.         new /*string[128],*/ savestringname[128];
  2203.         format(savestringname,sizeof(savestringname),"objectlabel[%i]",editobjnum[playerid]);
  2204.         editfirstcheck[playerid] = 0;
  2205.         MoveDynamicObject(objectid,oldx[playerid],oldy[playerid],oldz[playerid],10,oldxrot[playerid],oldyrot[playerid],oldzrot[playerid]);
  2206.         editobjnum[playerid] = -1;
  2207.         format(savestringname,sizeof(savestringname),"objx[%i]",editobjnum[playerid]);
  2208.         dini_IntSet(objectsfilename,savestringname,floatround(oldx[playerid]));
  2209.         format(savestringname,sizeof(savestringname),"objy[%i]",editobjnum[playerid]);
  2210.         dini_IntSet(objectsfilename,savestringname,floatround(oldy[playerid]));
  2211.         format(savestringname,sizeof(savestringname),"objz[%i]",editobjnum[playerid]);
  2212.         dini_IntSet(objectsfilename,savestringname,floatround(oldz[playerid]));
  2213.         format(savestringname,sizeof(savestringname),"objxrot[%i]",editobjnum[playerid]);
  2214.         dini_IntSet(objectsfilename,savestringname,floatround(oldxrot[playerid]));
  2215.         format(savestringname,sizeof(savestringname),"objyrot[%i]",editobjnum[playerid]);
  2216.         dini_IntSet(objectsfilename,savestringname,floatround(oldyrot[playerid]));
  2217.         format(savestringname,sizeof(savestringname),"objzrot[%i]",editobjnum[playerid]);
  2218.         dini_IntSet(objectsfilename,savestringname,floatround(oldzrot[playerid]));
  2219.     }
  2220.     return 1;
  2221. }
  2222. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2223. {
  2224.     if(dialogid == DIALOG_ADDOBJECTS)
  2225.     {
  2226.         if(response)
  2227.         {
  2228.             if(listitem == 0)
  2229.             {
  2230.                 ShowPlayerDialog(playerid, DIALOG_CUSTOMINPUT, DIALOG_STYLE_INPUT,"Manualy enter","Enter the id of the object you want to add","OK","Back");
  2231.             }
  2232.             else if(listitem ==1)
  2233.             {
  2234.                 ShowPlayerDialog(playerid,DIALOG_SAMPLOGOS,DIALOG_STYLE_LIST,"SAMP logos","SAMPLogoSmall\nSAMPLogoBig","Ok","Back");
  2235.             }
  2236.             //I did not include partical effects becuse it lasts only like one second for some of them if you want it follow these instruction
  2237.             //ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2238.             //make sure you put it as the third one(after SA:MP Logos)
  2239.             //uncomment the section below.. if(listitem ==2)
  2240.             //make sure in this catagory you change the number back to the right order EXAPLE: if(listitem ==0) --next-- if(listitem ==1)
  2241.             //make sure you uncomment the section bellow that has the labels DIALOG_PARTICLEEFFECTSP1,DIALOG_PARTICLEEFFECTSP2,DIALOG_PARTICLEEFFECTSP3,DIALOG_PARTICLEEFFECTSP4,DIALOG_PARTICLEEFFECTSP5)
  2242.             //make sure you uncomment the section called DIALOG_PARTICLEEFFECTS for the pages
  2243.             //you are done and ready to use the script if you don't do one this chances are that the script will not work
  2244.             //if you want to revers it ether redownload or reverse these steps
  2245.             /*else if(listitem ==2)
  2246.             {
  2247.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTS,DIALOG_STYLE_LIST,"Particle effects","Page1\nPage2\nPage3\nPage4\nPage5","Ok","Back");
  2248.             }*/
  2249.             else if(listitem ==2)
  2250.             {
  2251.                 ShowPlayerDialog(playerid,DIALOG_LANDMASSES,DIALOG_STYLE_LIST,"Land Masses","Volcano\nIslandBase1","Ok","Back");
  2252.             }
  2253.             else if(listitem ==3)
  2254.             {
  2255.                 ShowPlayerDialog(playerid,DIALOG_BASES,DIALOG_STYLE_LIST,"Base Sections","Base125mx125m1\nBase250mx250m1","Ok","Back");
  2256.             }
  2257.             else if(listitem ==4)
  2258.             {
  2259.                 ShowPlayerDialog(playerid,DIALOG_ELEVATOR,DIALOG_STYLE_LIST,"Elevators","VCElevator1\nElevatorDoor1\nElevatorDoor2\nVCElevatorFront1","Ok","Back");
  2260.             }
  2261.             else if(listitem ==5)
  2262.             {
  2263.                 ShowPlayerDialog(playerid,DIALOG_DMCAGES,DIALOG_STYLE_LIST,"DM Cages","DMCage1\nDMCage2","Ok","Back");
  2264.             }
  2265.             else if(listitem ==6)
  2266.             {
  2267.                 //18761 RaceFinishLine1
  2268.                 playerpick[playerid]=1;
  2269.                 format(objectstring[objectcount],128,"RaceFinishLine1");
  2270.                 jbobjectid[objectcount]= 18761;
  2271.             }
  2272.             else if(listitem ==7)
  2273.             {
  2274.                 ShowPlayerDialog(playerid,DIALOG_PARKOUR,DIALOG_STYLE_LIST,"ParkOur","Concrete1mx1mx5m\nConcrete3mx3mx5m\nConcrete5mx5mx5m\nConcrete10mx10mx5m\nConcrete10mx1mx5m\nConcreteStair1","Ok","Back");
  2275.             }
  2276.             else if(listitem ==8)
  2277.             {
  2278.                 ShowPlayerDialog(playerid,DIALOG_PLATFORMS,DIALOG_STYLE_LIST,"Platforms","SkyDivePlatform1\nSkyDivePlatform1a\nSkyDivePlatform1b\nSpiralStair1","Ok","Back");
  2279.             }
  2280.             else if(listitem ==9)
  2281.             {
  2282.                 ShowPlayerDialog(playerid,DIALOG_TUNNELS,DIALOG_STYLE_LIST,"Tunnels","TunnelSection1\nTunnelJoinSection1\nTunnelJoinSection2\nTunnelJoinSection3\nTunnelJoinSection4\nTunnelSpiral1","Ok","Back");
  2283.             }
  2284.             else if(listitem ==10)
  2285.             {
  2286.                 ShowPlayerDialog(playerid,DIALOG_RAMPS,DIALOG_STYLE_LIST,"Ramps","RampT1\nRampT2\nRampT3\nMeshRampBig\nCookieRamp1\nFunBoxTop1\nFunBoxRamp1\nFunBoxRamp2\nFunBoxRamp3\nFunBoxRamp4","Ok","Back");
  2287.             }
  2288.             else if(listitem ==11)
  2289.             {
  2290.                 ShowPlayerDialog(playerid,DIALOG_ROADS,DIALOG_STYLE_LIST,"Roads","MRoad40m\nMRoad150m\nMRoadBend180Deg1\nMRoadBend45Deg\nMRoadTwist15DegL\nMRoadTwist15DegR\nMRoadBend15Deg1\nMRoadBend15Deg2\nMRoadBend15Deg3\nMRoadBend15Deg4\nMRoadB45T15DegL\nMRoadB45T15DegR\nMRoadHelix1\nMRoadLoop1","Ok","Back");
  2291.             }
  2292.             else if(listitem ==12)
  2293.             {
  2294.                 ShowPlayerDialog(playerid,DIALOG_BRIDGES,DIALOG_STYLE_LIST,"Bridges","MBridgeRamp1\nMBridge150m1\nMBridge150m2\nMBridge150m3\nMBridge150m4\nMBridge75mHalf","Ok","Back");
  2295.             }
  2296.             else if(listitem ==13)
  2297.             {
  2298.                 ShowPlayerDialog(playerid,DIALOG_TUBES,DIALOG_STYLE_LIST,"Tubes","Page1\nPage2","Ok","Back");
  2299.             }
  2300.             else if(listitem ==14)
  2301.             {
  2302.                 ShowPlayerDialog(playerid,DIALOG_SPHERES,DIALOG_STYLE_LIST,"Spheres","GlassSphere1\nWaterUVAnimSphere1\nRTexturesphere","Ok","Back");
  2303.             }
  2304.             else if(listitem ==15)
  2305.             {
  2306.                 ShowPlayerDialog(playerid,DIALOG_OTHERS,DIALOG_STYLE_LIST,"Others","HugeHalfPipe1\nSamSiteNonDynamic\nParaDropNonDynamic\nHeliPad1","Ok","Back");
  2307.             }
  2308.             else if(listitem ==16)
  2309.             {
  2310.                 ShowPlayerDialog(playerid,DIALOG_FAVORITEADDDELETE,DIALOG_STYLE_LIST,"Delete&Add","Addobject\nDeleteobject\nInport object to game","Ok","Back");
  2311.             }
  2312.         }
  2313.         else
  2314.         {
  2315.             SendClientMessage(playerid, RED, "You have closed the diolog boxes");
  2316.         }
  2317.     }
  2318.     //main screen ends
  2319.     else if(dialogid == DIALOG_CUSTOMINPUT)
  2320.     {
  2321.         if(response)
  2322.         {
  2323.             new val;
  2324.             val = strval(inputtext);
  2325.             if((val)==0)
  2326.             {
  2327.                 return SendClientMessage(playerid, RED, "You have to enter a valid number, you entered 0 or a string");
  2328.             }
  2329.             jbobjectid[objectcount] = strval(inputtext);
  2330.             ShowPlayerDialog(playerid,DIALOG_CUSTOMINPUTSTRING,DIALOG_STYLE_INPUT,"Object Name","please enter the name of you object if you don't want to the just click defualt","Ok","defualt");
  2331.         }
  2332.         else
  2333.         {
  2334.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2335.         }
  2336.     }
  2337.     else if(dialogid == DIALOG_SAMPLOGOS)
  2338.     {
  2339.         if(response)
  2340.         {
  2341.             if(listitem ==0)
  2342.             {
  2343.                 //18749 SAMPLogoSmall
  2344.                 playerpick[playerid]=1;
  2345.                 format(objectstring[objectcount],128,"SAMPLogoSmall");
  2346.                 jbobjectid[objectcount]= 18749;
  2347.             }
  2348.             else if(listitem ==1)
  2349.             {
  2350.             //18750 SAMPLogoBig
  2351.             playerpick[playerid]=1;
  2352.             format(objectstring[objectcount],128,"SAMPLogoBig");
  2353.             jbobjectid[objectcount]= 18750;
  2354.             }
  2355.         }
  2356.         else
  2357.         {
  2358.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2359.         }
  2360.     }
  2361.     //remove this becuse it disapears after 1 second
  2362.     /*else if(dialogid == DIALOG_PARTICLEEFFECTS)
  2363.     {
  2364.         if(response)
  2365.         {
  2366.             if(listitem == 0)
  2367.             {
  2368.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP1,DIALOG_STYLE_LIST,"Particle effects","blood_heli\nboat_prop\ncamflash\ncarwashspray\ncementp\ncigarette_smoke\ncloudfast\ncoke_puff\ncoke_trail\nexhale\nexplosion_barrel\nexplosion_crate\nexplosion_door\nexplosion_fuel_car\nexplosion_large\nexplosion_medium\nexplosion_molotov\nexplosion_small\nexplosion_tiny\n nextpage","Ok","Back");
  2369.             }
  2370.             else if(listitem == 1)
  2371.             {
  2372.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP2,DIALOG_STYLE_LIST,"Particle effects","extinguisher\nfire\nfire_bike+\nfire_car\nfire_large\nfire_med\nFlame\nflamethrower\ngunflash\ngunsmoke\nheli_dust\n nextpage\nbackpage","Ok","Back");
  2373.             }
  2374.             else if(listitem == 2)
  2375.             {
  2376.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP3,DIALOG_STYLE_LIST,"Particle effects","insects\njetpack\njetthrust\nmolotov_flame\nnitro\noverheat_car\noverheat_car_elec\npetrolcan\nprt_blood\nprt_boatsplash\nprt_bubble\nprt_cardebris\nprt_collisionsmoke\nprt_glass\nprt_gunshell\nprt_sand2\nprt_sand\n Next page\nbackpage","Ok","Back");
  2377.             }
  2378.             else if(listitem == 3)
  2379.             {
  2380.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP4,DIALOG_STYLE_LIST,"Particle effects","prt_smoke_huge\nprt_smoke_expand\nprt_spark\nprt_spark_2\nprt_wake\nprt_watersplash\nprt_wheeldirt\npuke\nriot_smoke\nshootlight\nsmoke30lit\nsmoke30m\nsmoke50lit\nsmoke_flare\nspraycan\n nextpage\nbackpage","Ok","Back");
  2381.             }
  2382.             else if(listitem == 4)
  2383.             {
  2384.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP5,DIALOG_STYLE_LIST,"Particle effects","tank_fire\nteargas\nteargasAD\ntree_hit_fir\ntree_hit_palm\nvent2\nvent\nwallbust\nwater_fnt_tme\nwater_fountain\nwater_hydrant\nwater_ripples\nwater_speed\nwater_splash\nwater_splash_big\nwater_splsh_sml\nwater_swim\nwaterfall_end\nWS_factorysmoke\nbackpage","Ok","Back");
  2385.             }
  2386.         }
  2387.         else
  2388.         {
  2389.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2390.         }
  2391.     }*/
  2392.     else if(dialogid == DIALOG_LANDMASSES)
  2393.     {
  2394.         if(response)
  2395.         {
  2396.             if(listitem ==0)
  2397.             {
  2398.                 //18751 IslandBase1
  2399.                 playerpick[playerid]=1;
  2400.                 format(objectstring[objectcount],128,"IslandBase1");
  2401.                 jbobjectid[objectcount]= 18751;
  2402.             }
  2403.             else if(listitem ==1)
  2404.             {
  2405.                 //18752 Volcano
  2406.                 playerpick[playerid]=1;
  2407.                 format(objectstring[objectcount],128,"Volcano");
  2408.                 jbobjectid[objectcount]= 18752;
  2409.             }
  2410.         }
  2411.         else
  2412.         {
  2413.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2414.         }
  2415.     }
  2416.     else if(dialogid == DIALOG_BASES)
  2417.     {
  2418.         if(response)
  2419.         {
  2420.             if(listitem ==0)
  2421.             {
  2422.                 //18753 Base125mx125m1
  2423.                 playerpick[playerid]=1;
  2424.                 format(objectstring[objectcount],128,"Base125mx125m1");
  2425.                 jbobjectid[objectcount]= 18753;
  2426.             }
  2427.             else if(listitem ==1)
  2428.             {
  2429.                 //18754 Base250mx250m1
  2430.                 playerpick[playerid]=1;
  2431.                 format(objectstring[objectcount],128,"Base250mx250m1");
  2432.                 jbobjectid[objectcount]= 18754;
  2433.             }
  2434.         }
  2435.         else
  2436.         {
  2437.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2438.         }
  2439.     }
  2440.     else if(dialogid == DIALOG_ELEVATOR)
  2441.     {
  2442.         if(response)
  2443.         {
  2444.             if(listitem ==0)
  2445.             {
  2446.                 //18755 VCElevator1
  2447.                 playerpick[playerid]=1;
  2448.                 format(objectstring[objectcount],128,"VCElevator1");
  2449.                 jbobjectid[objectcount]= 18755;
  2450.             }
  2451.             else if(listitem ==1)
  2452.             {
  2453.                 //18756 ElevatorDoor1
  2454.                 playerpick[playerid]=1;
  2455.                 format(objectstring[objectcount],128,"ElevatorDoor1");
  2456.                 jbobjectid[objectcount]= 18756;
  2457.             }
  2458.             else if(listitem ==2)
  2459.             {
  2460.                 //18757 ElevatorDoor2
  2461.                 playerpick[playerid]=1;
  2462.                 format(objectstring[objectcount],128,"ElevatorDoor2");
  2463.                 jbobjectid[objectcount]= 18757;
  2464.             }
  2465.             else if(listitem ==3)
  2466.             {
  2467.                 //18758 VCElevatorFront1
  2468.                 playerpick[playerid]=1;
  2469.                 format(objectstring[objectcount],128,"VCElevatorFront1");
  2470.                 jbobjectid[objectcount]= 18758;
  2471.             }
  2472.         }
  2473.         else
  2474.         {
  2475.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2476.         }
  2477.     }
  2478.     else if(dialogid == DIALOG_DMCAGES)
  2479.     {
  2480.         if(response)
  2481.         {
  2482.             if(listitem ==0)
  2483.             {
  2484.                 //18759 DMCage1
  2485.                 playerpick[playerid]=1;
  2486.                 format(objectstring[objectcount],128,"DMCage1");
  2487.                 jbobjectid[objectcount]= 18759;
  2488.             }
  2489.             else if(listitem ==1)
  2490.             {
  2491.                 //18760 DMCage2
  2492.                 playerpick[playerid]=1;
  2493.                 format(objectstring[objectcount],128,"DMCage2");
  2494.                 jbobjectid[objectcount]= 18760;
  2495.             }
  2496.         }
  2497.         else
  2498.         {
  2499.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2500.         }
  2501.     }
  2502.     else if(dialogid == DIALOG_PARKOUR)
  2503.     {
  2504.         if(response)
  2505.         {
  2506.             if(listitem ==0)
  2507.             {
  2508.                 //18762 Concrete1mx1mx5m
  2509.                 playerpick[playerid]=1;
  2510.                 format(objectstring[objectcount],128,"Concrete1mx1mx5m");
  2511.                 jbobjectid[objectcount]= 18762;
  2512.             }
  2513.             else if(listitem ==1)
  2514.             {
  2515.                 //18763 Concrete3mx3mx5m
  2516.                 playerpick[playerid]=1;
  2517.                 format(objectstring[objectcount],128,"Concrete3mx3mx5m");
  2518.                 jbobjectid[objectcount]= 18763;
  2519.             }
  2520.             else if(listitem ==2)
  2521.             {
  2522.                 //18764 Concrete5mx5mx5m
  2523.                 playerpick[playerid]=1;
  2524.                 format(objectstring[objectcount],128,"Concrete5mx5mx5m");
  2525.                 jbobjectid[objectcount]= 18764;
  2526.             }
  2527.             else if(listitem ==3)
  2528.             {
  2529.                 //18765 Concrete10mx10mx5m
  2530.                 playerpick[playerid]=1;
  2531.                 format(objectstring[objectcount],128,"Concrete10mx10mx5m");
  2532.                 jbobjectid[objectcount]= 18765;
  2533.             }
  2534.             else if(listitem ==4)
  2535.             {
  2536.                 //18766 Concrete10mx1mx5m
  2537.                 playerpick[playerid]=1;
  2538.                 format(objectstring[objectcount],128,"Concrete10mx1mx5m");
  2539.                 jbobjectid[objectcount]= 18766;
  2540.             }
  2541.             else if(listitem ==5)
  2542.             {
  2543.                 //18767 ConcreteStair1
  2544.                 playerpick[playerid]=1;
  2545.                 format(objectstring[objectcount],128,"ConcreteStair1");
  2546.                 jbobjectid[objectcount]= 18767;
  2547.             }
  2548.         }
  2549.         else
  2550.         {
  2551.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2552.         }
  2553.     }
  2554.     else if(dialogid == DIALOG_PLATFORMS)
  2555.     {
  2556.         if(response)
  2557.         {
  2558.             if(listitem ==0)
  2559.             {
  2560.                 //18768 SkyDivePlatform1
  2561.                 playerpick[playerid]=1;
  2562.                 format(objectstring[objectcount],128,"SkyDivePlatform1");
  2563.                 jbobjectid[objectcount]= 18768;
  2564.             }
  2565.             else if(listitem ==1)
  2566.             {
  2567.                 //18769 SkyDivePlatform1a
  2568.                 playerpick[playerid]=1;
  2569.                 format(objectstring[objectcount],128,"SkyDivePlatform1a");
  2570.                 jbobjectid[objectcount]= 18769;
  2571.             }
  2572.             else if(listitem ==2)
  2573.             {
  2574.                 //18770 SkyDivePlatform1b
  2575.                 playerpick[playerid]=1;
  2576.                 format(objectstring[objectcount],128,"SkyDivePlatform1b");
  2577.                 jbobjectid[objectcount]= 18770;
  2578.             }
  2579.             else if(listitem ==3)
  2580.             {
  2581.                 //18771 SpiralStair1
  2582.                 playerpick[playerid]=1;
  2583.                 format(objectstring[objectcount],128,"SpiralStair1");
  2584.                 jbobjectid[objectcount]= 18771;
  2585.             }
  2586.         }
  2587.         else
  2588.         {
  2589.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2590.         }
  2591.     }
  2592.     else if(dialogid == DIALOG_TUNNELS)
  2593.     {
  2594.         if(response)
  2595.         {
  2596.             if(listitem ==0)
  2597.             {
  2598.                 //18772 TunnelSection1
  2599.                 playerpick[playerid]=1;
  2600.                 format(objectstring[objectcount],128,"TunnelSection1");
  2601.                 jbobjectid[objectcount]= 18772;
  2602.             }
  2603.             else if(listitem ==1)
  2604.             {
  2605.                 //18773 TunnelJoinSection1
  2606.                 playerpick[playerid]=1;
  2607.                 format(objectstring[objectcount],128,"TunnelJoinSection1");
  2608.                 jbobjectid[objectcount]= 18773;
  2609.             }
  2610.             else if(listitem ==2)
  2611.             {
  2612.                 //18774 TunnelJoinSection2
  2613.                 playerpick[playerid]=1;
  2614.                 format(objectstring[objectcount],128,"TunnelJoinSection2");
  2615.                 jbobjectid[objectcount]= 18774;
  2616.             }
  2617.             else if(listitem ==3)
  2618.             {
  2619.                 //18775 TunnelJoinSection3
  2620.                 playerpick[playerid]=1;
  2621.                 format(objectstring[objectcount],128,"TunnelJoinSection3");
  2622.                 jbobjectid[objectcount]= 18775;
  2623.             }
  2624.             else if(listitem ==4)
  2625.             {
  2626.                 //18776 TunnelJoinSection4
  2627.                 playerpick[playerid]=1;
  2628.                 format(objectstring[objectcount],128,"TunnelJoinSection4");
  2629.                 jbobjectid[objectcount]= 18776;
  2630.             }
  2631.             else if(listitem ==5)
  2632.             {
  2633.                 //18777 TunnelSpiral1
  2634.                 playerpick[playerid]=1;
  2635.                 format(objectstring[objectcount],128,"TunnelSpiral1");
  2636.                 jbobjectid[objectcount]= 18777;
  2637.             }
  2638.         }
  2639.         else
  2640.         {
  2641.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2642.         }
  2643.     }
  2644.     else if(dialogid == DIALOG_RAMPS)
  2645.     {
  2646.         if(response)
  2647.         {
  2648.             if(listitem ==0)
  2649.             {
  2650.                 //18778 RampT1
  2651.                 playerpick[playerid]=1;
  2652.                 format(objectstring[objectcount],128,"RampT1");
  2653.                 jbobjectid[objectcount]= 18778;
  2654.             }
  2655.             else if(listitem ==1)
  2656.             {
  2657.                 //18779 RampT2
  2658.                 playerpick[playerid]=1;
  2659.                 format(objectstring[objectcount],128,"RampT2");
  2660.                 jbobjectid[objectcount]= 18779;
  2661.             }
  2662.             else if(listitem ==2)
  2663.             {
  2664.                 //18780 RampT3
  2665.                 playerpick[playerid]=1;
  2666.                 format(objectstring[objectcount],128,"RampT3");
  2667.                 jbobjectid[objectcount]= 18780;
  2668.             }
  2669.             else if(listitem ==3)
  2670.             {
  2671.                 //18781 MeshRampBig
  2672.                 playerpick[playerid]=1;
  2673.                 format(objectstring[objectcount],128,"MeshRampBig");
  2674.                 jbobjectid[objectcount]= 18781;
  2675.             }
  2676.             else if(listitem ==4)
  2677.             {
  2678.                 //18782 CookieRamp1
  2679.                 playerpick[playerid]=1;
  2680.                 format(objectstring[objectcount],128,"CookieRamp1");
  2681.                 jbobjectid[objectcount]= 18782 ;
  2682.             }
  2683.             else if(listitem ==5)
  2684.             {
  2685.                 //18783 FunBoxTop1
  2686.                 playerpick[playerid]=1;
  2687.                 format(objectstring[objectcount],128,"FunBoxTop1");
  2688.                 jbobjectid[objectcount]= 18783;
  2689.             }
  2690.             else if(listitem ==6)
  2691.             {
  2692.                 //18784 FunBoxRamp1
  2693.                 playerpick[playerid]=1;
  2694.                 format(objectstring[objectcount],128,"FunBoxRamp1");
  2695.                 jbobjectid[objectcount]= 18784;
  2696.             }
  2697.             else if(listitem ==7)
  2698.             {
  2699.                 //18785 FunBoxRamp2
  2700.                 playerpick[playerid]=1;
  2701.                 format(objectstring[objectcount],128,"FunBoxRamp2");
  2702.                 jbobjectid[objectcount]= 18785;
  2703.             }
  2704.             else if(listitem ==8)
  2705.             {
  2706.                 //18786 FunBoxRamp3
  2707.                 playerpick[playerid]=1;
  2708.                 format(objectstring[objectcount],128,"FunBoxRamp3");
  2709.                 jbobjectid[objectcount]= 18786;
  2710.             }
  2711.             else if(listitem ==9)
  2712.             {
  2713.                 //18787 FunBoxRamp4
  2714.                 playerpick[playerid]=1;
  2715.                 format(objectstring[objectcount],128,"FunBoxRamp4");
  2716.                 jbobjectid[objectcount]= 18787;
  2717.             }
  2718.         }
  2719.         else
  2720.         {
  2721.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2722.         }
  2723.     }
  2724.     else if(dialogid == DIALOG_ROADS)
  2725.     {
  2726.         if(response)
  2727.         {
  2728.             if(listitem ==0)
  2729.             {
  2730.                 //18788 MRoad40m
  2731.                 playerpick[playerid]=1;
  2732.                 format(objectstring[objectcount],128,"MRoad40m");
  2733.                 jbobjectid[objectcount]= 18788;
  2734.             }
  2735.             else if(listitem ==1)
  2736.             {
  2737.                 //18789 MRoad150m
  2738.                 playerpick[playerid]=1;
  2739.                 format(objectstring[objectcount],128,"MRoad150m");
  2740.                 jbobjectid[objectcount]= 18789;
  2741.             }
  2742.             else if(listitem ==2)
  2743.             {
  2744.                 //18790 MRoadBend180Deg1
  2745.                 playerpick[playerid]=1;
  2746.                 format(objectstring[objectcount],128,"MRoadBend180Deg1");
  2747.                 jbobjectid[objectcount]= 18790;
  2748.             }
  2749.             else if(listitem ==3)
  2750.             {
  2751.                 //18791 MRoadBend45Deg
  2752.                 playerpick[playerid]=1;
  2753.                 format(objectstring[objectcount],128,"MRoadBend45Deg");
  2754.                 jbobjectid[objectcount]= 18791;
  2755.             }
  2756.             else if(listitem ==4)
  2757.             {
  2758.                 //18792 MRoadTwist15DegL
  2759.                 playerpick[playerid]=1;
  2760.                 format(objectstring[objectcount],128,"MRoadTwist15DegL");
  2761.                 jbobjectid[objectcount]= 18792;
  2762.             }
  2763.             else if(listitem ==5)
  2764.             {
  2765.                 //18793 MRoadTwist15DegR
  2766.                 playerpick[playerid]=1;
  2767.                 format(objectstring[objectcount],128,"MRoadTwist15DegR");
  2768.                 jbobjectid[objectcount]= 18793;
  2769.             }
  2770.             else if(listitem ==6)
  2771.             {
  2772.                 //18794 MRoadBend15Deg1
  2773.                 playerpick[playerid]=1;
  2774.                 format(objectstring[objectcount],128,"MRoadBend15Deg1");
  2775.                 jbobjectid[objectcount]= 18794;
  2776.             }
  2777.             else if(listitem ==7)
  2778.             {
  2779.                 //18795 MRoadBend15Deg2
  2780.                 playerpick[playerid]=1;
  2781.                 format(objectstring[objectcount],128,"MRoadBend15Deg2");
  2782.                 jbobjectid[objectcount]= 18795;
  2783.             }
  2784.             else if(listitem ==8)
  2785.             {
  2786.                 //18796 MRoadBend15Deg3
  2787.                 playerpick[playerid]=1;
  2788.                 format(objectstring[objectcount],128,"MRoadBend15Deg3");
  2789.                 jbobjectid[objectcount]= 18796;
  2790.             }
  2791.             else if(listitem ==9)
  2792.             {
  2793.                 //18797 MRoadBend15Deg4
  2794.                 playerpick[playerid]=1;
  2795.                 format(objectstring[objectcount],128,"MRoadBend15Deg4");
  2796.                 jbobjectid[objectcount]= 18797;
  2797.             }
  2798.             else if(listitem ==10)
  2799.             {
  2800.                 //18798 MRoadB45T15DegL
  2801.                 playerpick[playerid]=1;
  2802.                 format(objectstring[objectcount],128,"MRoadB45T15DegL");
  2803.                 jbobjectid[objectcount]= 18798;
  2804.             }
  2805.             else if(listitem ==11)
  2806.             {
  2807.                 //18799 MRoadB45T15DegR
  2808.                 playerpick[playerid]=1;
  2809.                 format(objectstring[objectcount],128,"MRoadB45T15DegR");
  2810.                 jbobjectid[objectcount]= 18799;
  2811.             }
  2812.             else if(listitem ==12)
  2813.             {
  2814.                 //18800 MRoadHelix1
  2815.                 playerpick[playerid]=1;
  2816.                 format(objectstring[objectcount],128,"MRoadHelix1");
  2817.                 jbobjectid[objectcount]= 18800;
  2818.             }
  2819.             else if(listitem ==13)
  2820.             {
  2821.                 //18801 MRoadLoop1
  2822.                 playerpick[playerid]=1;
  2823.                 format(objectstring[objectcount],128,"MRoadLoop1");
  2824.                 jbobjectid[objectcount]= 18801;
  2825.             }
  2826.         }
  2827.         else
  2828.         {
  2829.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2830.         }
  2831.     }
  2832.     else if(dialogid == DIALOG_BRIDGES)
  2833.     {
  2834.         if(response)
  2835.         {
  2836.             if(listitem ==0)
  2837.             {
  2838.                 //18802 MBridgeRamp1
  2839.                 playerpick[playerid]=1;
  2840.                 format(objectstring[objectcount],128,"MBridgeRamp1");
  2841.                 jbobjectid[objectcount]= 18802;
  2842.             }
  2843.             else if(listitem ==1)
  2844.             {
  2845.                 //18803 MBridge150m1
  2846.                 playerpick[playerid]=1;
  2847.                 format(objectstring[objectcount],128,"MBridge150m1");
  2848.                 jbobjectid[objectcount]= 18803;
  2849.             }
  2850.             else if(listitem ==2)
  2851.             {
  2852.                 //18804 MBridge150m2
  2853.                 playerpick[playerid]=1;
  2854.                 format(objectstring[objectcount],128,"MBridge150m2");
  2855.                 jbobjectid[objectcount]= 18804;
  2856.             }
  2857.             else if(listitem ==3)
  2858.             {
  2859.                 //18805 MBridge150m3
  2860.                 playerpick[playerid]=1;
  2861.                 format(objectstring[objectcount],128,"MBridge150m3");
  2862.                 jbobjectid[objectcount]= 18805;
  2863.             }
  2864.             else if(listitem ==4)
  2865.             {
  2866.                 //18806 MBridge150m4
  2867.                 playerpick[playerid]=1;
  2868.                 format(objectstring[objectcount],128,"MBridge150m4");
  2869.                 jbobjectid[objectcount]= 18806;
  2870.             }
  2871.             else if(listitem ==5)
  2872.             {
  2873.                 //18807 MBridge75mHalf
  2874.                 playerpick[playerid]=1;
  2875.                 format(objectstring[objectcount],128,"MBridge75mHalf");
  2876.                 jbobjectid[objectcount]= 18807;
  2877.             }
  2878.         }
  2879.         else
  2880.         {
  2881.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2882.         }
  2883.     }
  2884.     else if(dialogid == DIALOG_TUBES)
  2885.     {
  2886.         if(response)
  2887.         {
  2888.             if(listitem == 0)
  2889.             {
  2890.                 ShowPlayerDialog(playerid,DIALOG_TUBESP1,DIALOG_STYLE_LIST,"Tubes","Tube50m1\nTube50mGlass1\nTube50mBulge1\nTube50mGlassBulge1\nTube50mFunnel1\nTube50mGlassFunnel1\nTube50mFunnel2\nTube50mFunnel3\nTube50mFunnel4\nTube50mTSection1\nTube50mGlassT1\nTube50mPlus1\nTube50mGlassPlus1\nTube50m45Bend1\nTube50mGlass45Bend1\nTube50m90Bend1\nTube50mGlass90Bend1\n nextpage","Ok","Back");
  2891.             }
  2892.             else if(listitem == 1)
  2893.             {
  2894.                 ShowPlayerDialog(playerid,DIALOG_TUBESP2,DIALOG_STYLE_LIST,"Tubes","Tube50m180Bend1\nTube50mGlass180Bend\nTube100m2\nSpiralTube1\nRTexturetube\nRTexturebridge\nRT25mBend90Tube1\nRT25mBend180Tube1\nRT50mBend45Tube1\nRT50mBend180Tube1\nRBFunnel\nRBHalfpipe\nRB25mBend90Tube\nRB25mBend180Tube\nRB50mBend45Tube\nRB50mBend90Tube\nRB50mBend180Tube\nRB50mTube\n prevpage","Ok","Back");
  2895.             }
  2896.         }
  2897.         else
  2898.         {
  2899.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2900.         }
  2901.     }
  2902.     else if(dialogid == DIALOG_SPHERES)
  2903.     {
  2904.         if(response)
  2905.         {
  2906.             if(listitem ==0)
  2907.             {
  2908.                 //18843 GlassSphere1
  2909.                 playerpick[playerid]=1;
  2910.                 format(objectstring[objectcount],128,"GlassSphere1");
  2911.                 jbobjectid[objectcount]= 18843;
  2912.             }
  2913.             else if(listitem ==1)
  2914.             {
  2915.                 //18844 WaterUVAnimSphere1
  2916.                 playerpick[playerid]=1;
  2917.                 format(objectstring[objectcount],128,"WaterUVAnimSphere1");
  2918.                 jbobjectid[objectcount]= 18844;
  2919.             }
  2920.             else if(listitem ==2)
  2921.             {
  2922.                 //18845 RTexturesphere
  2923.                 playerpick[playerid]=1;
  2924.                 format(objectstring[objectcount],128,"RTexturesphere");
  2925.                 jbobjectid[objectcount]= 18845;
  2926.             }
  2927.         }
  2928.         else
  2929.         {
  2930.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2931.         }
  2932.     }
  2933.     else if(dialogid == DIALOG_OTHERS)
  2934.     {
  2935.         if(response)
  2936.         {
  2937.             if(listitem ==0)
  2938.             {
  2939.                 //18847 HugeHalfPipe1
  2940.                 playerpick[playerid]=1;
  2941.                 format(objectstring[objectcount],128,"HugeHalfPipe1");
  2942.                 jbobjectid[objectcount]= 18847;
  2943.             }
  2944.             else if(listitem ==1)
  2945.             {
  2946.                 //18848 SamSiteNonDynamic
  2947.                 playerpick[playerid]=1;
  2948.                 format(objectstring[objectcount],128,"SamSiteNonDynamic");
  2949.                 jbobjectid[objectcount]= 18848;
  2950.             }
  2951.             else if(listitem ==2)
  2952.             {
  2953.                 //18849 ParaDropNonDynamic
  2954.                 playerpick[playerid]=1;
  2955.                 format(objectstring[objectcount],128,"ParaDropNonDynamic");
  2956.                 jbobjectid[objectcount]= 18849;
  2957.             }
  2958.             else if(listitem ==3)
  2959.             {
  2960.                 //18850 HeliPad1
  2961.                 playerpick[playerid]=1;
  2962.                 format(objectstring[objectcount],128,"HeliPad1");
  2963.                 jbobjectid[objectcount]= 18850;
  2964.             }
  2965.         }
  2966.         else
  2967.         {
  2968.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  2969.         }
  2970.     }
  2971.     else if(dialogid == DIALOG_TUBESP1)
  2972.     {
  2973.         if(response)
  2974.         {
  2975.             if(listitem ==0)
  2976.             {
  2977.                 //18808 Tube50m1
  2978.                 playerpick[playerid]=1;
  2979.                 format(objectstring[objectcount],128,"Tube50m1");
  2980.                 jbobjectid[objectcount]= 18808;
  2981.             }
  2982.             else if(listitem ==1)
  2983.             {
  2984.                 //18809 Tube50mGlass1
  2985.                 playerpick[playerid]=1;
  2986.                 format(objectstring[objectcount],128,"Tube50mGlass1");
  2987.                 jbobjectid[objectcount]= 18809;
  2988.             }
  2989.             else if(listitem ==2)
  2990.             {
  2991.                 //18810 Tube50mBulge1
  2992.                 playerpick[playerid]=1;
  2993.                 format(objectstring[objectcount],128,"Tube50mBulge1");
  2994.                 jbobjectid[objectcount]= 18810;
  2995.             }
  2996.             else if(listitem ==3)
  2997.             {
  2998.                 //18811 Tube50mGlassBulge1
  2999.                 playerpick[playerid]=1;
  3000.                 format(objectstring[objectcount],128,"Tube50mGlassBulge1");
  3001.                 jbobjectid[objectcount]= 18811;
  3002.             }
  3003.             else if(listitem ==4)
  3004.             {
  3005.                 //18812 Tube50mFunnel1
  3006.                 playerpick[playerid]=1;
  3007.                 format(objectstring[objectcount],128,"Tube50mFunnel1");
  3008.                 jbobjectid[objectcount]= 18812;
  3009.             }
  3010.             else if(listitem ==5)
  3011.             {
  3012.                 //18813 Tube50mGlassFunnel1
  3013.                 playerpick[playerid]=1;
  3014.                 format(objectstring[objectcount],128,"Tube50mGlassFunnel1");
  3015.                 jbobjectid[objectcount]= 18813;
  3016.             }
  3017.             else if(listitem ==6)
  3018.             {
  3019.                 //18814 Tube50mFunnel2
  3020.                 playerpick[playerid]=1;
  3021.                 format(objectstring[objectcount],128,"Tube50mFunnel2");
  3022.                 jbobjectid[objectcount]= 18814;
  3023.             }
  3024.             else if(listitem ==7)
  3025.             {
  3026.                 //18815 Tube50mFunnel3
  3027.                 playerpick[playerid]=1;
  3028.                 format(objectstring[objectcount],128,"Tube50mFunnel3");
  3029.                 jbobjectid[objectcount]= 18815;
  3030.             }
  3031.             else if(listitem ==8)
  3032.             {
  3033.                 //18816 Tube50mFunnel4
  3034.                 playerpick[playerid]=1;
  3035.                 format(objectstring[objectcount],128,"Tube50mFunnel4");
  3036.                 jbobjectid[objectcount]= 18816;
  3037.             }
  3038.             else if(listitem ==9)
  3039.             {
  3040.                 //18817 Tube50mTSection1
  3041.                 playerpick[playerid]=1;
  3042.                 format(objectstring[objectcount],128,"Tube50mTSection1");
  3043.                 jbobjectid[objectcount]= 18817;
  3044.             }
  3045.             else if(listitem ==10)
  3046.             {
  3047.                 //18818 Tube50mGlassT1
  3048.                 playerpick[playerid]=1;
  3049.                 format(objectstring[objectcount],128,"Tube50mGlassT1");
  3050.                 jbobjectid[objectcount]= 18818;
  3051.             }
  3052.             else if(listitem ==11)
  3053.             {
  3054.                 //18819 Tube50mPlus1
  3055.                 playerpick[playerid]=1;
  3056.                 format(objectstring[objectcount],128,"Tube50mPlus1");
  3057.                 jbobjectid[objectcount]= 18819;
  3058.             }
  3059.             else if(listitem ==12)
  3060.             {
  3061.                 //18820 Tube50mGlassPlus1
  3062.                 playerpick[playerid]=1;
  3063.                 format(objectstring[objectcount],128,"Tube50mGlassPlus1");
  3064.                 jbobjectid[objectcount]= 18820;
  3065.             }
  3066.             else if(listitem ==13)
  3067.             {
  3068.                 //18821 Tube50m45Bend1
  3069.                 playerpick[playerid]=1;
  3070.                 format(objectstring[objectcount],128,"Tube50m45Bend1");
  3071.                 jbobjectid[objectcount]= 18821;
  3072.             }
  3073.             else if(listitem ==14)
  3074.             {
  3075.                 //18822 Tube50mGlass45Bend1
  3076.                 playerpick[playerid]=1;
  3077.                 format(objectstring[objectcount],128,"Tube50mGlass45Bend1");
  3078.                 jbobjectid[objectcount]= 18822;
  3079.             }
  3080.             else if(listitem ==15)
  3081.             {
  3082.                 //18823 Tube50m90Bend1
  3083.                 playerpick[playerid]=1;
  3084.                 format(objectstring[objectcount],128,"Tube50m90Bend1");
  3085.                 jbobjectid[objectcount]= 18823;
  3086.             }
  3087.             else if(listitem ==16)
  3088.             {
  3089.                 //18824 Tube50mGlass90Bend1
  3090.                 playerpick[playerid]=1;
  3091.                 format(objectstring[objectcount],128,"Tube50mGlass90Bend1");
  3092.                 jbobjectid[objectcount]= 18824;
  3093.             }
  3094.             else if(listitem ==17)
  3095.             {
  3096.                 ShowPlayerDialog(playerid,DIALOG_TUBESP1,DIALOG_STYLE_LIST,"Tubes","Tube50m1\nTube50mGlass1\nTube50mBulge1\nTube50mGlassBulge1\nTube50mFunnel1\nTube50mGlassFunnel1\nTube50mFunnel2\nTube50mFunnel3\nTube50mFunnel4\nTube50mTSection1\nTube50mGlassT1\nTube50mPlus1\nTube50mGlassPlus1\nTube50m45Bend1\nTube50mGlass45Bend1\nTube50m90Bend1\nTube50mGlass90Bend1\n nextpage","Ok","Back");
  3097.             }
  3098.         }
  3099.         else
  3100.         {
  3101.             ShowPlayerDialog(playerid,DIALOG_TUBES,DIALOG_STYLE_LIST,"Tubes","Page1\nPage2","Ok","Back");
  3102.         }
  3103.     }
  3104.     else if(dialogid == DIALOG_TUBESP2)
  3105.     {
  3106.         if(response)
  3107.         {
  3108.             if(listitem ==0)
  3109.             {
  3110.                 //18825 Tube50m180Bend1
  3111.                 playerpick[playerid]=1;
  3112.                 format(objectstring[objectcount],128,"Tube50m180Bend1");
  3113.                 jbobjectid[objectcount]= 18825;
  3114.             }
  3115.             else if(listitem ==1)
  3116.             {
  3117.                 //18826 Tube50mGlass180Bend
  3118.                 playerpick[playerid]=1;
  3119.                 format(objectstring[objectcount],128,"Tube50mGlass180Bend");
  3120.                 jbobjectid[objectcount]= 18826;
  3121.             }
  3122.             else if(listitem ==2)
  3123.             {
  3124.                 //18827 Tube100m2
  3125.                 playerpick[playerid]=1;
  3126.                 format(objectstring[objectcount],128,"Tube100m2");
  3127.                 jbobjectid[objectcount]= 18827;
  3128.             }
  3129.             else if(listitem ==3)
  3130.             {
  3131.                 //18828 SpiralTube1
  3132.                 playerpick[playerid]=1;
  3133.                 format(objectstring[objectcount],128,"SpiralTube1");
  3134.                 jbobjectid[objectcount]= 18828;
  3135.             }
  3136.             else if(listitem ==4)
  3137.             {
  3138.                 //18829 RTexturetube
  3139.                 playerpick[playerid]=1;
  3140.                 format(objectstring[objectcount],128,"RTexturetube");
  3141.                 jbobjectid[objectcount]= 18829;
  3142.             }
  3143.             else if(listitem ==5)
  3144.             {
  3145.                 //18830 RTexturebridge
  3146.                 playerpick[playerid]=1;
  3147.                 format(objectstring[objectcount],128,"RTexturebridge");
  3148.                 jbobjectid[objectcount]= 18830;
  3149.             }
  3150.             else if(listitem ==6)
  3151.             {
  3152.                 //18831 RT25mBend90Tube1
  3153.                 playerpick[playerid]=1;
  3154.                 format(objectstring[objectcount],128,"RT25mBend90Tube1");
  3155.                 jbobjectid[objectcount]= 18831;
  3156.             }
  3157.             else if(listitem ==7)
  3158.             {
  3159.                 //18832 RT25mBend180Tube1
  3160.                 playerpick[playerid]=1;
  3161.                 format(objectstring[objectcount],128,"RT25mBend180Tube1");
  3162.                 jbobjectid[objectcount]= 18832;
  3163.             }
  3164.             else if(listitem ==8)
  3165.             {
  3166.                 //18833 RT50mBend45Tube1
  3167.                 playerpick[playerid]=1;
  3168.                 format(objectstring[objectcount],128,"RT50mBend45Tube1");
  3169.                 jbobjectid[objectcount]= 18833;
  3170.             }
  3171.             else if(listitem ==9)
  3172.             {
  3173.                 //18834 RT50mBend180Tube1
  3174.                 playerpick[playerid]=1;
  3175.                 format(objectstring[objectcount],128,"RT50mBend180Tube1");
  3176.                 jbobjectid[objectcount]= 18834;
  3177.             }
  3178.             else if(listitem ==10)
  3179.             {
  3180.                 //18835 RBFunnel
  3181.                 playerpick[playerid]=1;
  3182.                 format(objectstring[objectcount],128,"RBFunnel");
  3183.                 jbobjectid[objectcount]= 18835;
  3184.             }
  3185.             else if(listitem ==11)
  3186.             {
  3187.                 //18836 RBHalfpipe
  3188.                 playerpick[playerid]=1;
  3189.                 format(objectstring[objectcount],128,"RBHalfpipe");
  3190.                 jbobjectid[objectcount]= 18836;
  3191.             }
  3192.             else if(listitem ==12)
  3193.             {
  3194.                 //18837 RB25mBend90Tube
  3195.                 playerpick[playerid]=1;
  3196.                 format(objectstring[objectcount],128,"RB25mBend90Tube");
  3197.                 jbobjectid[objectcount]= 18837;
  3198.             }
  3199.             else if(listitem ==13)
  3200.             {
  3201.                 //18838 RB25mBend180Tube
  3202.                 playerpick[playerid]=1;
  3203.                 format(objectstring[objectcount],128,"RB25mBend180Tube");
  3204.                 jbobjectid[objectcount]= 18838;
  3205.             }
  3206.             else if(listitem ==14)
  3207.             {
  3208.                 //18839 RB50mBend45Tube
  3209.                 playerpick[playerid]=1;
  3210.                 format(objectstring[objectcount],128,"RB50mBend45Tube");
  3211.                 jbobjectid[objectcount]= 18839;
  3212.             }
  3213.             else if(listitem ==15)
  3214.             {
  3215.                 //18840 RB50mBend90Tube
  3216.                 playerpick[playerid]=1;
  3217.                 format(objectstring[objectcount],128,"RB50mBend90Tube");
  3218.                 jbobjectid[objectcount]= 18840;
  3219.             }
  3220.             else if(listitem ==16)
  3221.             {
  3222.                 //18841 RB50mBend180Tube
  3223.                 playerpick[playerid]=1;
  3224.                 format(objectstring[objectcount],128,"RB50mBend180Tube");
  3225.                 jbobjectid[objectcount]= 18841;
  3226.             }
  3227.             else if(listitem ==17)
  3228.             {
  3229.                 //18842 RB50mTube
  3230.                 playerpick[playerid]=1;
  3231.                 format(objectstring[objectcount],128,"RB50mTube");
  3232.                 jbobjectid[objectcount]= 18842;
  3233.             }
  3234.             else if(listitem ==18)
  3235.             {
  3236.                 ShowPlayerDialog(playerid,DIALOG_TUBESP2,DIALOG_STYLE_LIST,"Tubes","Tube50m180Bend1\nTube50mGlass180Bend\nTube100m2\nSpiralTube1\nRTexturetube\nRTexturebridge\nRT25mBend90Tube1\nRT25mBend180Tube1\nRT50mBend45Tube1\nRT50mBend180Tube1\nRBFunnel\nRBHalfpipe\nRB25mBend90Tube\nRB25mBend180Tube\nRB50mBend45Tube\nRB50mBend90Tube\nRB50mBend180Tube\nRB50mTube\n prevpage","Ok","Back");
  3237.             }
  3238.         }
  3239.         else
  3240.         {
  3241.             ShowPlayerDialog(playerid,DIALOG_TUBES,DIALOG_STYLE_LIST,"Tubes","Page1\nPage2","Ok","Back");
  3242.         }
  3243.     }
  3244.     //--------------------------------------------------------------------------------------------------------------//
  3245.     //-------------------Removed-this-becuse-there-was-no-point-most-of-the-action-disapear-in-1-sec----------------//
  3246.     //--------------------------------------------------------------------------------------------------------------//
  3247.     /*else if(dialogid == DIALOG_PARTICLEEFFECTSP1)
  3248.     {
  3249.         if(response)
  3250.         {
  3251.             if(listitem ==0)
  3252.             {    //18668 blood_heli
  3253.                 playerpick[playerid]=1;
  3254.                 format(objectstring[objectcount],128,"blood_heli");
  3255.                 jbobjectid[objectcount]= 18668;
  3256.             }
  3257.             else if(listitem ==1)
  3258.             {
  3259.                 //18669 boat_prop
  3260.                 playerpick[playerid]=1;
  3261.                 format(objectstring[objectcount],128,"boat_prop");
  3262.                 jbobjectid[objectcount]= 18669;
  3263.             }
  3264.             else if(listitem ==2)
  3265.             {
  3266.                 //18670 camflash
  3267.                 playerpick[playerid]=1;
  3268.                 format(objectstring[objectcount],128,"camflash");
  3269.                 jbobjectid[objectcount]= 18670;
  3270.             }
  3271.             else if(listitem ==3)
  3272.             {
  3273.                 //18671 carwashspray
  3274.                 playerpick[playerid]=1;
  3275.                 format(objectstring[objectcount],128,"carwashspray");
  3276.                 jbobjectid[objectcount]= 18671;
  3277.             }
  3278.             else if(listitem ==4)
  3279.             {
  3280.                 //18672 cementp
  3281.                 playerpick[playerid]=1;
  3282.                 format(objectstring[objectcount],128,"cementp");
  3283.                 jbobjectid[objectcount]= 18672;
  3284.             }
  3285.             else if(listitem ==5)
  3286.             {
  3287.                 //18673 cigarette_smoke
  3288.                 playerpick[playerid]=1;
  3289.                 format(objectstring[objectcount],128,"cigarette_smoke");
  3290.                 jbobjectid[objectcount]= 18673;
  3291.             }
  3292.             else if(listitem ==6)
  3293.             {
  3294.                 //18674 cloudfast
  3295.                 playerpick[playerid]=1;
  3296.                 format(objectstring[objectcount],128,"cloudfast");
  3297.                 jbobjectid[objectcount]= 18674;
  3298.             }
  3299.             else if(listitem ==7)
  3300.             {
  3301.                 //18676 coke_trail
  3302.                 playerpick[playerid]=1;
  3303.                 format(objectstring[objectcount],128,"coke_trail");
  3304.                 jbobjectid[objectcount]= 18676;
  3305.             }
  3306.             else if(listitem ==8)
  3307.             {
  3308.                 //18677 exhale
  3309.                 playerpick[playerid]=1;
  3310.                 format(objectstring[objectcount],128,"exhale");
  3311.                 jbobjectid[objectcount]= 18677;
  3312.             }
  3313.             else if(listitem ==9)
  3314.             {//blood_heli\nboat_prop\ncamflash\ncarwashspray\ncementp\ncigarette_smoke\ncloudfast\ncoke_puff\ncoke_trail\nexhale\nexplosion_barrel\nexplosion_crate\nexplosion_door\nexplosion_fuel_car\nexplosion_large\nexplosion_medium\nexplosion_molotov\nexplosion_small\nexplosion_tiny\n nextpage
  3315.                 //18678 explosion_barrel
  3316.                 playerpick[playerid]=1;
  3317.                 format(objectstring[objectcount],128,"explosion_barrel");
  3318.                 jbobjectid[objectcount]= 18678;
  3319.             }
  3320.             else if(listitem ==10)
  3321.             {
  3322.                 //18679 explosion_crate
  3323.                 playerpick[playerid]=1;
  3324.                 format(objectstring[objectcount],128,"explosion_crate");
  3325.                 jbobjectid[objectcount]= 18679;
  3326.             }
  3327.             else if(listitem ==11)
  3328.             {
  3329.                 //18680 explosion_door
  3330.                 playerpick[playerid]=1;
  3331.                 format(objectstring[objectcount],128,"explosion_door");
  3332.                 jbobjectid[objectcount]= 18680;
  3333.             }
  3334.             else if(listitem ==12)
  3335.             {
  3336.                 //18681 explosion_fuel_car
  3337.                 playerpick[playerid]=1;
  3338.                 format(objectstring[objectcount],128,"explosion_fuel_car");
  3339.                 jbobjectid[objectcount]= 18681;
  3340.             }
  3341.             else if(listitem ==13)
  3342.             {
  3343.                 //18682 explosion_large
  3344.                 playerpick[playerid]=1;
  3345.                 format(objectstring[objectcount],128,"explosion_large");
  3346.                 jbobjectid[objectcount]= 18682;
  3347.             }
  3348.             else if(listitem ==14)
  3349.             {
  3350.                 //18683 explosion_medium
  3351.                 playerpick[playerid]=1;
  3352.                 format(objectstring[objectcount],128,"explosion_medium");
  3353.                 jbobjectid[objectcount]= 18683;
  3354.             }
  3355.             else if(listitem ==15)
  3356.             {
  3357.                 //18684 explosion_molotov
  3358.                 playerpick[playerid]=1;
  3359.                 format(objectstring[objectcount],128,"explosion_molotov");
  3360.                 jbobjectid[objectcount]= 18684;
  3361.             }
  3362.             else if(listitem ==16)
  3363.             {
  3364.                 //18685 explosion_small
  3365.                 playerpick[playerid]=1;
  3366.                 format(objectstring[objectcount],128,"explosion_small");
  3367.                 jbobjectid[objectcount]= 18685;
  3368.             }
  3369.             else if(listitem ==17)
  3370.             {
  3371.                 //18686 explosion_tiny
  3372.                 playerpick[playerid]=1;
  3373.                 format(objectstring[objectcount],128,"explosion_tiny");
  3374.                 jbobjectid[objectcount]= 18686;
  3375.             }
  3376.             else if(listitem ==18)
  3377.             {
  3378.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP2,DIALOG_STYLE_LIST,"Particle effects","extinguisher\nfire\nfire_bike+\nfire_car\nfire_large\nfire_med\nFlame\nflamethrower\ngunflash\ngunsmoke\nheli_dust\n nextpage\nbackpage","Ok","Back");
  3379.             }
  3380.         }
  3381.         else
  3382.         {
  3383.             ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTS,DIALOG_STYLE_LIST,"Particle effects","Page1\nPage2\nPage3\nPage4\nPage5","Ok","Back");
  3384.         }
  3385.     }
  3386.     else if(dialogid == DIALOG_PARTICLEEFFECTSP2)
  3387.     {
  3388.         if(response)
  3389.         {
  3390.             if(listitem ==0)
  3391.             {
  3392.                 //18687 extinguisher
  3393.                 playerpick[playerid]=1;
  3394.                 format(objectstring[objectcount],128,"extinguisher");
  3395.                 jbobjectid[objectcount]= 18687;
  3396.             }
  3397.             else if(listitem ==1)
  3398.             {
  3399.                 //18688 fire
  3400.                 playerpick[playerid]=1;
  3401.                 format(objectstring[objectcount],128,"fire");
  3402.                 jbobjectid[objectcount]= 18688;
  3403.             }
  3404.             else if(listitem ==2)
  3405.             {
  3406.                 //18689 fire_bike+
  3407.                 playerpick[playerid]=1;
  3408.                 format(objectstring[objectcount],128,"fire_bike+");
  3409.                 jbobjectid[objectcount]= 18689;
  3410.             }
  3411.             else if(listitem ==3)
  3412.             {
  3413.                 //18690 fire_car
  3414.                 playerpick[playerid]=1;
  3415.                 format(objectstring[objectcount],128,"fire_car");
  3416.                 jbobjectid[objectcount]= 18690;
  3417.             }
  3418.             else if(listitem ==4)
  3419.             {
  3420.                 //fire_large 18691
  3421.                 playerpick[playerid]=1;
  3422.                 format(objectstring[objectcount],128,"fire_large");
  3423.                 jbobjectid[objectcount]= 18691;
  3424.             }
  3425.             else if(listitem ==5)
  3426.             {
  3427.                 //18692 fire_med
  3428.                 playerpick[playerid]=1;
  3429.                 format(objectstring[objectcount],128,"fire_med");
  3430.                 jbobjectid[objectcount]= 18692;
  3431.             }
  3432.             else if(listitem ==6)
  3433.             {
  3434.                 //18693 Flame99
  3435.                 playerpick[playerid]=1;
  3436.                 format(objectstring[objectcount],128,"Flame99");
  3437.                 jbobjectid[objectcount]= 18693;
  3438.             }
  3439.             else if(listitem ==7)
  3440.             {
  3441.                 //18694 flamethrower
  3442.                 playerpick[playerid]=1;
  3443.                 format(objectstring[objectcount],128,"flamethrower");
  3444.                 jbobjectid[objectcount]= 18694;
  3445.             }
  3446.             else if(listitem ==8)
  3447.             {
  3448.                 //18695 gunflash
  3449.                 playerpick[playerid]=1;
  3450.                 format(objectstring[objectcount],128,"gunflash");
  3451.                 jbobjectid[objectcount]= 18695;
  3452.             }
  3453.             else if(listitem ==9)
  3454.             {
  3455.                 //18696 gunsmoke
  3456.                 playerpick[playerid]=1;
  3457.                 format(objectstring[objectcount],128,"gunsmoke");
  3458.                 jbobjectid[objectcount]= 18696;
  3459.             }
  3460.             else if(listitem ==10)
  3461.             {
  3462.                 //18697 heli_dust
  3463.                 playerpick[playerid]=1;
  3464.                 format(objectstring[objectcount],128,"heli_dust");
  3465.                 jbobjectid[objectcount]= 18697;
  3466.             }
  3467.             else if(listitem ==11)
  3468.             {
  3469.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP3,DIALOG_STYLE_LIST,"Particle effects","insects\njetpack\njetthrust\nmolotov_flame\nnitro\noverheat_car\noverheat_car_elec\npetrolcan\nprt_blood\nprt_boatsplash\nprt_bubble\nprt_cardebris\nprt_collisionsmoke\nprt_glass\nprt_gunshell\nprt_sand2\nprt_sand\n Next page\nbackpage","Ok","Back");
  3470.             }
  3471.             else if(listitem ==12)
  3472.             {
  3473.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP1,DIALOG_STYLE_LIST,"Particle effects","blood_heli\nboat_prop\ncamflash\ncarwashspray\ncementp\ncigarette_smoke\ncloudfast\ncoke_puff\ncoke_trail\nexhale\nexplosion_barrel\nexplosion_crate\nexplosion_door\nexplosion_fuel_car\nexplosion_large\nexplosion_medium\nexplosion_molotov\nexplosion_small\nexplosion_tiny\n nextpage","Ok","Back");
  3474.             }
  3475.         }
  3476.         else
  3477.         {
  3478.             ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTS,DIALOG_STYLE_LIST,"Particle effects","Page1\nPage2\nPage3\nPage4\nPage5","Ok","Back");
  3479.         }
  3480.     }
  3481.     else if(dialogid == DIALOG_PARTICLEEFFECTSP3)
  3482.     {
  3483.         if(response)
  3484.         {
  3485.             if(listitem ==0)
  3486.             {
  3487.                 //18698 insects
  3488.                 playerpick[playerid]=1;
  3489.                 format(objectstring[objectcount],128,"insects");
  3490.                 jbobjectid[objectcount]= 18698;
  3491.             }
  3492.             else if(listitem ==1)
  3493.             {
  3494.                 //18699 jetpack
  3495.                 playerpick[playerid]=1;
  3496.                 format(objectstring[objectcount],128,"jetpack");
  3497.                 jbobjectid[objectcount]= 18699;
  3498.             }
  3499.             else if(listitem ==2)
  3500.             {
  3501.                 //18700 jetthrust
  3502.                 playerpick[playerid]=1;
  3503.                 format(objectstring[objectcount],128,"jetthrust");
  3504.                 jbobjectid[objectcount]= 18700;
  3505.             }
  3506.             else if(listitem ==3)
  3507.             {
  3508.                 //18701 molotov_flame
  3509.                 playerpick[playerid]=1;
  3510.                 format(objectstring[objectcount],128,"molotov_flame");
  3511.                 jbobjectid[objectcount]= 18701;
  3512.             }
  3513.             else if(listitem ==4)
  3514.             {
  3515.                 //18702 nitro
  3516.                 playerpick[playerid]=1;
  3517.                 format(objectstring[objectcount],128,"nitro");
  3518.                 jbobjectid[objectcount]= 18702;
  3519.             }
  3520.             else if(listitem ==5)
  3521.             {
  3522.                 //18703 overheat_car
  3523.                 playerpick[playerid]=1;
  3524.                 format(objectstring[objectcount],128,"overheat_car");
  3525.                 jbobjectid[objectcount]= 18703;
  3526.             }
  3527.             else if(listitem ==6)
  3528.             {
  3529.                 //18704 overheat_car_elec
  3530.                 playerpick[playerid]=1;
  3531.                 format(objectstring[objectcount],128,"overheat_car_elec");
  3532.                 jbobjectid[objectcount]= 18704;
  3533.             }
  3534.             else if(listitem ==7)
  3535.             {
  3536.                 //18705 petrolcan
  3537.                 playerpick[playerid]=1;
  3538.                 format(objectstring[objectcount],128,"petrolcan");
  3539.                 jbobjectid[objectcount]= 18705;
  3540.             }
  3541.             else if(listitem ==8)
  3542.             {
  3543.                 //18706 prt_blood
  3544.                 playerpick[playerid]=1;
  3545.                 format(objectstring[objectcount],128,"prt_blood");
  3546.                 jbobjectid[objectcount]= 18706;
  3547.             }
  3548.             else if(listitem ==9)
  3549.             {
  3550.                 //18707 prt_boatsplash
  3551.                 playerpick[playerid]=1;
  3552.                 format(objectstring[objectcount],128,"prt_boatsplash");
  3553.                 jbobjectid[objectcount]= 18707;
  3554.             }
  3555.             else if(listitem ==10)
  3556.             {
  3557.                 //18708 prt_bubble
  3558.                 playerpick[playerid]=1;
  3559.                 format(objectstring[objectcount],128,"prt_bubble");
  3560.                 jbobjectid[objectcount]= 18708;
  3561.             }
  3562.             else if(listitem ==11)
  3563.             {
  3564.                 //18709 prt_cardebris
  3565.                 playerpick[playerid]=1;
  3566.                 format(objectstring[objectcount],128,"prt_cardebris");
  3567.                 jbobjectid[objectcount]= 18709;
  3568.             }
  3569.             else if(listitem ==12)
  3570.             {
  3571.                 //18710 prt_collisionsmoke
  3572.                 playerpick[playerid]=1;
  3573.                 format(objectstring[objectcount],128,"prt_collisionsmoke");
  3574.                 jbobjectid[objectcount]= 18710;
  3575.             }
  3576.             else if(listitem ==13)
  3577.             {
  3578.                 //18711 prt_glass
  3579.                 playerpick[playerid]=1;
  3580.                 format(objectstring[objectcount],128,"prt_glass");
  3581.                 jbobjectid[objectcount]= 18711;
  3582.             }
  3583.             else if(listitem ==14)
  3584.             {
  3585.                 //18712 prt_gunshell
  3586.                 playerpick[playerid]=1;
  3587.                 format(objectstring[objectcount],128,"prt_gunshell");
  3588.                 jbobjectid[objectcount]= 18712;
  3589.             }
  3590.             else if(listitem ==15)
  3591.             {
  3592.                 //18713 prt_sand2
  3593.                 playerpick[playerid]=1;
  3594.                 format(objectstring[objectcount],128,"prt_sand2");
  3595.                 jbobjectid[objectcount]= 18713;
  3596.             }
  3597.             else if(listitem ==16)
  3598.             {
  3599.                 //18714 prt_sand
  3600.                 playerpick[playerid]=1;
  3601.                 format(objectstring[objectcount],128,"prt_sand");
  3602.                 jbobjectid[objectcount]= 18714;
  3603.             }
  3604.             else if(listitem ==17)
  3605.             {
  3606.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP4,DIALOG_STYLE_LIST,"Particle effects","prt_smoke_huge\nprt_smoke_expand\nprt_spark\nprt_spark_2\nprt_wake\nprt_watersplash\nprt_wheeldirt\npuke\nriot_smoke\nshootlight\nsmoke30lit\nsmoke30m\nsmoke50lit\nsmoke_flare\nspraycan\n nextpage\nbackpage","Ok","Back");
  3607.             }
  3608.             else if(listitem ==18)
  3609.             {
  3610.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP2,DIALOG_STYLE_LIST,"Particle effects","extinguisher\nfire\nfire_bike+\nfire_car\nfire_large\nfire_med\nFlame\nflamethrower\ngunflash\ngunsmoke\nheli_dust\n nextpage\nbackpage","Ok","Back");
  3611.             }
  3612.         }
  3613.         else
  3614.         {
  3615.             ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTS,DIALOG_STYLE_LIST,"Particle effects","Page1\nPage2\nPage3\nPage4\nPage5","Ok","Back");
  3616.         }
  3617.     }
  3618.     else if(dialogid == DIALOG_PARTICLEEFFECTSP4)
  3619.     {
  3620.         if(response)
  3621.         {
  3622.             if(listitem ==0)
  3623.             {
  3624.                 //18715 prt_smoke_huge
  3625.                 playerpick[playerid]=1;
  3626.                 format(objectstring[objectcount],128,"prt_smoke_huge");
  3627.                 jbobjectid[objectcount]= 18715;
  3628.             }
  3629.             else if(listitem ==1)
  3630.             {
  3631.                 //18716 prt_smoke_expand
  3632.                 playerpick[playerid]=1;
  3633.                 format(objectstring[objectcount],128,"prt_smoke_expand");
  3634.                 jbobjectid[objectcount]= 18716;
  3635.             }
  3636.             else if(listitem ==2)
  3637.             {
  3638.                 //prt_spark 18717
  3639.                 playerpick[playerid]=1;
  3640.                 format(objectstring[objectcount],128,"prt_spark");
  3641.                 jbobjectid[objectcount]= 18717;
  3642.             }
  3643.             else if(listitem ==3)
  3644.             {
  3645.                 //18718 prt_spark_2
  3646.                 playerpick[playerid]=1;
  3647.                 format(objectstring[objectcount],128,"prt_spark_2");
  3648.                 jbobjectid[objectcount]= 18718;
  3649.             }
  3650.             else if(listitem ==4)
  3651.             {
  3652.                 //18719 prt_wake
  3653.                 playerpick[playerid]=1;
  3654.                 format(objectstring[objectcount],128,"prt_wake");
  3655.                 jbobjectid[objectcount]= 18719;
  3656.             }
  3657.             else if(listitem ==5)
  3658.             {
  3659.                 //18720 prt_watersplash
  3660.                 playerpick[playerid]=1;
  3661.                 format(objectstring[objectcount],128,"prt_watersplash");
  3662.                 jbobjectid[objectcount]= 18720;
  3663.             }
  3664.             else if(listitem ==6)
  3665.             {
  3666.                 //18721 prt_wheeldirt
  3667.                 playerpick[playerid]=1;
  3668.                 format(objectstring[objectcount],128,"prt_wheeldirt");
  3669.                 jbobjectid[objectcount]= 18721;
  3670.             }
  3671.             else if(listitem ==7)
  3672.             {
  3673.                 //18722 puke
  3674.                 playerpick[playerid]=1;
  3675.                 format(objectstring[objectcount],128,"puke");
  3676.                 jbobjectid[objectcount]= 18722;
  3677.             }
  3678.             else if(listitem ==8)
  3679.             {
  3680.                 //18723 riot_smoke
  3681.                 playerpick[playerid]=1;
  3682.                 format(objectstring[objectcount],128,"riot_smoke");
  3683.                 jbobjectid[objectcount]= 18723;
  3684.             }
  3685.             else if(listitem ==9)
  3686.             {
  3687.                 //18724 shootlight
  3688.                 playerpick[playerid]=1;
  3689.                 format(objectstring[objectcount],128,"shootlight");
  3690.                 jbobjectid[objectcount]= 18724;
  3691.             }
  3692.             else if(listitem ==10)
  3693.             {
  3694.                 //18725 smoke30lit
  3695.                 playerpick[playerid]=1;
  3696.                 format(objectstring[objectcount],128,"smoke30lit");
  3697.                 jbobjectid[objectcount]= 18725;
  3698.             }
  3699.             else if(listitem ==11)
  3700.             {
  3701.                 //18726 smoke30m
  3702.                 playerpick[playerid]=1;
  3703.                 format(objectstring[objectcount],128,"smoke30m");
  3704.                 jbobjectid[objectcount]= 18726;
  3705.             }
  3706.             else if(listitem ==12)
  3707.             {
  3708.                 //18727 smoke50lit
  3709.                 playerpick[playerid]=1;
  3710.                 format(objectstring[objectcount],128,"smoke50lit");
  3711.                 jbobjectid[objectcount]= 18727;
  3712.             }
  3713.             else if(listitem ==13)
  3714.             {
  3715.                 //18728 smoke_flare
  3716.                 playerpick[playerid]=1;
  3717.                 format(objectstring[objectcount],128,"smoke_flare");
  3718.                 jbobjectid[objectcount]= 18728;
  3719.             }
  3720.             else if(listitem ==14)
  3721.             {
  3722.                 //18729 spraycan
  3723.                 playerpick[playerid]=1;
  3724.                 format(objectstring[objectcount],128,"spraycan");
  3725.                 jbobjectid[objectcount]= 18729;
  3726.             }
  3727.             else if(listitem ==15)
  3728.             {
  3729.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP5,DIALOG_STYLE_LIST,"Particle effects","tank_fire\nteargas\nteargasAD\ntree_hit_fir\ntree_hit_palm\nvent2\nvent\nwallbust\nwater_fnt_tme\nwater_fountain\nwater_hydrant\nwater_ripples\nwater_speed\nwater_splash\nwater_splash_big\nwater_splsh_sml\nwater_swim\nwaterfall_end\nWS_factorysmoke\nbackpage","Ok","Back");
  3730.             }
  3731.             else if(listitem ==16)
  3732.             {
  3733.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP3,DIALOG_STYLE_LIST,"Particle effects","insects\njetpack\njetthrust\nmolotov_flame\nnitro\noverheat_car\noverheat_car_elec\npetrolcan\nprt_blood\nprt_boatsplash\nprt_bubble\nprt_cardebris\nprt_collisionsmoke\nprt_glass\nprt_gunshell\nprt_sand2\nprt_sand\n Next page\nbackpage","Ok","Back");
  3734.             }
  3735.         }
  3736.         else
  3737.         {
  3738.             ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTS,DIALOG_STYLE_LIST,"Particle effects","Page1\nPage2\nPage3\nPage4\nPage5","Ok","Back");
  3739.         }
  3740.     }
  3741.     else if(dialogid == DIALOG_PARTICLEEFFECTSP5)
  3742.     {
  3743.         if(response)
  3744.         {
  3745.             if(listitem ==0)
  3746.             {
  3747.                 //18730 tank_fire
  3748.                 playerpick[playerid]=1;
  3749.                 format(objectstring[objectcount],128,"tank_fire");
  3750.                 jbobjectid[objectcount]= 18730;
  3751.             }
  3752.             else if(listitem ==1)
  3753.             {
  3754.                 //18731 teargas99
  3755.                 playerpick[playerid]=1;
  3756.                 format(objectstring[objectcount],128,"teargas99");
  3757.                 jbobjectid[objectcount]= 18731;
  3758.             }
  3759.             else if(listitem ==2)
  3760.             {
  3761.                 //18732 teargasAD
  3762.                 playerpick[playerid]=1;
  3763.                 format(objectstring[objectcount],128,"teargasAD");
  3764.                 jbobjectid[objectcount]= 18732;
  3765.             }
  3766.             else if(listitem ==3)
  3767.             {
  3768.                 //18733 tree_hit_fir
  3769.                 playerpick[playerid]=1;
  3770.                 format(objectstring[objectcount],128,"tree_hit_fir");
  3771.                 jbobjectid[objectcount]= 18733;
  3772.             }
  3773.             else if(listitem ==4)
  3774.             {
  3775.                 //18734 tree_hit_palm
  3776.                 playerpick[playerid]=1;
  3777.                 format(objectstring[objectcount],128,"tree_hit_palm");
  3778.                 jbobjectid[objectcount]= 18734;
  3779.             }
  3780.             else if(listitem ==5)
  3781.             {
  3782.                 //18735 vent2
  3783.                 playerpick[playerid]=1;
  3784.                 format(objectstring[objectcount],128,"vent2");
  3785.                 jbobjectid[objectcount]= 18735;
  3786.             }
  3787.             else if(listitem ==6)
  3788.             {
  3789.                 //18736 vent
  3790.                 playerpick[playerid]=1;
  3791.                 format(objectstring[objectcount],128,"vent");
  3792.                 jbobjectid[objectcount]= 18736;
  3793.             }
  3794.             else if(listitem ==7)
  3795.             {
  3796.                 //18737 wallbust
  3797.                 playerpick[playerid]=1;
  3798.                 format(objectstring[objectcount],128,"wallbust");
  3799.                 jbobjectid[objectcount]= 18737;
  3800.             }
  3801.             else if(listitem ==8)
  3802.             {
  3803.                 //18738 water_fnt_tme
  3804.                 playerpick[playerid]=1;
  3805.                 format(objectstring[objectcount],128,"water_fnt_tme");
  3806.                 jbobjectid[objectcount]= 18738;
  3807.             }
  3808.             else if(listitem ==9)
  3809.             {
  3810.                 //18739 water_fountain
  3811.                 playerpick[playerid]=1;
  3812.                 format(objectstring[objectcount],128,"water_fountain");
  3813.                 jbobjectid[objectcount]= 18739;
  3814.             }
  3815.             else if(listitem ==10)
  3816.             {
  3817.                 //18740 water_hydrant
  3818.                 playerpick[playerid]=1;
  3819.                 format(objectstring[objectcount],128,"water_hydrant");
  3820.                 jbobjectid[objectcount]= 18740;
  3821.             }
  3822.             else if(listitem ==11)
  3823.             {
  3824.                 //18741 water_ripples
  3825.                 playerpick[playerid]=1;
  3826.                 format(objectstring[objectcount],128,"water_ripples");
  3827.                 jbobjectid[objectcount]= 18741;
  3828.             }
  3829.             else if(listitem ==12)
  3830.             {
  3831.                 //18742 water_speed
  3832.                 playerpick[playerid]=1;
  3833.                 format(objectstring[objectcount],128,"water_speed");
  3834.                 jbobjectid[objectcount]= 18742;
  3835.             }
  3836.             else if(listitem ==13)
  3837.             {
  3838.                 //18743 water_splash
  3839.                 playerpick[playerid]=1;
  3840.                 format(objectstring[objectcount],128,"water_splash");
  3841.                 jbobjectid[objectcount]= 18743;
  3842.             }
  3843.             else if(listitem ==14)
  3844.             {
  3845.                 //18744 water_splash_big
  3846.                 playerpick[playerid]=1;
  3847.                 format(objectstring[objectcount],128,"water_splash_big");
  3848.                 jbobjectid[objectcount]= 18744;
  3849.             }
  3850.             else if(listitem ==15)
  3851.             {
  3852.                 //18745 water_splsh_sml
  3853.                 playerpick[playerid]=1;
  3854.                 format(objectstring[objectcount],128,"water_splsh_sml");
  3855.                 jbobjectid[objectcount]= 18745;
  3856.             }
  3857.             else if(listitem ==16)
  3858.             {
  3859.                 //18746 water_swim
  3860.                 playerpick[playerid]=1;
  3861.                 format(objectstring[objectcount],128,"water_swim");
  3862.                 jbobjectid[objectcount]= 18746;
  3863.             }
  3864.             else if(listitem ==17)
  3865.             {
  3866.                 //18747 waterfall_end
  3867.                 playerpick[playerid]=1;
  3868.                 format(objectstring[objectcount],128,"waterfall_end");
  3869.                 jbobjectid[objectcount]= 18747;
  3870.             }
  3871.             else if(listitem ==18)
  3872.             {
  3873.                 //18748 WS_factorysmoke
  3874.                 playerpick[playerid]=1;
  3875.                 format(objectstring[objectcount],128,"WS_factorysmoke");
  3876.                 jbobjectid[objectcount]= 18748;
  3877.             }
  3878.             else if(listitem ==19)
  3879.             {
  3880.                 ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTSP4,DIALOG_STYLE_LIST,"Particle effects","prt_smoke_huge\nprt_smoke_expand\nprt_spark\nprt_spark_2\nprt_wake\nprt_watersplash\nprt_wheeldirt\npuke\nriot_smoke\nshootlight\nsmoke30lit\nsmoke30m\nsmoke50lit\nsmoke_flare\nspraycan\n nextpage\nbackpage","Ok","Back");
  3881.             }
  3882.         }
  3883.         else
  3884.         {
  3885.             ShowPlayerDialog(playerid,DIALOG_PARTICLEEFFECTS,DIALOG_STYLE_LIST,"Particle effects","Page1\nPage2\nPage3\nPage4\nPage5","Ok","Back");
  3886.         }
  3887.     }*/
  3888.     else if(dialogid == DIALOG_CUSTOMINPUTSTRING)
  3889.     {
  3890.         if(response)
  3891.         {
  3892.             playerpick[playerid]=1;
  3893.             format(objectstring[objectcount],128,"%s",inputtext);
  3894.         }
  3895.         else
  3896.         {
  3897.             format(objectstring[objectcount],128,"Custom Object");
  3898.             playerpick[playerid] = 1;
  3899.         }
  3900.     }
  3901.     else if(dialogid == DIALOG_FAVORITEADDDELETE)
  3902.     {//Addobject\nDeleteobject\nInport object to game
  3903.         if(response)
  3904.         {
  3905.             new savestringname[128],string[128];
  3906.             favoritedialogstring = "";
  3907.             for(new count =0;count < 11;count++)
  3908.             {
  3909.                 format(savestringname,sizeof(savestringname),"slotstate[%i]",count);
  3910.                 slotstate[count] = dini_Int(objectsfilename,savestringname);
  3911.                 if((slotstate[count])==1)
  3912.                 {
  3913.                     format(savestringname,sizeof(savestringname),"slotstring[%i]",count);
  3914.                     format(slotstring[count],sizeof(slotstring), "%s",dini_Get(objectsfilename,savestringname));
  3915.                     format(savestringname,sizeof(savestringname),"slotobjectid[%i]",count);
  3916.                     slotobjectid[count] = dini_Int(objectsfilename,savestringname);
  3917.                 }
  3918.                 else if((slotstate[count])==0)
  3919.                 {
  3920.                     format(slotstring[count],sizeof(slotstring),"Empty");
  3921.                     slotobjectid[count] =0;
  3922.                 }
  3923.                 format(string,sizeof(string),"%s",favoritedialogstring);
  3924.                 format(favoritedialogstring,sizeof(favoritedialogstring),"%s\n%s",string,slotstring[count]);
  3925.             }
  3926.             if(listitem ==0)
  3927.             {
  3928.                 ShowPlayerDialog(playerid,DIALOG_FAVORITEADD,DIALOG_STYLE_LIST,"Add favorite object",favoritedialogstring,"Ok","back");
  3929.             }
  3930.             else if(listitem ==1)
  3931.             {
  3932.                 ShowPlayerDialog(playerid,DIALOG_FAVORITEDELETE,DIALOG_STYLE_LIST,"Delete favorite object",favoritedialogstring,"Ok","back");
  3933.             }
  3934.             else if(listitem ==2)
  3935.             {
  3936.                 ShowPlayerDialog(playerid,DIALOG_FAVORITEINPORT,DIALOG_STYLE_LIST,"Inport favorite object",favoritedialogstring,"Ok","back");
  3937.             }
  3938.         }
  3939.         else
  3940.         {
  3941.             ShowPlayerDialog(playerid,DIALOG_ADDOBJECTS,DIALOG_STYLE_LIST, "Main Menu 'JBobjects'","Custom Input\nSA:MP Logos\nLand Masses\nBase Sections\nElevator from VC\nDM Cages\nRacing\nParkour\nSky Diving Platforms\nTunnel Sections\nRamps\nModular Road Sections\nModular Bridge Sections\nTubes and Funnels\nSpheres\nOthers\nFavorite","Ok","Cancel");
  3942.         }
  3943.     }
  3944.     else if(dialogid == DIALOG_FAVORITEADD)
  3945.     {
  3946.         if(response)
  3947.         {
  3948.             if(IsPlayerAdmince(playerid,4))
  3949.             {
  3950.                 if((slotstate[listitem])==0)
  3951.                 {
  3952.                     listitempicked[playerid] = listitem;
  3953.                     ShowPlayerDialog(playerid,DIALOG_FAVORITEINPUTOBJECTID,DIALOG_STYLE_INPUT,"Input object id","Please insert the object id you would like to save","Ok","Back");
  3954.                 }
  3955.                 else
  3956.                 {
  3957.                     ShowPlayerDialog(playerid,DIALOG_NOT,DIALOG_STYLE_MSGBOX,"ERROR","ERROR this box already has a favorite item in it delete it if you would like to but a diffrent object in this catagory","back","close");
  3958.                 }
  3959.             }
  3960.             else
  3961.             {
  3962.                 ShowPlayerDialog(playerid,DIALOG_NOT,DIALOG_STYLE_MSGBOX,"Not High Enough Admin","You are not High Enought Level Admin addobjects To Favorite, You have to be level 4 or Rcon Admin","back","close");
  3963.             }
  3964.         }
  3965.         else
  3966.         {
  3967.             ShowPlayerDialog(playerid,DIALOG_FAVORITEADDDELETE,DIALOG_STYLE_LIST,"Delete&Add","Addobject\nDeleteobject\nInport object to game","Ok","Back");
  3968.         }
  3969.     }
  3970.     else if(dialogid == DIALOG_FAVORITEDELETE)
  3971.     {
  3972.         if(response)
  3973.         {
  3974.             if(IsPlayerAdmince(playerid,4))
  3975.             {
  3976.                 if((slotstate[listitem]) ==1)
  3977.                 {
  3978.                     new string[128];
  3979.                     format(slotstring[listitem],sizeof(slotstring),"Empty");
  3980.                     dini_Set(objectsfilename, string,(""));
  3981.                     format(string,sizeof(string),"slotobjectid[%i]",listitem);
  3982.                     slotobjectid[listitem] = 0;
  3983.                     dini_IntSet(objectsfilename, string,(slotobjectid[listitem]));
  3984.                     slotstate[listitem] = 0;
  3985.                     format(string,sizeof(string),"slotstate[%i]",listitem);
  3986.                     dini_IntSet(objectsfilename, string, (slotstate[listitem]));
  3987.                 }
  3988.                 else
  3989.                 {
  3990.                     ShowPlayerDialog(playerid,DIALOG_NOT,DIALOG_STYLE_MSGBOX,"ERROR","ERROR this box does not contain and object in it","back","close");
  3991.                 }
  3992.             }
  3993.             else
  3994.             {
  3995.                 ShowPlayerDialog(playerid,DIALOG_NOT,DIALOG_STYLE_MSGBOX,"Not High Enough Admin","You are not High Enought Level Admin addobjects To Favorite, You have to be level 5 or Rcon Admin","back","close");
  3996.             }
  3997.         }
  3998.         else
  3999.         {
  4000.             ShowPlayerDialog(playerid,DIALOG_FAVORITEADDDELETE,DIALOG_STYLE_LIST,"Delete&Add","Addobject\nDeleteobject\nInport object to game","Ok","Back");
  4001.         }
  4002.     }
  4003.     else if(dialogid == DIALOG_FAVORITEINPORT)
  4004.     {
  4005.         if(response)
  4006.         {
  4007.             if((slotstate[listitem]) ==1)
  4008.             {
  4009.                 playerpick[playerid]=1;
  4010.                 format(objectstring[objectcount],128,"%s",slotstring[listitem]);
  4011.                 jbobjectid[objectcount]= slotobjectid[listitem];
  4012.             }
  4013.             else
  4014.             {
  4015.                 ShowPlayerDialog(playerid,DIALOG_NOT,DIALOG_STYLE_MSGBOX,"ERROR","ERROR you must have and object in the box inorder to spawn it","back","close");
  4016.             }
  4017.         }
  4018.         else
  4019.         {
  4020.             ShowPlayerDialog(playerid,DIALOG_FAVORITEADDDELETE,DIALOG_STYLE_LIST,"Delete&Add","Addobject\nDeleteobject\nInport object to game","Ok","Back");
  4021.         }
  4022.     }
  4023.     else if(dialogid == DIALOG_NOT)
  4024.     {
  4025.         if(response)
  4026.         {
  4027.             ShowPlayerDialog(playerid,DIALOG_FAVORITEADDDELETE,DIALOG_STYLE_LIST,"Delete&Add","Addobject\nDeleteobject\nInport object to game","Ok","Back");
  4028.         }
  4029.         else
  4030.         {
  4031.             SendClientMessage(playerid, RED, "You have closed the diolog boxes");
  4032.         }
  4033.     }
  4034.     else if(dialogid == DIALOG_FAVORITEINPUTOBJECTID)
  4035.     {
  4036.         if(response)
  4037.         {
  4038.             slotobjectid[listitempicked[playerid]] = strval(inputtext);
  4039.             ShowPlayerDialog(playerid,DIALOG_FAVORITEINPUTSTRING,DIALOG_STYLE_INPUT,"Input object name","Please enter the name of the object you would like to save","Ok","Back");
  4040.         }
  4041.         else
  4042.         {
  4043.             slotobjectid[listitempicked[playerid]] = 0;
  4044.             ShowPlayerDialog(playerid,DIALOG_FAVORITEADDDELETE,DIALOG_STYLE_LIST,"Delete&Add","Addobject\nDeleteobject\nInport object to game","Ok","Back");
  4045.         }
  4046.     }
  4047.     else if(dialogid == DIALOG_FAVORITEINPUTSTRING)
  4048.     {
  4049.         if(response)
  4050.         {
  4051.             new string[128];
  4052.             format(slotstring[listitempicked[playerid]],sizeof(listitempicked),"%s",inputtext);
  4053.             format(string,sizeof(string),"slotstring[%i]",listitempicked[playerid]);
  4054.             dini_Set(objectsfilename, string,(slotstring[listitempicked[playerid]]));
  4055.             format(string,sizeof(string),"slotobjectid[%i]",listitempicked[playerid]);
  4056.             dini_IntSet(objectsfilename, string,(slotobjectid[listitempicked[playerid]]));
  4057.             slotstate[listitempicked[playerid]] = 1;
  4058.             format(string,sizeof(string),"slotstate[%i]",listitempicked[playerid]);
  4059.             dini_IntSet(objectsfilename, string, (slotstate[listitempicked[playerid]]));
  4060.             listitempicked[playerid] = 0;
  4061.         }
  4062.         else
  4063.         {
  4064.             ShowPlayerDialog(playerid,DIALOG_FAVORITEADDDELETE,DIALOG_STYLE_LIST,"Delete&Add","Addobject\nDeleteobject\nInport object to game","Ok","Back");
  4065.         }
  4066.     }
  4067.     if((playerpick[playerid])==1)
  4068.     {
  4069.         new savestringname[128],string[128];
  4070.         playerpick[playerid]=0;
  4071.         objectcolor[objectcount] = 0;
  4072.         GetPlayerPos(playerid,objx[objectcount],objy[objectcount],objz[objectcount]);
  4073.         objx[objectcount] = objx[objectcount]+5;
  4074.         objects[objectcount] = CreateDynamicObject(jbobjectid[objectcount],objx[objectcount],objy[objectcount],objz[objectcount],objxrot[objectcount],objyrot[objectcount],objzrot[objectcount],0);
  4075.         format(savestringname,sizeof(savestringname),"objx[%i]",objectcount);
  4076.         dini_IntSet(objectsfilename,savestringname,floatround(objx[objectcount]));
  4077.         format(savestringname,sizeof(savestringname),"objy[%i]",objectcount);
  4078.         dini_IntSet(objectsfilename,savestringname,floatround(objy[objectcount]));
  4079.         format(savestringname,sizeof(savestringname),"objz[%i]",objectcount);
  4080.         dini_IntSet(objectsfilename,savestringname,floatround(objz[objectcount]));
  4081.         format(savestringname,sizeof(savestringname),"objxrot[%i]",objectcount);
  4082.         dini_IntSet(objectsfilename,savestringname,floatround(objxrot[objectcount]));
  4083.         format(savestringname,sizeof(savestringname),"objyrot[%i]",objectcount);
  4084.         dini_IntSet(objectsfilename,savestringname,floatround(objyrot[objectcount]));
  4085.         format(savestringname,sizeof(savestringname),"objzrot[%i]",objectcount);
  4086.         dini_IntSet(objectsfilename,savestringname,floatround(objzrot[objectcount]));
  4087.         format(savestringname,sizeof(savestringname),"object[%i]",objectcount);
  4088.         dini_IntSet(objectsfilename,savestringname,(jbobjectid[objectcount]));
  4089.         format(savestringname,sizeof(savestringname),"objectcolor[%i]",objectcount);
  4090.         dini_IntSet(objectsfilename,savestringname,(objectcolor[objectcount]));
  4091.         format(savestringname,sizeof(savestringname),"objectlabel[%i]",objectcount);
  4092.         dini_Set(objectsfilename,savestringname,(objectstring[objectcount]));
  4093.         for(new i; i < MAX_PLAYERS;i++)
  4094.         {
  4095.             if(IsPlayerConnected(i))
  4096.             {
  4097.                 if((showlabel[i])==1)
  4098.                 {
  4099.                     format(string,128,"object:%s--ID:%i-Objectid-%i",objectstring[objectcount],objectcount,jbobjectid[objectcount]);
  4100.                     objectlabel[i][objectcount] = CreatePlayer3DTextLabel(i,string,COLOR,objx[objectcount],objy[objectcount],objz[objectcount],DISTANCELABEL,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
  4101.                 }
  4102.             }
  4103.         }
  4104.         if((allowence[0][playerid])==1)
  4105.         {
  4106.             if((playersinput)==1)
  4107.             {
  4108.                 for(new count=0;count < MAX_PLAYERS;count++)
  4109.                 {
  4110.                     if(IsPlayerConnected(count))
  4111.                     {
  4112.                         if(IsPlayerAdmince(count,3))
  4113.                         {
  4114.                             new name[128];
  4115.                             GetPlayerName(playerid,name,sizeof(name));
  4116.                             format(string,128,"%s has addobject id:%i. The objectid of this is %i.",name,objectcount,jbobjectid[playerid]);
  4117.                             SendClientMessage(count,DARKBLUE,string);
  4118.                         }
  4119.                     }
  4120.                 }
  4121.             }
  4122.         }
  4123.         objectcount ++;
  4124.         dini_IntSet(objectsfilename,"objectcount",(objectcount));
  4125.     }
  4126.     return 0;
  4127. }
  4128. stock IsPlayerAdmince(playerid,level)
  4129. {
  4130.     if(IsPlayerAdmin(playerid)||CustomAdmin(playerid,level))
  4131.     {
  4132.         return true;
  4133.     }
  4134.     else
  4135.     {
  4136.         return false;
  4137.     }
  4138. }
  4139. stock CustomAdmin(playerid,level)
  4140. {
  4141.     return CallLocalFunction("InputAdminSystem","ii",playerid,level);
  4142. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement