Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-01-02 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 03, 2010, 12:50:24 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Join the new Facebook Warcraft-Source.com Group! It has been currently opened!
Join!
Google  
  Home   Forum   Help Search Login Register   *
Pages: 1 [2] 3   Go Down
  Print  
Author Topic: Question about weapon strictions on Deathmatch server  (Read 306 times)
gimik
Level 7 Expert
*****
Online Online

United States United States

Posts: 187



« Reply #15 on: December 06, 2009, 11:14:21 PM »

I've already tried that command and it doesnt work because it makes them drop it at spawn, but they can buy it after they spawn.

I need to keep it restricted.
Logged




AvasT
Level 7 Expert
*****
Online Online

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #16 on: December 07, 2009, 12:19:49 AM »

Thats why i told you to talk with me Smiley
Let me make for you the script.
Logged

Lol?
AvasT
Level 7 Expert
*****
Online Online

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #17 on: December 07, 2009, 12:58:59 AM »

Code:
"player_spawn_cmd" "es_xset allowed_weapons "weapon_deagle, weapon_hegrenade, weapon_knife";es_delayed 5 es_xdoblock myscript/restrictions

Well i coded the script for you, that it remove the weapons, restrict everything, and give the normal weapons, for other races just change the weapon_names Smiley
Instructions:
Create a new folder in eventscripts folder called restrictions, then inside of it create a notepad called es_myscript, add es_load myscript to your autoexec.cfg then Copy and paste the Script inside of the notepad.

And sorry for the another code, the est_restrictall was wrong.

Code:
block restrictions
{
        if (event_var(weapon) notin server_var(allowed_weapons) do
        {
                es est_removeweapon event_var(userid) 1
                es est_removeweapon event_var(userid) 2
                es est_removeweapon event_var(userid) 3
                es est_removeweapon event_var(userid) 4
                es_delayed .2 est_RestrictAll event_var(userid)
                es_delayed .2 est_UnRestrict event_var(userid) weapon_deagle
                es_delayed .2 est_UnRestrict event_var(userid) weapon_knife
                es_delayed .2 est_UnRestrict event_var(userid) weapon_hegrenade
                es_delayed .2 est_give event_var(userid) weapon_deagle
                es_delayed .2 est_give event_var(userid) weapon_knife
                es_delayed .2 est_give event_var(userid) weapon_hegrenade
                es_tell event_var(userid) #multi #default Sorry, but you're not #lightgreenAllowed #defaultto use another weapons.
        }
}
Logged

Lol?
gimik
Level 7 Expert
*****
Online Online

United States United States

Posts: 187



« Reply #18 on: December 07, 2009, 01:35:47 AM »

This will make it so that even after they spawn, they cant use any other gun? than the deagle
Logged




AvasT
Level 7 Expert
*****
Online Online

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #19 on: December 07, 2009, 02:50:00 AM »

Yes! It will restrict everything and will enable only deagle and knife and he to be used.
Logged

Lol?
gimik
Level 7 Expert
*****
Online Online

United States United States

Posts: 187



« Reply #20 on: December 17, 2009, 01:22:47 AM »

When i followed your instructions, when i load up the server it says..

"Could not open script for addons/eventscripts/myscript/es_myscript."
      (Error source (Console): (no script)
Logged




Sasuke[Icetouch]
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 174


FreeTimeCoder


« Reply #21 on: December 17, 2009, 03:13:07 PM »

Your folder name (myscript) has to match your es_xxxx.txt.
AvasT told you to create a folder called restrictions, and put myscript in it, which would be actually wrong.
There are 2 ways to solve this.
Folder: restrictions, text file: es_restrictions.txt
or
Folder: myscript, text file: es_myscript.txt
Logged

################################
Join our new Server with the newest Mod on it!

################################
AvasT
Level 7 Expert
*****
Online Online

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #22 on: December 17, 2009, 04:10:25 PM »

ohhhh sorry didn't had alook at this change the name in doblock and the folder and the script name
Logged

Lol?
gimik
Level 7 Expert
*****
Online Online

United States United States

Posts: 187



« Reply #23 on: December 19, 2009, 09:22:18 PM »

So i just have to rename my script and place in the restrictions folder Avast told me to make?

IF not could you show me what the directory would be using addons/eventscripts/myscript/es_myscript ...Show it like that.

Or just give me directions of what i have to do. like make a folder named blah and place it here and do this.
Logged




AvasT
Level 7 Expert
*****
Online Online

Brazil Brazil

Posts: 723




doug_tiozao
« Reply #24 on: December 19, 2009, 11:55:57 PM »

Yes yes, if the folder name is myscript,the script name should be es_myscript Cheesy
Logged

Lol?
gimik
Level 7 Expert
*****
Online Online

United States United States

Posts: 187



« Reply #25 on: December 20, 2009, 01:31:55 AM »

the folder name is now myscript and the text file (the actual script is called es_myscript).

Do i need to change the:
"player_spawn_cmd" "es_xset allowed_weapons "weapon_deagle, weapon_hegrenade, weapon_knife";es_delayed 5 es_xdoblock myscript/restrictions

or do i leave it?
Logged




Sasuke[Icetouch]
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 174


FreeTimeCoder


« Reply #26 on: December 20, 2009, 12:34:27 PM »

If you have a block restrictions {} in your myscript, it'll be fine.
Logged

################################
Join our new Server with the newest Mod on it!

################################
xpxdoo
Level 0 Beginner

Offline Offline

United States United States

Posts: 19



« Reply #27 on: December 20, 2009, 05:21:41 PM »

Your EST broke. Re-upload it to the server, Shut it down, start it up.

Edit: I myself do not know what cause est to break but it may be from server crash.
« Last Edit: December 20, 2009, 05:23:31 PM by xpxdoo » Logged
gimik
Level 7 Expert
*****
Online Online

United States United States

Posts: 187



« Reply #28 on: December 22, 2009, 08:22:59 PM »

Where can i find the latest EST and ES downloads?
Logged




gimik
Level 7 Expert
*****
Online Online

United States United States

Posts: 187



« Reply #29 on: December 23, 2009, 09:09:23 PM »

I can't find anything on google, it doesn't let me DL O.o
Logged




Pages: 1 [2] 3   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
January 02, 2010, 11:33:33 PM
i mean if you start 100 cmd instances and type ping google.com in all, after a while it will show timeout, but site will still be only for everyone but you Tongue
January 02, 2010, 11:33:01 PM
no you don't Tongue
a site can barely "crash"
though, it can have a timeout, and in this case it's in most case your i-net connection which has the timeout with the site
January 02, 2010, 11:24:47 PM
i think i crash the http://www.fpsbanana.com/ site.... after spamming logging...lol
January 02, 2010, 10:10:49 PM
Well thank you Smiley fucker. Tongue
January 02, 2010, 10:09:16 PM
Welcome back Pietro Tongue
January 02, 2010, 10:06:04 PM
Welcome back Eric Tongue
January 02, 2010, 09:29:49 PM
Oh god how i hate you chuck.
Recent
[Today at 12:24:21 AM]

[Today at 12:05:09 AM]

[January 02, 2010, 11:26:04 PM]

[January 02, 2010, 10:59:30 PM]

[January 02, 2010, 10:26:02 PM]

[January 02, 2010, 10:24:45 PM]

[January 02, 2010, 09:59:54 PM]

[January 02, 2010, 09:32:57 PM]

[January 02, 2010, 09:23:12 PM]

[January 02, 2010, 09:01:48 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.11 seconds with 22 queries.