June 26, 2019, 11:09:44 PM

Author Topic: [ADDON] WCS Race Admin  (Read 6072 times)

Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 552
  • Country: england
  • Warcraft: GO Co-Lead Programmer
[ADDON] WCS Race Admin
« on: November 21, 2011, 10:22:36 PM »
WCS - Race Admin

This Mod is to be placed inside the "wcs/addons" Folder along with everything else. Add "changerace" to your "addons.cfg" and then configure your "wcsadmins_db" like I have done.

As some of you may not know how to Configure this; I will show below:

Code: [Select]
"WCSadmins"
{
"STEAM_0:1:5110973"
{
"wcsadmin" "1"
"wcsadmin_addadmins" "1"
"wcsadmin_removeadmins" "1"
"wcsadmin_editadmins" "1"
"wcsadmin_settings" "1"
"wcsadmin_givexp" "1"
"wcsadmin_givelevels" "1"
"wcsadmin_givecash" "1"
"wcsadmin_resetrace" "1"
"wcsadmin_resetplayer" "1"
"wcscadmin" "1"
"wcscadmin_give_self" "1"
"wcscadmin_give_players" "1"
"wcscadmin_give_cash" "1"
"wcscadmin_force_changerace" "1"
"wcscadmin_settings" "1"
"wcscadmin_players" "1"
"wcscadmin_admins" "1"
"wcscadmin_add_new_admin" "1"
"wcscadmin_update_admin" "1"
"wcscadmin_delete_admin" "1"
"wcsbankadmin" "1"
"vip" "1"
"vip_addhealth" "1"
"vip_addxp" "1"
"vip_addarmor" "1"
"vip_addcash" "1"
"wcsmatch_admin" "1"
"wcsrace_admin" "1"
}

}

Basically Just add "wcsrace_admin" "1" to the Bottom and type "raceadmin" into Chat whilst Ingame.

PS: I am not to sure if Kami's Version of "wcs_changerace" works anymore, because I couldn't seem to get it to anyway I have just defined the "player" then "player.changerace(race)" instead and it seems to work. [If you get what I am on about :)]

« Last Edit: November 22, 2011, 12:05:46 AM by Predz »

Lord Alucard

  • Guest
Re: [ADDON] WCS Race Admin
« Reply #1 on: November 21, 2011, 10:47:55 PM »
Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you

thats a great plugin it works Perfekt :)

Offline |MN|Jack Bauer

  • Level 5 Trained Intermediate
  • *****
  • Posts: 109
  • Country: 00
  • Murdernetworks.com
    • Murdernetworks
Re: [ADDON] WCS Race Admin
« Reply #2 on: November 21, 2011, 11:35:22 PM »
Awesome, great job Predz and thanks.

Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 552
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [ADDON] WCS Race Admin
« Reply #3 on: November 21, 2011, 11:37:07 PM »
No Problem, and please post some more of your Ideas in my Section :)

Post any bugs here and I will fix. :)

Offline stormleader

  • Level 7 Expert
  • *****
  • Posts: 264
  • Country: pt
  • mapper
Re: [ADDON] WCS Race Admin
« Reply #4 on: November 22, 2011, 01:18:43 AM »
Thanks,works fine  ;)
Some races created by me ON Youtube Channel - http://www.youtube.com/user/crazycioept/videos

Offline Deathkilla

  • Level 7 Expert
  • *****
  • Posts: 899
  • Country: us
    • Elite-Gamers Community
Re: [ADDON] WCS Race Admin
« Reply #5 on: November 22, 2011, 05:43:44 PM »
so is this another way of adding people to private races?

instead of going in the race.ini, you can do it here.


i mean the mod is also for taking people off races if you wish, but could it also be used as that?
Visit Elite Gamers Today!
www.Elite-Gamers.org




Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 552
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [ADDON] WCS Race Admin
« Reply #6 on: November 22, 2011, 05:48:29 PM »
Yes you could do that but after they changerace, if they arent meant to have access then they wont be able to change back. Really it is just a way to moderate who is what race. Also this allows you to give people who have been good to access certain races for a certain period of time and it allows you to test races without having to give yourself levels.

Offline Deathkilla

  • Level 7 Expert
  • *****
  • Posts: 899
  • Country: us
    • Elite-Gamers Community
Re: [ADDON] WCS Race Admin
« Reply #7 on: November 22, 2011, 06:05:23 PM »
i c

that could be usefull =)

then again i like being a high level haha jk
Visit Elite Gamers Today!
www.Elite-Gamers.org




Offline FlameAbove

  • Level 0 Beginner
  • Posts: 4
  • <3 WCS :)
Re: [ADDON] WCS Race Admin
« Reply #8 on: November 23, 2011, 10:51:35 AM »
I Put it and Everything and it shows me the menu but when i try to change the race nothing happens any Idea anyone :o

Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 552
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [ADDON] WCS Race Admin
« Reply #9 on: November 23, 2011, 05:04:18 PM »
Any Error Logs?

Offline FlameAbove

  • Level 0 Beginner
  • Posts: 4
  • <3 WCS :)
Re: [ADDON] WCS Race Admin
« Reply #10 on: November 23, 2011, 06:06:32 PM »
This it is i think...

Traceback (most recent call last):
  File "C:\srcds\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py"
, line 1890, in _call_func
    f(u,c,p)
  File "C:\srcds\orangebox\cstrike\addons\eventscripts\wcs\addons\changerace\cha
ngerace.py", line 35, in RaceHandler
    player = wcs.wcs.getPlayer(wcs_userid)
  File "C:\srcds\orangebox\cstrike\addons\eventscripts\wcs\wcs.py", line 411, in
 getPlayer
    userid = int(userid)
TypeError: int() argument must be a string or a number, not 'NoneType'

Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 552
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [ADDON] WCS Race Admin
« Reply #11 on: November 23, 2011, 10:29:27 PM »
That is a problem in your actual WCS Files not part of my addon. Just make a backup of all your important files and reinstall the newest version of WCS.

Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 552
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [ADDON] WCS Race Admin
« Reply #12 on: December 14, 2011, 02:50:19 PM »
No Sorry that would be me talking "shit!" :)

Just get rid of that line.

Offline coty9090

  • Level 1 Trained Beginner
  • *
  • Posts: 34
Re: [ADDON] WCS Race Admin
« Reply #13 on: March 04, 2012, 07:06:50 PM »
Does this still work? it isn't for me.

Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 552
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [ADDON] WCS Race Admin
« Reply #14 on: March 26, 2012, 11:45:53 PM »
Should still work because nothing being used has any issues.