cod4x Scripts found on cod4x.mesniper script

I decided to gather scripts on cod4x.me and post them here
these are not my scripts and only posted for informational purposes only.
Post Reply
User avatar

Topic author
Gen Stranger
KAB Administrator
Posts: 362
Joined: 19 Jan 2004 18:28
20
Contact:

sniper script

Post by Gen Stranger »

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.
_snipers_only.zip
Copied from cod4x.me
(1.27 KiB) Downloaded 2177 times
_snipers_only.zip
Copied from cod4x.me
(1.27 KiB) Downloaded 2177 times
Gen Stranger
Stranger-KAB

_MoMo_
Registered
Posts: 9
Joined: 30 Aug 2020 18:17
4
Contact:

Re: sniper script

Post by _MoMo_ »

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?
User avatar

Topic author
Gen Stranger
KAB Administrator
Posts: 362
Joined: 19 Jan 2004 18:28
20
Contact:

Re: sniper script

Post by Gen Stranger »

_MoMo_ wrote: 29 Oct 2020 21:26 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?
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
User avatar

Topic author
Gen Stranger
KAB Administrator
Posts: 362
Joined: 19 Jan 2004 18:28
20
Contact:

Re: sniper script

Post by Gen Stranger »

I wrote to the person that posted the script and am waiting a response
Gen Stranger
Stranger-KAB
User avatar

Topic author
Gen Stranger
KAB Administrator
Posts: 362
Joined: 19 Jan 2004 18:28
20
Contact:

Re: sniper script

Post by Gen Stranger »

Gen Stranger wrote: 30 Oct 2020 14:45 I wrote to the person that posted the script and am waiting a response
ok here is what I was able to find out
I was given his complete setup for the server
which is the files in main_shared\maps\mp\gametypes
they are located here
gametypes.zip
files in directory
(12.41 KiB) Downloaded 2035 times
gametypes.zip
files in directory
(12.41 KiB) Downloaded 2035 times
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
Post Reply