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-10-03 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
October 03, 2009, 12:43:47 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Please obey the rules, to achieve a pleasent order in our community.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2   Go Down
  Print  
Author Topic: Restrict respawn  (Read 181 times)
Jigsaw
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 86





myServer 193.84.20.5:27080
(Warning: click connects through Steam)
« on: June 08, 2009, 07:37:19 PM »

Is there a way to restrict the respawn in shopmenu so that u can buy it only 3 times in one round?
Logged

maze
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 232





myServer 80.252.104.91:26015
(Warning: click connects through Steam)
« Reply #1 on: June 08, 2009, 09:43:17 PM »

yes but no. Shocked

in es_WCSshop_db.txt

you will find this in the items
  "maxamount"   "2"

means: you can buy it 2 times than you have to die before you can buy it again.

mhhh... but if you buy respawn...you died.... Huh
Logged

Jigsaw
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 86





myServer 193.84.20.5:27080
(Warning: click connects through Steam)
« Reply #2 on: June 08, 2009, 09:47:51 PM »

This is the problem ... and with one addon they can buy respawn more than 10 times and so i would set the maxamount for one round and not only for one life ...
Logged

maze
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 232





myServer 80.252.104.91:26015
(Warning: click connects through Steam)
« Reply #3 on: June 08, 2009, 09:55:07 PM »

respawn costs 3000 $ you can buy 5 times/round.
and than they have no weappons.
if they can buy it more often than you should lower the start money, or you should disable betting while alive, or you should disable
the money save thing which is in wcs, so that cant bet, go to spec, join team and have the same amount like before betting.
Logged

Jigsaw
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 86





myServer 193.84.20.5:27080
(Warning: click connects through Steam)
« Reply #4 on: June 08, 2009, 10:02:06 PM »

The addon i have is called "No_cashlimit" ^^ so u can have more than 16000$ ... and the problem is it save your money and set it at the end of the round to 0$ .. if u then respawn at the next round u get your money back ...

but in wcs u can respawn also in a round and so u get more and more money so either i set the maxamount for respawn to 2 for a round or i fix the problem that is within the addon -.-
Logged

maze
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 232





myServer 80.252.104.91:26015
(Warning: click connects through Steam)
« Reply #5 on: June 08, 2009, 10:08:41 PM »

Code:
  "respawn"
  {
  "name"        "wcs_lng_s_respawn"
  "description" "wcs_lng_s_respawnd"
  "category"    "3"
  "cost"        "3000"
  "level"       "0"
  "dab"         "2"
  "duration"    "1"
  "maxamount"   "1"
  "itemconfig"  "player_death"
  "cmdbuy"      "if (event_var(es_userdead) = 1) then es_xdelayed 2 est_spawn event_var(userid);if (event_var(es_userdead) = 1) then es_xkeysetvalue WCSuserdata event_var(userid) respawn 0;if (event_var(es_userdead) = 0) then es_xkeysetvalue WCSuserdata event_var(userid) respawn 1"
  "cmdactivate" "es_keygetvalue wcs_respawn WCSuserdata event_var(userid) respawn;if (server_var(wcs_respawn) = 1) then es_xkeysetvalue WCSuserdata event_var(userid) respawn 0;if (server_var(wcs_respawn) = 1) then es_xdelayed 5 est_spawn event_var(userid);wcs_getlanguage wcs_lng wcs_lng_s_respawna;if (server_var(wcs_respawn) = 1) then es_xdelayed 4.5 es_xtell event_var(userid) #multi server_var(wcs_lng)"
  }

i am not shur cause i am not a coder,
but cant you modify this with a round check or something?
« Last Edit: June 08, 2009, 10:25:06 PM by maze » Logged

Jigsaw
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 86





myServer 193.84.20.5:27080
(Warning: click connects through Steam)
« Reply #6 on: June 08, 2009, 10:14:15 PM »

I think u have to change something in the "es_WCSshop.txt" but dont know what ...  Undecided
Logged

maze
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 232





myServer 80.252.104.91:26015
(Warning: click connects through Steam)
« Reply #7 on: June 08, 2009, 10:19:34 PM »

