Page 1 of 2

gg_buylevel

PostPosted: Thu Jan 21, 2010 7:22 pm
by Warren
gg_buylevel

Description:
Registers a say command used to buy GunGame levels.

Installation:
  • Extract this file to your server
  • Restart your server or reload GunGame
  • Edit the newly appeared ../cfg/gungame51/custom_addon_configs/gg_buylevel.cfg
  • Restart your server, reload GunGame, or run rcon gg_buylevel 0 then rcon gg_buylevel 1
gg_buylevel.zip
(5.1 KiB) Downloaded 1706 times

PostPosted: Fri Jan 22, 2010 2:27 am
by Warren
Updated: To work with GunGame5.1.353
I have changed the location of the translation file.
Requires GunGame5.1.353.

Re: gg_buylevel

PostPosted: Fri Jan 22, 2010 3:42 pm
by Warbucks
Excellent!

Thanks Warren!

PostPosted: Fri Jan 22, 2010 9:18 pm
by Warren
Updated to fix a typo in the config (non-critical).

PostPosted: Tue Jan 26, 2010 6:28 am
by Warren
Updated: Requires GunGame5.1.359
gg_levelup is now fired instead of simply changing their level. This allows things such as gg_multi_level's bonus to fire for a buylevel levelup.
Requires GunGame5.1.359.

PostPosted: Wed Mar 17, 2010 3:46 am
by Warren
Updated: Version 0.3
Buying the last level is no longer allowed.

PostPosted: Thu Mar 18, 2010 8:05 pm
by Warren
Updated: Version 0.4
Buying a level will no longer give you a gg_levelup cash reward.

PostPosted: Fri Mar 19, 2010 12:46 am
by Warren
Updated: Version 0.5
There will no longer be playerlib errors for an attacker id '0' in player_death.

PostPosted: Tue Mar 23, 2010 5:31 am
by Warren
Updated: Version 0.6
There will no longer be playerlib errors for attackers no longer in the server on gg_levelup.

PostPosted: Sun Mar 28, 2010 4:13 am
by Warren
Updated: Version 0.7
Cash is now reset at gg_start.

Re: gg_buylevel

PostPosted: Tue Mar 30, 2010 9:05 pm
by tnarocks
At the start of the round if you buy a level it takes your cash and dont give you a new weapon. During the round is fine. Just the start dont work right sometimes.

PostPosted: Thu Apr 01, 2010 11:28 am
by Warren
Updated: Version 0.8
gg_buylevel no longer attempts to level up a player if they have preventlevel enabled. (such as players with gg_spawn_protect_can_level_up 0 in affect)

PostPosted: Fri Apr 23, 2010 2:07 pm
by Warren
Updated: Version 0.9
Now plays the levelup sound and adds "gg_buylevel" as the reason for the gg_levelup event.

PostPosted: Sat Jan 15, 2011 8:21 pm
by Nik
Can you explain a bit more what this addon does?

PostPosted: Sun Jan 16, 2011 2:44 am
by satoon101
It allows you to "buy" a "level".

Satoon

PostPosted: Sun Jan 16, 2011 4:13 pm
by Nik
Yes, With what?

PostPosted: Sun Jan 16, 2011 4:49 pm
by satoon101
Unless you are using some sort of No Cash script, you should be earning cash in the game. Once you have enough money, you can buy a level. You can set the amount of cash needed to buy a level in the cfg file.

Satoon

PostPosted: Tue Mar 08, 2011 5:51 pm
by GirlieBalls
Is there anyway to be able to restrict this to only certain Steam IDs?

Re: gg_buylevel

PostPosted: Wed Jul 27, 2011 6:51 pm
by daggerclan
After installing gungame5_1_540 I'm getting this message when trying to buy a level:
"Another addon is preventing you from leveling up at this time."


I also have "gg_spawn_protect_can_level_up 1" in the spawn config.

PostPosted: Wed Jul 27, 2011 10:16 pm
by XE_ManUp
Yeah - I re-coded a good amount of stuff, and the way that "preventlevel" is handled has changed.

In this particular case, line 103 of the script needs to be updated from
   # If preventlevel is enabled for the player, stop here
    if ggPlayer.preventlevel:

to
   # If preventlevel is enabled for the player, stop here
    if ggPlayer.preventlevel():


Note: simply adding "()" after "preventlevel".