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 2009-08-21 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
August 21, 2009, 07:43:17 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: [Knife] Race Problems  (Read 32 times)
Hog329cc
Level 0 Beginner

Offline Offline

United States United States

Posts: 6




Hog324cc

myServer 8.9.15.234:27015
(Warning: click connects through Steam)
« on: August 20, 2009, 03:05:59 AM »

Hey! I just got done testing all my races (200), I found a few errors that need to be fixed. It seems that all of my knife races have the same problem. They all drop everything at start of a new round (even knife), and I can pick up guns, and use them! How do I fix I would really like to know how to fix this. Please post code to fix and were to place it at. (code cmd, skill, or spawn cmd)
Logged
Ours Orange
Level 3 Trained Apprentice
***
Offline Offline

Canada Canada

Posts: 65



« Reply #1 on: August 20, 2009, 03:32:31 AM »

es wcs_restrict event_var(userid) knife
in spawn_cmd, as simple as that
Logged
Crazy
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 26



« Reply #2 on: August 20, 2009, 04:01:06 AM »

Go to player_spawn_cmd then insert this in...

Code
GeSHi (eventscripts):
"es est_RestrictAll event_var(userid);es est_stripplayer event_var(userid) 1;es es_delayed 0.3 est_UnRestrict event_var(userid) weapon_knife;es es_delayed 1 es est_give event_var(userid) weapon_knife"

Hope that helped.

And here is a more efficient player_spawn_cmd that will make it run faster...

Code
GeSHi (eventscripts):
"es est_RestrictAll event_var(userid);es est_stripplayer event_var(userid) 1;es es_xdelayed 0.3 est_UnRestrict event_var(userid) weapon_knife;es es_xdelayed 1 es est_give event_var(userid) weapon_knife"

I'm not sure if you need the es's before the lines but thats how I know how to code, ask somebody else if you feel that they are unneccesary.

Hope it helped.
« Last Edit: August 20, 2009, 04:07:16 AM by Crazy » Logged
CA.Berettonawak
Le renommé méconnu...
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 2504


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #3 on: August 20, 2009, 08:09:06 AM »

Nothing to do with your answers, mates.
Although, thanks for having tried to help Smiley

Your problem is a configuration problem.
Open file cfg/es_tools.cfg, and change the value of "est_enable_weapons_restrictions" to 1
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
Hog329cc
Level 0 Beginner

Offline Offline

United States United States

Posts: 6




Hog324cc

myServer 8.9.15.234:27015
(Warning: click connects through Steam)
« Reply #4 on: August 20, 2009, 07:33:16 PM »

Nothing to do with your answers, mates.
Although, thanks for having tried to help Smiley

Your problem is a configuration problem.
Open file cfg/es_tools.cfg, and change the value of "est_enable_weapons_restrictions" to 1

Cheesy Thank you very much mate! Also I thank every 1 that tried to help Cheesy CHEERS!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 05:03:59 AM
ugh so exhausted worked 21 hours last 29 hours....
August 20, 2009, 09:05:08 PM
I have invalid time oh here :O Some body help ! help me!
August 20, 2009, 08:18:35 PM
4 days, 22 hours and 38 minutes.
August 20, 2009, 08:18:33 PM
im here longer then you :p
August 20, 2009, 08:13:08 PM
yea, but i have bin here the time i have bin logged inn,
August 20, 2009, 08:05:29 PM
Total time logged in: 18 days, 12 hours and 2 minutes.
August 20, 2009, 07:49:24 PM
lol, and i have bin online 7 days, 9 hours and 15 min Tongue
Recent
[Today at 07:40:33 AM]

[Today at 05:37:09 AM]

[Today at 12:38:29 AM]

[Today at 12:14:32 AM]

[August 20, 2009, 08:15:02 PM]

[August 20, 2009, 07:53:42 PM]

[August 20, 2009, 07:33:16 PM]

by M.R.
[August 20, 2009, 05:55:25 PM]

[August 20, 2009, 02:21:58 PM]

[August 20, 2009, 11:50:00 AM]
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.118 seconds with 25 queries.