Admin Pro 1.22

Started by wcSki, January 22, 2006, 07:50:39 PM

Previous topic - Next topic

wcSki

I have a couple of question about Admin Pro.

   

   

   1st... how can I turn the volume down of the spectate music when I turn that on... it seems very loud. I would like to use it... but I want it softer.

   

   2nd... the cvar settings?? How would I set those up?? I want use this so I can capture common hacks... do you have any suggestions?? I do not want to force skins on anyone... but I would like to use it to stop known hacks.

   

   Hope you understand.

   

   Thanks,

   Ski

Elgan {sfx}

1 cant, will add this option

   

   2. just add cvars, it cant detect cvars, just force them.

wcSki

Elgan,

   

   I guess what I am asking for #2 is... what cvars should I add to achieve my goal?? I am new to all this and I am not sure which ones I should put in. Can you give me some idea's?

   

   Thanks,

   Ski

Elgan {sfx}

i wouldnt bother tbh, some do, so i added it.  if a cheater really wants to cheat, they can get past any script/scanner.

wcSki

Hey Elgan... I have another question. Is it possible to swap the secondary weapons?? I would like to swap out the standard team pistols and give them a silence pistol instead. How can this be done??? Looking at the weapons limiter file you can only take them away... is there a way to replace the standard pistol with the silence pistol like you do with the beginning of survivor.

   

   Thanks,

   Ski

habsey

ok this is possible a couple ways.

   

   You can do it in your state file under the raise state by adding give "models/weapons/silenced_pistol.tik"

   

   or you could do a script like this

   

   

   
   while (1)
   {
   take "models/weapons/colt45.tik"
   take "models/weapons/german_pistol.tik" //make sure to change this cant remember the correct .tik file name
   give "models/weapons/silenced_pistol.tik" //make sure to change this cant remember the correct .tik file name
   wait 3
   }
   end
   

   and to make sure there is no problems with the loop running again y not try sumthing like this.

   

   main:
   while(1)
   {
   if (local.pistol_exhange = 1)
   {
   end
   }
   else if (local.pistol_exhange != 1)
   {
   local.pistol_exhange = 1
   take "models/weapons/colt45.tik"
   take "models/weapons/german_pistol.tik" //make sure to change this cant remember the correct .tik file name
   give "models/weapons/silenced_pistol.tik" //make sure to change this cant remember the correct .tik file name
   }
   wait 1
   }
   end
   
1[sky] Man[/sky]
1 Job
[pink]1[/pink][yellow] Vision[/yellow]

wcSki

SO this can not be done in admin pro?

   

   Ski

Cobra {sfx}

Elgans in the middle of moving house - youll need to wait until his return for a reply
Sleep? What is that?

wcSki

Thx Cobra... if I used the above script... how would I use it?

   

   Would I have to put an execute line at the start of each map or something?

   

   Ski

Cobra {sfx}

Ive never used or looked at Admin Pro so i wouldnt know m8, perhaps Habsey can answer u
Sleep? What is that?

wcSki

I think you mis-understood... I can wait till Elgan returns to see if this can be done using admin pro.

   

   

   But if I wanted to create a script to swap pistols out WITHOUT using admin pro how would I do that?? Would I need something like above and then exec global/pistolswap.scr or something in each map??

   

   Ski

habsey

take the code i gave u above....

   

   then save it as weapon_stuff.scr

   then open up ur dmpreache.scr file and at the very bottom put this line

   

   

   

   exec global/weapon_stuff.scr
   end
   

   and then open up pakscape, create a new file make a folder called global and put the dmpreache.scr file and the weapon_stuff.scr file in this folder.

   

   Doing it under dmpreache.scr saves alot of work instead of doing it in the map file as then you only need to do it in one place and not your whole map rotation

   

   

   If you wanna do this inside admin pro y not try using the weapons limiter...

   

   editing admin pro is probably a bit to hard for you when u open it up (sometimes i even get lost in it (great scripting by elgan!)) so just use the .txt files that he made for easy use.  So if the weapon limiter doesnt work then give my code a go.

   

   GL!
1[sky] Man[/sky]
1 Job
[pink]1[/pink][yellow] Vision[/yellow]

wcSki

Thx Habsey... I would love to figure out a way to do this within the Admin Pro weapons limiter so I can turn it off and on when I want to. That is what is so nice about it Admin Pro's weapons limiter... but for secondary weapons in Admin Pro elgan just has it so you can take the pistols or keep them... not swap them out with the silenced pistol.

   

   I am trying to set this up on a server that we use in a lot of different ways... mainly a rifle only server.... but sometimes we need to set it up for matches. So I need to ability to turn mods on and off fairly easy. With the script I can not do that... I have to remove the pk3 from the main folder correct?

   

   Ski

habsey

well there is a certain way you are able to turn mods on and off... for example with the weapons_stuff.scr that i gave u earlier instead of writing this line

   
 exec global/weapon_stuff.scr
   end

   

   in your dmpreache you could replace it with

   

   
   if(getcvar(g_swap_pistols) == "1")
   {
   exec global/weapon_stuff.scr
   }
   end
   

   

   this way if you were to enter

   rcon g_swap_pistols 1

   into your console and then restart your server, this script would execute.

   As this swap mod does not conflict with admin pro it should be fine to just do it like we are.  I havent used admin pro much myself, only looked into some of the scripting.  There is no way to edit admin pro to do what you want to achieve with the settings.txt files however you would be able to do it within the weapons limiter scripting (we should leave this to elgan).  If you kindly ask him he will probably add this to the next version but for the time being just use the stuff i have givin you.  

   

   BTW,

   

   you can edit this code to whatever you want...

   

   

   
   if(getcvar(g_swap_pistols) == "1")
   {
   exec global/weapon_stuff.scr
   }
   end
   

   

   for example if i made a dark sky i could do sumthing like this

   

   

   
   if(getcvar(g_dark_sky) == "1")
   {
   exec global/dark_sky.scr
   }
   end
   

   

   to turn it on i would do

   rcon g_dark_sky 1

   rcon restart

   then to turn it off i would do

   rcon g_dark_sky 0

   rcon restart

   

   GL!
1[sky] Man[/sky]
1 Job
[pink]1[/pink][yellow] Vision[/yellow]

Elgan {sfx}

wcSki :
   Hey Elgan... I have another question. Is it possible to swap the secondary weapons?? I would like to swap out the standard team pistols and give them a silence pistol instead. How can this be done??? Looking at the weapons limiter file you can only take them away... is there a way to replace the standard pistol with the silence pistol like you do with the beginning of survivor.

   

   Thanks,

   Ski

   

   

   think it can give secondary as well, cant check right now, if should be fine with a script like above with raise as habsey shows, no loop,

   

   add cvars or use Ap cvars, up to u.

   

   level.run["weapons-limter"] == 0 //weapon off, 1=on, can check if its on or off like that.