Admin Pro Questions

Started by wcSki, August 02, 2005, 01:36:38 PM

Previous topic - Next topic

wcSki

I am using the using the weapons_limiter part of this mod. I am trying to use this because I can turn it off and on... but I am having a problem. Here's what's going on:

   

   Setup Server with weapons_limiter set to 1 and weapons adjusted so server is rifle only.

   

   By using Rcon I try to turn the mod off (cmd: rcon admin_cmd "weapons_limiter 0") press enter and when I get killed or kill myself the weapons_limiter turns off and I can pick any weapons.... BUT only as long as the map stays on. Once the map switches or if I restart the map using rcon the weapons_limiter turns itself back on. Why does it turn back on??

   

   Is there a way to make it so the weapons_limiter mod stays off until I turn it back on, even if the map restarts or changes to next map??

   

   Thanks

   Ski

Elgan {sfx}

This problem is because i changed the name of the setting that keeps all info.

   

   This problem has been fixed and setting will not reload unless they are set to reload. Unfotunatly because i have made so many half changes admin-pro 1.1 is no where near ready for a release:(.

   

   I still have other mods to refine and make and check and etc.

wcSki

is there something that I can change/edit to get this part working?? I know enough to be a little dangerous when it comes to scripting... if you give me a little direction I think I can edit what ever file needs to be changed.... or is it more that what I am thinking??

   

   Thanks

   Ski

Elgan {sfx}

well im not totaly sure what needs to be done as i did it and then changed it anyway/

   

   

   does the top section of settings.scr in global for admin-pro look like this?

   

   

      if(level.camper_setup!=1)                                             // if setup is not yet done
      {
   
         if(level.run_extra != 1)
         {
            exec settings/advanced.txt::extra_scripts
            level.run_extra = 1
   
         }
   
         level.camper_setup=1                                             // set the setup to 1 telling the script its done and dont run this section again
   
         if(game.reset == "1" || game.all_commands == NIL)                           // if there are no settings or reset has been set reload the settings
         {
   

   

   im too lazy to9 donwload it :D

   

   it the if is different, changing it might just fix it:S

wcSki

this is the top section.

   

   
main:
      if(level.camper_setup!=1)                                             // if setup is not yet done
      {
   
   
         exec global/ac/spawn_detect.scr::setup
   
         level.camper_setup=1                                             // set the setup to 1 telling the script its done and dont run this section again
   
         if(game.setup== "" || game.setup == "1" || game.commands == NIL)                           // if there are no settings or reset has been set reload the settings
         {
            local.mods = waitexec settings/Mods.txt::commands                           // get the command scripts from the mods.txt
   
            if(local.mods==NIL)                                          // if the returned value is nothing then their is somethign wrong so end.
            {
               exec global/ac/console_feedback.scr "Mods.txt is broken or missing- Please fix"   1               // message the admins with what is wrong.
               exec global/ac/console_feedback.scr "Terminating mod" 1                           // tell them the script will end.
               end                        

   

   Doesnt look anything like that. must be something with the line that is before // if there are no settings or reset has been set reload the settings.

   

   But not sure what to change.

   Ski

Elgan {sfx}

eek thats alot different to how mine is atm.

   

   them things were the same section.

   

   do u want me to donwload it try and fix only that or carry on workin for the next version?

wcSki

we can work with it for now... I just have to edit the mod.txt file and restart the server toturn it off and on now. Little bothersomem but we can work with it for now. I thought if it was something quick and easy we could to a temporary fix... but if not keep on working on your next version.

   

   Thanks

   Ski

Elgan {sfx}

well if your in need of it and are restarting alot i can do it for u.

   

   

   is it u only want it on for one map or ??

wcSki

No it is not a certain map... its just we use the server this is on for matches and stuff... so when we need to set it up for a match or practice we want the mod off. But when I turn it off thru console and restart the map to start the match/practice it turns back on... so I edit the mods.txt file to turn it off... then restart the server. It is a pain in the @#$#, but we are making it work for now. If it won't take you to long to get a patch/fix for this it would be great, but I understand us waiting for the next release if this is a big problem.

   

   Thanks

   Ski

Elgan {sfx}

ok man try this settings.scr

   

   maybe it work. i tested it quick and settings seemed to keep ok.

   

   75-settings.scr.zip

wcSki

Well I finally got around to checkin to see if this new file would work and sorry to say it doesn't. I can have the mod ON, turn it off using the command and it will shut OFF... but if the map changes or I restart it the mod turns back ON. :(

   

   Ski