Page 1 of 1
gg_buylevel
Posted:
Sun Nov 09, 2008 10:13 pm
by Predator
gg_buylevelDescription:Allows players to buy a level in game using the
!buylevel (by default) command.
Installation:- Extract this file to your server
- Restart your server or reload GunGame
Re: gg_buylevel
Posted:
Sun Nov 16, 2008 12:19 am
by Tomelyr
[PlayerJoinMsg]
en="type '$var1' in chat to purchase a level for '$var2'!"
de="schreibe '$var1' in den chat um ein Level zu kaufen fuer '$var2'!
[InWarmup]
en="Cannot buy level during Warmup!"
de="Du kannst keine Level kaufen solange das Warmup noch laueft!"
[GameOver]
en="Cannot buy level after the game is over."
de="Das Spiel ist aus. Du kannst keine Levels mehr kaufen!"
[NoSkipLevel]
en="You cannot skip your current Level!"
de="Du kannst dieses Level nicht ueberspringen!"
[NotEnoughCash]
en="You need at least #green$cost#default to buy a level!"
de="Du benoetigts mindestens #green$cost#default um ein Level zu kaufen!"
German Translation / Deutsche Übersetzung
Posted:
Sun Nov 30, 2008 10:53 am
by Nismo
A new possible bug.
Sometimes, buying a level won't actually give you the next gun. Occasionally it will. We've tested this, by setting the cost to buy a level to 2000. Buy level once, get the same gun. Buy it again, get the same gun. Buy ANOTHER, and boom you get the new one. No other levels (players) changed, we locked the server down to test this.
Possible bug? Thoughts?
Feedback appreciated. Thanks!
Posted:
Mon Dec 01, 2008 5:55 pm
by PitBull
I don't know if there is a Triple-Level feature in GG5 like the one of GG4, but that could be a possible reason.
~PitBull
Re:
Posted:
Mon Dec 01, 2008 7:06 pm
by XE_ManUp
PitBull wrote:I don't know if there is a Triple-Level feature in GG5 like the one of GG4, but that could be a possible reason.
~PitBull
It is called gg_multi_level now. It is configurable to the number of levels you would like to have.
Re: gg_buylevel
Posted:
Thu Jan 01, 2009 8:22 pm
by Knight
I believe this is broken now as on R584, it worked fine in R581. Buylevel command says it's registered in HLSW, but does not actually do anything, for example, if you type !buylevel in chat, it just spits out the !buylevel that you typed back into chat instead of hiding the text when typed.
Posted:
Wed Apr 01, 2009 8:21 pm
by fetus
the download link is dead. can someone fix it please?
Posted:
Wed Apr 01, 2009 11:12 pm
by Don
All our download links are dead. It is being worked on.
Re: gg_buylevel
Posted:
Sat Jun 27, 2009 7:57 pm
by Warbucks
Ever since upgrading eventscripts to the latest beta(2.0.250i Beta 2) I have been experiencing crashes on one of my servers that uses this addon. I removed the addon and have been crash free for the past couple days. This is from the error_log:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Exception caught: 24/06/2009 @ [11:17:52] [Occurences: 5]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Traceback (most recent call last):
File "C:\gcmservers\ggturbo\cstrike\addons\eventscripts\es.py", line 204, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "C:\gcmservers\ggturbo\cstrike\addons\eventscripts\gungame\custom_addons\gg_buylevel\gg_buylevel.py", line 54, in player_death
pPlayer = playerlib.getPlayer(ev['attacker'])
File "C:\gcmservers\ggturbo\cstrike\addons\eventscripts\_libs\python\playerlib.py", line 1277, in getPlayer
raise e
UseridError: '0' is an invalid userid
Posted:
Tue Jun 30, 2009 4:02 am
by satoon101
Well, that error would have nothing to do with upgrading ES and it shouldn't be the cause of any crashes. It's an easy fix though, you just need to add in a check the player didn't get killed by 'world' damage
prior to getting the playerlib.Player instance. I'm sure Predator can have a fix uploaded in no time, but if you wish for a quick fix, just change:
def player_death(ev):
# Get the player object
pPlayer = playerlib.getPlayer(ev['attacker'])
# Skip if in warmup
if gungamelib.getGlobal('isWarmup'):
es.dbgmsg(0, 'GGWarmup is currently active')
return
# Skip if killed by world
if ev['attacker'] == '0':
es.dbgmsg(0, 'Player killed by World')
return
to:
def player_death(ev):
# Skip if killed by world
if ev['attacker'] == '0':
es.dbgmsg(0, 'Player killed by World')
return
# Get the player object
pPlayer = playerlib.getPlayer(ev['attacker'])
# Skip if in warmup
if gungamelib.getGlobal('isWarmup'):
es.dbgmsg(0, 'GGWarmup is currently active')
return
Satoon
Re: gg_buylevel
Posted:
Wed Jul 01, 2009 8:11 pm
by Warbucks
That's the only error I have in my error_log regarding this addon. As soon as I enable the addon, It starts crashing. If I disable it, I get no crashes.
I hope someone can look into this. Thanks for the quick fix for the original error though.