Please help with item restrictions

Want to talk about war3ft or make suggestions? Post them here

Moderator: Forum Moderator

Post Reply
tomasanas
Peon
Posts: 9
Joined: Sat Oct 06, 2007 8:02 am

Please help with item restrictions

Post by tomasanas » Tue Oct 16, 2007 9:53 am

I want to restrict idiots of using rings in 35hp_2 maps what do i ned to do to restrict them like gloves ? plz help fast

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Tue Oct 16, 2007 12:35 pm

Right now, can't. So, you would need to alter the code to do it. Or, you can just have your admins ban their asses when they do it
Image

No support via PM or Email

tomasanas
Peon
Posts: 9
Joined: Sat Oct 06, 2007 8:02 am

Post by tomasanas » Wed Oct 17, 2007 2:17 am

um i like the first option :D can you tell me how to im not go at war3ft coding

tomasanas
Peon
Posts: 9
Joined: Sat Oct 06, 2007 8:02 am

Post by tomasanas » Fri Oct 19, 2007 12:32 pm

i tried creating item_ring.cfg but it doesnt work

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Fri Oct 19, 2007 12:50 pm

Duh it wouldn't work. Tell me what version you are running and I will THINK about doing it for you
Image

No support via PM or Email

tomasanas
Peon
Posts: 9
Joined: Sat Oct 06, 2007 8:02 am

Post by tomasanas » Mon Oct 22, 2007 9:16 am

the newest v 3.0 RC 8

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Mon Oct 22, 2007 1:16 pm

Okay, I have completed it. Easier than I thought it was going to be. Here are the changed files only. The disable file will be item_rings.cfg. Format it the same as item_gloves.cfg
Attachments
constants.inl
Added new variable bool:g_bRingsDisabled
(24.77 KiB) Downloaded 474 times
items.inl
Added line that mimicked the gloves but for the rings
(22.28 KiB) Downloaded 508 times
war3ft.inl
Told it to load the item_rings.cfg file and check for disabled
(51.26 KiB) Downloaded 532 times
Image

No support via PM or Email

tomasanas
Peon
Posts: 9
Joined: Sat Oct 06, 2007 8:02 am

Post by tomasanas » Fri Nov 23, 2007 9:39 am

thx

Post Reply