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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 624 times
items.inl
Added line that mimicked the gloves but for the rings
(22.28 KiB) Downloaded 654 times
war3ft.inl
Told it to load the item_rings.cfg file and check for disabled
(51.26 KiB) Downloaded 682 times
Image

No support via PM or Email
tomasanas
Peon
Posts: 9
Joined: Sat Oct 06, 2007 8:02 am

Post by tomasanas »

thx
Post Reply