AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Weapons Arena Easy On/Off (https://forums.alliedmods.net/showthread.php?t=63667)

greenstar 11-26-2007 14:45

Weapons Arena Easy On/Off
 
Okay... I know almost nothing about scripting, so I was hoping you guys could help me out with an idea. I use the weaponarena plugin and here's the deal:

1. Could someone make a script so that by pushing one key I could enable or disable the plugin with all of my cvars already set?

2. Would it be possible to write a script so that the plugin is automatically turned on on specified maps but not on others?

Thanks!

[ --<-@ ] Black Rose 11-26-2007 15:23

Re: Weapons Arena Easy On/Off
 
1. I'm guessing this could be done by alias.
2. That could be done by map config files, but it's really easy to make.

greenstar 11-26-2007 16:41

Re: Weapons Arena Easy On/Off
 
Are there links to walkthroughs for these? I'd really like to learn how xD

djmd378 11-26-2007 23:45

Re: Weapons Arena Easy On/Off
 
1. edit the .sma to have your pre defined cvars
2. if there is a cvar/command to turn it on/off, in your configs directory make a folder called "maps" (If it isnt already there) then create <insert map's name that you want this to be on automatically>.cfg file and in that .cfg file, place the cvar that would turn it on in it. for example if "amx_turn_on 1" was the cvar/command that turns it on, then place that in there

greenstar 11-27-2007 15:44

Re: Weapons Arena Easy On/Off
 
Well... I created scoutzknives.cfg and it looked like this:

Quote:

sv_airaccelerate 100
mp_gravity 250

weaponarena_on
weaponarena_delay .2
weaponarena_holdknife 0
weaponarena_randomteamspecific 0
It still didn't automatically load =(


All times are GMT -4. The time now is 11:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.