Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 10:37:55 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Player level info on connect  (Read 87 times)
iceman
Full Member
***
Posts: 160



View Profile
« on: June 16, 2012, 12:42:36 PM »

When a player connects have it print there total levels.

{GREEN}War3Source {Default} Iceman connected (level)
Logged
-El Diablo
Full Member
***
Posts: 175


View Profile
« Reply #1 on: June 17, 2012, 05:59:03 AM »

Okay iceman:

http://ownageclan.com/svn/war3source/customstuff/branches/diablo/War3Source_Engine_PlayerClass.sp

ShowPlayerTotalLevelsOnConnect=CreateConVar("war3_show_total_levels_on_connect","0","0 is disabled, 1 is to all, 2 is to player only [default 0]");

You should only need this file for what you requested.

Here is the code you will need for your war3source.cfg:

war3_show_total_levels_on_connect 1


I'm assuming you want to show to all clients the player's total levels on connect.  Otherwise if you only want to show to the player whom is connecting, then change the number to 2.  Or you can disable it using 0  (or any other number for that matter)

To Do: add an option to not show admin total levels.. Tongue


Logged
iceman
Full Member
***
Posts: 160



View Profile
« Reply #2 on: June 17, 2012, 06:09:36 AM »

thanks, i will give it a try today  Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!