Jigsaw
Level 4 Intermediate
  
Offline
 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
|
 |
« Reply #1 on: June 08, 2009, 09:43:17 PM » |
|
yes but no.  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.... 
|
|
|
|
|
Logged
|
|
|
|
Jigsaw
Level 4 Intermediate
  
Offline
 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
|
 |
« 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
 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
|
 |
« Reply #5 on: June 08, 2009, 10:08:41 PM » |
|
"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
|
|
|
|
|
|
|
maze
|
 |
« Reply #7 on: June 08, 2009, 10:19:34 PM » |
|
oh man.^^ it can be so easy. ja, wer lesen kann... // "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.  set the "duration" to "0"  ? or what is this: "doesn't work with player_buy"  ?
|
|
|
|
« Last Edit: June 08, 2009, 10:30:10 PM by maze »
|
Logged
|
|
|
|
Jigsaw
Level 4 Intermediate
  
Offline
 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 ... 
|
|
|
|
|
Logged
|
|
|
|
|
Maxxi
|
 |
« 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
 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
|
 |
« 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 
|
|
|
|
|
Logged
|
|
|
|
Jigsaw
Level 4 Intermediate
  
Offline
 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
|
 |
« 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 
|
|
|
|
|
Logged
|
|
|
|
|
maze
|
 |
« Reply #14 on: June 10, 2009, 08:38:46 AM » |
|
"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
|
|
|
|
|