Raised This Month: $12 Target: $400
 3% 

Zephyrus store, Items per SteamID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ssandiss
Junior Member
Join Date: Jan 2018
Location: Sweden
Old 11-07-2018 , 03:17   Zephyrus store, Items per SteamID
Reply With Quote #1

Hey!

Like the title says, I would like a addon to Zephyrus store which allows me to edit the items.txt to add specific items to a specific steamID.

It would be great if anyone could help me out!
ssandiss is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-07-2018 , 11:16   Re: Zephyrus store, Items per SteamID
Reply With Quote #2

It already works similar to this.

You can add flag to category of items or to a specific item in items.txt.
So for example to ALL Pets or to just one specific pet, like this:
"flag" "o"

Then what you can do is give this flag only to Steam_ID that you want to have access to this item.
You can find all flags here: https://wiki.alliedmods.net/Adding_Admins_(SourceMod) (under levels category)


If this does not solve your issue (because there simply isn't enough custom flags available to cover all steam_id) then yea we will need to configure and recompile the store script.

Last edited by HvG Community; 11-07-2018 at 11:17.
HvG Community is offline
ssandiss
Junior Member
Join Date: Jan 2018
Location: Sweden
Old 11-08-2018 , 03:13   Re: Zephyrus store, Items per SteamID
Reply With Quote #3

Hey,

Thanks for the reply.

Although I am aware that certain items can be restricted by flags. But I have about 50.000 players on my community and I'd like to give just a couple of them a certain model (Not a specific group like admins etc.)

Therefor I would like it to work with steamid somehow.

So answer to your question is, there's not enough custom flags and I need steamID
ssandiss is offline
ssandiss
Junior Member
Join Date: Jan 2018
Location: Sweden
Old 11-21-2018 , 05:09   Re: Zephyrus store, Items per SteamID
Reply With Quote #4

Still looking for help with this.

Also if possible to make some sort of purchase per TIME RESTRICTION. So you can use the store to buy something that you get for a limited time
ssandiss is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 11-21-2018 , 09:37   Re: Zephyrus store, Items per SteamID
Reply With Quote #5

Quote:
Originally Posted by ssandiss View Post
...
Also if possible to make some sort of purchase per TIME RESTRICTION. So you can use the store to buy something that you get for a limited time
Already part of Zephyrus' store. Just configure in items.txt
Code:
	"Item"
	{
		"type"      "Type"
		"Plans"
		{
			"1 day"
			{
				"price" "100"
				"time"  "86400" //time in seconds
			}
			"2 day"
			{
				"price" "200"
				"time"  "172800"
			}
		}
	}
__________________
coding & free software

Last edited by shanapu; 11-21-2018 at 09:39.
shanapu is offline
ssandiss
Junior Member
Join Date: Jan 2018
Location: Sweden
Old 12-12-2018 , 07:13   Re: Zephyrus store, Items per SteamID
Reply With Quote #6

I could still use help for the SteamID specific items!
ssandiss is offline
LionKing
Member
Join Date: Jan 2017
Location: Belgium
Old 05-26-2019 , 15:23   Re: Zephyrus store, Items per SteamID
Reply With Quote #7

Quote:
Originally Posted by ssandiss View Post
I could still use help for the SteamID specific items!
Same here!
LionKing is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 05-27-2019 , 09:14   Re: Zephyrus store, Items per SteamID
Reply With Quote #8

You can do this like, create a new category and add buyable 0 for each item( dont need to restrictn it to any group ) then add the item to the player through the database, so that player can use that item, btw other players can’t buy it

Last edited by Nexd; 05-27-2019 at 09:16.
Nexd is offline
LionKing
Member
Join Date: Jan 2017
Location: Belgium
Old 05-27-2019 , 14:36   Re: Zephyrus store, Items per SteamID
Reply With Quote #9

Quote:
Originally Posted by Nexd View Post
You can do this like, create a new category and add buyable 0 for each item( dont need to restrictn it to any group ) then add the item to the player through the database, so that player can use that item, btw other players can’t buy it
That would be possible if I had the knowledge of MySQL or even how to assign the item to the player.
LionKing is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 05-27-2019 , 15:55   Re: Zephyrus store, Items per SteamID
Reply With Quote #10

You can check the store player ID in the store_players table, then you can add the items in the store_items table, but you have to add unique_id to the items in the file aswell.
Nexd is offline
Reply


Thread Tools
Display Modes

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 05:59.


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