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-03-29 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
March 29, 2009, 05:16:25 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame - Designer
Must Visit it
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: Weapon Menu -SILENCE  (Read 526 times)
SILENCE
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 66





myServer 208.100.38.133:27015
(Warning: click connects through Steam)
« on: August 09, 2008, 08:09:16 AM »

 I have a Wcs/Zombiemod Server. Some people wanted a guns list under attack in the shopmenu. So i came up with this. These are just some guns that we wanted in the menu. -SILENCE


M4A1
Deagle
AK-47
Shotgun
Elites/Dualies
MP5
P90


Here it is
Code:
   "6"
  {
  "name"        "M4A1"
  "description" "This Item Will Give a Maverick Carbine/M4A1"
  "category"    "3"
  "cost"        "3000"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "1"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es es_delayed 1 est_UnRestrictAll event_var(userid);es_delayed 1.1 es est_UnRestrict event_var(userid) weapon_m4a1; es es_delayed 1.5 est_give event_var(userid) weapon_m4a1"
  "cmdactivate" "0"
  }

Code:
   "7"
  {
  "name"         "Deagle"
  "description" "This Item Will Give a Deagle"
  "category"    "3"
  "cost"        "650"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "0"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es es_delayed 1 est_UnRestrictAll event_var(userid);es_delayed 0.1 es est_UnRestrict event_var(userid) weapon_deagle; es es_delayed 1.5 est_give event_var(userid) weapon_deagle"
  "cmdactivate" "0"
  }
Code:
  "8"
  {
  "name"         "AK-47"
  "description" "This Item Will Give a AK-47"
  "category"    "3"
  "cost"        "3000"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "0"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es es_delayed 1 est_UnRestrictAll event_var(userid);es_delayed 0.1 es est_UnRestrict event_var(userid) weapon_ak47; es es_delayed 1.5 est_give event_var(userid) weapon_ak47"
  "cmdactivate" "0"
  }
Code:
  "9"
  {
  "name"         "M3|Shotgun"
  "description" "This Item Will Give you a Shotgun"
  "category"    "3"
  "cost"        "1750"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "0"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es es_delayed 1 est_UnRestrictAll event_var(userid);es_delayed 0.1 es est_UnRestrict event_var(userid) weapon_m3; es es_delayed 1.5 est_give event_var(userid) weapon_m3"
  "cmdactivate" "0"
  }
Code:
   "12"
  {
  "name"         "Dualies/Elites"
  "description" "This Item Will Give Dualies"
  "category"    "3"
  "cost"        "1000"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "0"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es es_delayed 1 est_UnRestrictAll event_var(userid);es_delayed 0.1 es est_UnRestrict event_var(userid) weapon_elite; es es_delayed 1.5 est_give event_var(userid) weapon_elite"
  "cmdactivate" "0"
  }
Code:
  "13"
  {
  "name"         "MP5"
  "description" "This Item Will Give MP5 Navy"
  "category"    "3"
  "cost"        "1650"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "0"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es es_delayed 1 est_UnRestrictAll event_var(userid);es_delayed 0.1 es est_UnRestrict event_var(userid) weapon_mp5navy; es es_delayed 1.5 est_give event_var(userid) weapon_mp5navy"
  "cmdactivate" "0"
  }
Code:
  "14"
  {
  "name"         "P90"
  "description" "This Item Will Give a P90"
  "category"    "3"
  "cost"        "1650"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "0"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es es_delayed 1 est_UnRestrictAll event_var(userid);es_delayed 0.1 es est_UnRestrict event_var(userid) weapon_p90; es es_delayed 1.5 est_give event_var(userid) weapon_p90"
  "cmdactivate" "0"
  }
« Last Edit: August 09, 2008, 08:11:59 AM by SILENCE » Logged

Stinkyfax
I <3 WCS
Watchdogs
Level 7 Expert
*****
Offline Offline

Lithuania Lithuania

Posts: 1517



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #1 on: August 09, 2008, 09:14:56 AM »

the simplest thing u could make and u still done mistakes...
Logged

EvilGenuix
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 227




