gg_buylevel

Area to post and download Custom Addons, as well as ask the author/users for help or support.

gg_buylevel

Postby Warren » Thu Jan 21, 2010 7:22 pm

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 1972 times
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Warren » Fri Jan 22, 2010 2:27 am

Updated: To work with GunGame5.1.353
I have changed the location of the translation file.
Requires GunGame5.1.353.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Re: gg_buylevel

Postby Warbucks » Fri Jan 22, 2010 3:42 pm

Excellent!

Thanks Warren!
Warbucks

Beta Tester
Beta Tester
 
Posts: 33
Joined: Wed Sep 10, 2008 5:11 pm
Steam Friends Name: Warbucks81
Xfire Name: Warbucks81

Postby Warren » Fri Jan 22, 2010 9:18 pm

Updated to fix a typo in the config (non-critical).
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Warren » Tue Jan 26, 2010 6:28 am

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.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Warren » Wed Mar 17, 2010 3:46 am

Updated: Version 0.3
Buying the last level is no longer allowed.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Warren » Thu Mar 18, 2010 8:05 pm

Updated: Version 0.4
Buying a level will no longer give you a gg_levelup cash reward.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Warren » Fri Mar 19, 2010 12:46 am

Updated: Version 0.5
There will no longer be playerlib errors for an attacker id '0' in player_death.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Warren » Tue Mar 23, 2010 5:31 am

Updated: Version 0.6
There will no longer be playerlib errors for attackers no longer in the server on gg_levelup.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Warren » Sun Mar 28, 2010 4:13 am

Updated: Version 0.7
Cash is now reset at gg_start.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Re: gg_buylevel

Postby tnarocks » Tue Mar 30, 2010 9:05 pm

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.
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby Warren » Thu Apr 01, 2010 11:28 am

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)
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Warren » Fri Apr 23, 2010 2:07 pm

Updated: Version 0.9
Now plays the levelup sound and adds "gg_buylevel" as the reason for the gg_levelup event.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Nik » Sat Jan 15, 2011 8:21 pm

Can you explain a bit more what this addon does?
Nik

Private
Private
 
Posts: 12
Joined: Tue Dec 21, 2010 1:05 pm

Postby satoon101 » Sun Jan 16, 2011 2:44 am

It allows you to "buy" a "level".

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby Nik » Sun Jan 16, 2011 4:13 pm

Yes, With what?
Nik

Private
Private
 
Posts: 12
Joined: Tue Dec 21, 2010 1:05 pm

Postby satoon101 » Sun Jan 16, 2011 4:49 pm

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
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby GirlieBalls » Tue Mar 08, 2011 5:51 pm

Is there anyway to be able to restrict this to only certain Steam IDs?
GirlieBalls

Private
Private
 
Posts: 26
Joined: Thu Jul 09, 2009 8:40 pm
Steam Friends Name: piromaniak10

Re: gg_buylevel

Postby daggerclan » Wed Jul 27, 2011 6:51 pm

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.
daggerclan

Corporal
Corporal
User avatar
 
Posts: 250
Joined: Mon Jul 13, 2009 7:54 pm
Location: United States

Postby XE_ManUp » Wed Jul 27, 2011 10:16 pm

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".
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Next


Return to Downloads

Who is online

Users browsing this forum: No registered users and 1 guest

cron