copied from cod4x.me
Here is the snipers_only.gsc I fixed for my server, I used Dans simple snipers script ( thanks for leaving that up ) and added a anti camper section to it.There is dvar check to see if it's on or off you need to set in server.cfg, ( set scr_snipers 1 )I did this so on my server I can change back to normal load outs in console, and it takes effect after map change.
The anti camper part of script I added due to the fact it wasn't getting the correct camp times in my main anti camp script. I was using the camp times for mg's not the sniper times, it checks for weapons and has different times for snipers and non-sniper weapons so to get around this I added a dvar check on my main anti camper.gsc
if(getdvarint("scr_snipers") == 1)
return;
so when the server is set to snipers only it doesn't run.
All you need to do is set the script for the weapon and perks you want to use,and the camping times. Just so you know if you want players to have a pistol you have to remove the line self SwitchToWeapon("remington700_mp"); because with that in there the pistol will just flash and go away.
cod4x Scripts found on cod4x.me ⇒ sniper script
-
Topic author - KAB Administrator
- Posts: 362
- Joined: 19 Jan 2004 18:28
- 20
- Contact:
sniper script
Gen Stranger
Stranger-KAB
Stranger-KAB
Re: sniper script
Hello. I want to know how to run sniper script After adding it into the server?
And
Is there any cmd in b3 that gives everyone sniper or the mod will start when server runs?
And
Is there any cmd in b3 that gives everyone sniper or the mod will start when server runs?
-
Topic author - KAB Administrator
- Posts: 362
- Joined: 19 Jan 2004 18:28
- 20
- Contact:
Re: sniper script
I just copied the post and script from cod4x.me
I will find it again and see if he explains how to use it.
Gen Stranger
Stranger-KAB
Stranger-KAB
-
Topic author - KAB Administrator
- Posts: 362
- Joined: 19 Jan 2004 18:28
- 20
- Contact:
Re: sniper script
I wrote to the person that posted the script and am waiting a response
Gen Stranger
Stranger-KAB
Stranger-KAB
-
Topic author - KAB Administrator
- Posts: 362
- Joined: 19 Jan 2004 18:28
- 20
- Contact:
Re: sniper script
ok here is what I was able to find outGen Stranger wrote: ↑30 Oct 2020 14:45 I wrote to the person that posted the script and am waiting a response
I was given his complete setup for the server
which is the files in main_shared\maps\mp\gametypes
they are located here you add the following to your server.cfg
set scr_snipers "1" //on/off
set spawn_protection "10" // time to protect
edit the messsages.gsc file to suit your server
edit the _sniper_only.gsc (weapons...anticamper times...anticamper...messages)
self SetPerk("specialty_fastreload");
wait 6; //<------------------------ set 1 sec less than protection time so player won't get the weapon until spawn protection time ends.------------------------------
self GiveWeapon( "remington700_mp" );
good luck
btw I tried it on my test sever without editing the files and it worked great
but if you don't at least edit the messages.gsc file it will show welcome to his server
Gen Stranger
Stranger-KAB
Stranger-KAB