xF |:. Evil Genuix |A|
« Reply #2 on: August 09, 2008, 09:20:42 AM »

the simplest thing u could make and u still done mistakes...

I believe he means that you have put unrestrictall and then unrestrict_m4a1 whereas you dont need both, probably just unrestrict the weapon the person is buying not all of them?

Or was there something else too?

Evil Genuix
Logged
SILENCE
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 66





myServer 208.100.38.133:27015
(Warning: click connects through Steam)
« Reply #3 on: August 09, 2008, 09:26:11 AM »

It is pretty simple , and no i dont need all that . All i need is

Code:
"cmdbuy" "es es_delayed 1.5 est_give event_var(userid) weapon_m4a1"

Correct?
Logged

WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 1689


Big Berettonawak is watching you...



Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #4 on: August 09, 2008, 01:47:45 PM »

yes...
well... it depends...
if you want the player to be able to buy weapon (even if he has restricted weapons)... you have to unrestrict the weapon...
otherwise
Code:
es es_give event_var(userid) weapon_yourweapon
is correct
(you can add est_removeweapon event_var(userid) 1 for a primary weapon, or 2 for a secondary weapon. with this, if the player has another primary or secondary weapon, he will drop it...)
exemple :
Code:
   "6"
  {
  "name"        "M4A1"
  "description" "This Item Will Give a Maverick Carbine/M4A1"
  "category"    "3"
  "cost"        "3000"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "1"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es est_removeweapon event_var(userid) 1;es es_xdelayed 0.001 est_give event_var(userid) weapon_m4a1"
  "cmdactivate" "0"
  }
Logged


MY INTERNET:
Pre-Dominance
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 188



WWW
killweiser187
predom
« Reply #5 on: August 09, 2008, 02:49:57 PM »


Code:
es es_give event_var(userid) weapon_yourweapon

Tisk tisk, isnt it est_give Wink
Logged

Need helÞ?

Steam:killweiser187
Msn:[email protected]                       I don't
Xfire:predom                                        think that
Clan:?WwT? Wcs/Zm mod.                   They'll read
ClanWeb:wwt-clan.info                            the side
[Ҳ]™
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 101



WWW
coldasice322
xTRUTHx

myServer 69.12.25.45:27016
(Warning: click connects through Steam)
« Reply #6 on: August 09, 2008, 03:40:06 PM »

I'd love to add this to my shopmenu.  Does it work, or are there some issues?

Just want to make sure.  I see a lot of replies with doubtful conversations?

;x
Logged



Stinkyfax
I <3 WCS
Watchdogs
Level 7 Expert
*****
Offline Offline

Lithuania Lithuania

Posts: 1517



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #7 on: August 09, 2008, 08:15:31 PM »

do not double es es_
Logged

SILENCE
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 66





myServer 208.100.38.133:27015
(Warning: click connects through Steam)
« Reply #8 on: August 10, 2008, 08:18:29 AM »

Yes it does work, i have it on my zombie/wcs server under attack . If you add it to your server let me get the ip so i can check it out . Im always looking for wcs servers to play.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 03:28:44 AM
Yea ramon TC had made some coding mistakes that were crashing it at least that is how it appears, I delt with it.
Today at 12:02:21 AM
koshy server crash!! twice last 2 hours
March 28, 2009, 11:47:27 PM
Anybody want to help me out on a skill Im stuck on?
March 28, 2009, 09:35:48 PM
Hi... Not Much
March 28, 2009, 07:18:40 PM
Hi all, whats up?
March 28, 2009, 06:37:18 PM
March 28, 2009, 04:56:09 PM
I looked your topic, you sure you don't have 0 on the prices? Grin
Recent
by Doku
[Today at 04:51:09 AM]

by Doku
[Today at 04:39:38 AM]

[Today at 04:29:03 AM]

[Today at 03:50:48 AM]

[Today at 01:52:27 AM]

[Today at 01:27:52 AM]

[Today at 01:15:22 AM]

[Today at 01:14:54 AM]

[Today at 12:13:20 AM]

[March 28, 2009, 11:50:42 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.055 seconds with 26 queries.