oh man.^^
it can be so easy.

ja, wer lesen kann...

Code:
//    "duration"    "number"   // only this round (0) or until death (1), doesn't work with player_buy
//    "maxamount"   "0"        // defines how many of the item can be purchased each round (good to control the health items)

i think now you have your solution. Tongue


set the  "duration"  to  "0"                                 Huh?  or what is this: "doesn't work with player_buy" Huh?
« Last Edit: June 08, 2009, 10:30:10 PM by maze » Logged

Jigsaw
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 86





myServer 193.84.20.5:27080
(Warning: click connects through Steam)
« Reply #8 on: June 09, 2009, 02:00:02 PM »

Hm no it doesnt work ... u can buy unlimited respawns regardless of which duration or maxamount ...

So there are 2 options ... either i remove the addon or i try to fix the addon ...

 Undecided
Logged

Maxxi
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 1452



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #9 on: June 09, 2009, 02:06:42 PM »

you can make a check to see if the player already bought his respawn and if he did dont execute the respawn and refund the money
Logged

Jigsaw
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 86





myServer 193.84.20.5:27080
(Warning: click connects through Steam)
« Reply #10 on: June 09, 2009, 02:11:40 PM »

Nice idea but i'm not good enough in coding to do such things ^^
Logged

Maxxi
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 1452



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #11 on: June 09, 2009, 02:39:12 PM »

Nice idea but i'm not good enough in coding to do such things ^^
learn Smiley
Logged

Jigsaw
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 86





myServer 193.84.20.5:27080
(Warning: click connects through Steam)
« Reply #12 on: June 09, 2009, 02:45:42 PM »

okay ..^^ then i only have to disable the addon for a long time xD
Logged

Maxxi
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 1452



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #13 on: June 09, 2009, 02:56:50 PM »

okay ..^^ then i only have to disable the addon for a long time xD
learn keyvalues its all you need Smiley
Logged

maze
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 232





myServer 80.252.104.91:26015
(Warning: click connects through Steam)
« Reply #14 on: June 10, 2009, 08:38:46 AM »

Code:
  "cmdbuy"      "es_keygetvalue wcs_checkevents WCSuserdata server_var(wcs_userid);if (event_var(es_userdead) = 1) then es_xdelayed 2 est_spawn event_var(userid);if (event_var(es_userdead) = 1) then es_xkeysetvalue WCSuserdata event_var(userid) respawn 0;if (event_var(es_userdead) = 0) then es_xkeysetvalue WCSuserdata event_var(userid) respawn 1"
  "cmdactivate" "es_keygetvalue wcs_respawn WCSuserdata event_var(userid) respawn;if (server_var(wcs_respawn) = 1) then es_xkeysetvalue WCSuserdata event_var(userid) respawn 0;if (server_var(wcs_respawn) = 1) then es_xdelayed 5 est_spawn event_var(userid);wcs_getlanguage wcs_lng wcs_lng_s_respawna;if (server_var(wcs_respawn) = 1) then es_xdelayed 4.5 es_xtell event_var(userid) #multi server_var(wcs_lng)"


does this make sense?
i added "es_keygetvalue wcs_checkevents WCSuserdata server_var(wcs_userid);"
Logged

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

Last 7 Shouts:
Today at 08:57:40 AM
stop spamming...
Today at 07:57:23 AM
October 02, 2009, 08:45:24 PM
October 02, 2009, 08:24:30 PM
Zawmbee Huh
Steam please ?
October 02, 2009, 07:51:43 PM
i agree with zawmbee..it's annoin
October 02, 2009, 07:10:13 PM
Recent
[Today at 11:48:00 AM]

[Today at 11:41:03 AM]

[Today at 11:24:40 AM]

by Narb
[Today at 06:34:50 AM]

[October 02, 2009, 10:25:17 PM]

[October 02, 2009, 09:19:29 PM]

by Skan
[October 02, 2009, 07:09:17 PM]

[October 02, 2009, 06:23:04 PM]

[October 02, 2009, 05:49:33 PM]

[October 02, 2009, 05:19: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.113 seconds with 24 queries.