Raised This Month: $ Target: $400
 0% 

Confused


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fireball_Nation
Member
Join Date: Oct 2012
Old 05-22-2013 , 14:30   Confused
Reply With Quote #1

"custom_weapons_v3"
{
"*"
{
"312" // HEAVY
{
"quality" "10"
"admin-flags" "a"

"1" "107 ; 30"
"2" "275 ; 1"
"3" "112 ; 100"
}


is the start of my tf2items.weapons.txt file, I actually have a lot more items listed (they don't have the admin-flags bit added). Unsure how I can make some stuff admin only, I've tried as above, with different items in the file but they all are still for everyone. I'm thinking its maybe because of the "*" (which I think means everyone?) not sure how to get around it though, I don't want to change that to a steam ID but to an admin flag, can anybody help me and show me how to structure it for some attributes admin-only and others for everyone?

Much appreciated thanks!!
Fireball_Nation is offline
Fireball_Nation
Member
Join Date: Oct 2012
Old 05-24-2013 , 08:10   Re: Confused
Reply With Quote #2

tf2items.weapons.txt


It's a long file
Fireball_Nation is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-24-2013 , 09:58   Re: Confused
Reply With Quote #3

There are no flag restrictions anywhere in that file.
__________________
asherkin is offline
Fireball_Nation
Member
Join Date: Oct 2012
Old 05-24-2013 , 10:59   Re: Confused
Reply With Quote #4

Oh, I thought by unedited file you meant before I tried to add restrictions.

Here it is (this still gives the attributes to everybody on the items I have put the admin flags to).


tf2items.weapons.txt
Fireball_Nation is offline
CoolJosh3k
AlliedModders Donor
Join Date: Mar 2010
Old 05-29-2013 , 16:39   Re: Confused
Reply With Quote #5

SteamIds, flags and whatever must go before the "*" wildcard.
CoolJosh3k is offline
Fireball_Nation
Member
Join Date: Oct 2012
Old 06-02-2013 , 17:50   Re: Confused
Reply With Quote #6

I still can't get it to work. Please can you show me an example? (I don't want to use steamID's)
Fireball_Nation is offline
Rads
AlliedModders Donor
Join Date: Feb 2008
Location: Achievement what
Old 06-02-2013 , 20:26   Re: Confused
Reply With Quote #7

"custom_weapons_v3"
{
"*"
{
"312" // HEAVY
{
"quality" "10"
"admin-flags" "a"

"1" "107 ; 30"
"2" "275 ; 1"
"3" "112 ; 100"
}
__________________
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
4UHost.UK - Global Hosting.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rads is offline
Fireball_Nation
Member
Join Date: Oct 2012
Old 06-03-2013 , 09:46   Re: Confused
Reply With Quote #8

Quote:
Originally Posted by Rads View Post
"custom_weapons_v3"
{
"*"
{
"312" // HEAVY
{
"quality" "10"
"admin-flags" "a"

"1" "107 ; 30"
"2" "275 ; 1"
"3" "112 ; 100"
}

I did this before, and it seems to still allow everybody to have those attributes :/
Fireball_Nation is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode