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

War3:Source
October 24, 2012, 09:15:54 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: private races system  (Read 679 times)
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« on: November 29, 2010, 02:59:05 PM »

how do you want the private race authorization system to be done? thru cvars? thru console commands in a .cfg file? Custom addon?
« Last Edit: December 25, 2010, 11:47:26 AM by Ownz » Logged

DarkEnergy
Shark_267
Newbie
*
Posts: 41


Admin Arsenall.net


View Profile WWW
« Reply #1 on: November 29, 2010, 04:46:03 PM »

how do you want the private race authorization system to be done? thru cvars? thru console commands in a .cfg file? Custom addon?
Using cvars and changing them in .cfg.
For example, headcrab_private_users, human_private_users and others.
To define in .cfg:
war3 headcrab_private_users "STEAM_0:0:12345678, STEAM_0:1:12345678"//allow only steam1, steam2

war3 human_private_users ""//allow to all
Thanks! Wink
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #2 on: November 29, 2010, 05:08:29 PM »

that only allows so many people to use it
Logged

DarkEnergy
[Oddity]TeacherCreature
Sr. Member
****
Posts: 463


View Profile
« Reply #3 on: November 29, 2010, 10:53:51 PM »

Why woudl u change it ?
Flags works awesome in my opinion I wouldnt want any other system
Logged

alex0310
Full Member
***
Posts: 170



View Profile
« Reply #4 on: December 18, 2010, 01:48:39 AM »

I agree with Shark_267. habit is second nature)))
Logged
Revan
Sr. Member
****
Posts: 275



View Profile
« Reply #5 on: December 30, 2010, 03:42:36 AM »

Mhh my opinion is little different, i used this because the hiddenflag caused changerace problems..(I want to make it hidden to stop people asking the admins)
my example:
Step 1 : Add the private race users to the admin database with AdminFlag T (Custom Adminflag 6)
Step 2 : Open War3Source_Engine_MenuChangerace.sp and search for this line : Format(rdisp,sizeof(rdisp),"%s%T",extra,"{racename} [L {amount}] ({amount}:{amount})",GetTrans(),rname,War3_GetLevel(client,x),yourteam,otherteam); then add this :

if(!StrEqual(rname, "PRIVATE RACE FULL NAME"))
{
 ###CODE###
}

Example :
Code:
if(!StrEqual(rname, "Lich"))
{
Format(rdisp,sizeof(rdisp),"%s%T",extra,"{racename} [L {amount}] ({amount}:{amount})",GetTrans(),rname,War3_GetLevel(client,x),yourteam,otherteam);
new minlevel=W3GetRaceMinLevelRequired(x);
if(minlevel<0) minlevel=0;
if(minlevel)
{
Format(rdisp,sizeof(rdisp),"%s %T",rdisp,"reqlvl {amount}",GetTrans(),minlevel);
}
AddMenuItem(crMenu,rbuf,rdisp,(minlevel<=W3GetTotalLevels(client)||W3IsDeveloper(client))?ITEMDRAW_DEFAULT:ITEMDRAW_DISABLED);
}
Step 3 : add a changerace console command or something like that to the race you want to make private
Example :
Code:
RegAdminCmd("war3_private_lich", Command_HiddenLich, ADMFLAG_CUSTOM6, "Private Race");

public Action:Command_HiddenLich(client, args)
{
War3_SetRace(client,thisRaceID);
}
(BTW. It appears in raceinfo, war3stats etc. but is not displayed in changerace)

very complex but it should work great

Mfg
Revan
Logged

#war3source
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #6 on: December 30, 2010, 11:42:48 AM »

^^ a hard coded solution is not accepted
Logged

DarkEnergy
[Oddity]TeacherCreature
Sr. Member
****
Posts: 463


View Profile
« Reply #7 on: January 01, 2011, 11:15:57 PM »

After much thought a new solution is needed many server owners liek to sell private races or offer races to individuals and there simply is not enough admin flags to allow this.

I think a cvars in config to make a race private with a long stinrg of allowable SteamIDs should be fine
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!