Raised This Month: $32 Target: $400
 8% 

[ANY] Store by Zephyrus [1.1 - 03.01.2016]


Post New Thread Reply   
 
Thread Tools Display Modes
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 12-30-2015 , 12:24   Re: [ANY] Store by Zephyrus
Reply With Quote #101

Quote:
Originally Posted by Arkarr View Post
Then there should be another way wich cn clearly say wich clients have wich points. You sure there is nothing related to steam ID ? (bas64/32, cookie, anything ?)

EDIT: Zephyrus use authid, can I have a exemple of authid ? It's in the table 'store_players'.
Derp, "auth" is Steam 3 ID. Proper format would be [U:1:8080174], for example (my account)

Someone else will have to provide zeph's auth for you (mazda?) I can't seem to get mysql to work with zeph's store, have to look in my configs.
__________________

Last edited by sneaK; 12-30-2015 at 12:25.
sneaK is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 12-30-2015 , 12:31   Re: [ANY] Store by Zephyrus
Reply With Quote #102

Quote:
Originally Posted by blackhawk74 View Post
Derp, "auth" is Steam 3 ID. Proper format would be [U:1:8080174], for example (my account)

Someone else will have to provide zeph's auth for you (mazda?) I can't seem to get mysql to work with zeph's store, have to look in my configs.
Alright... Ill wait then.
__________________
Want to check my plugins ?
Arkarr is offline
fard
AlliedModders Donor
Join Date: Dec 2015
Old 12-30-2015 , 13:44   Re: [ANY] Store by Zephyrus
Reply With Quote #103

How can I add a spray?

Is there any possibility to give additional credits to people with selected permissions?
fard is offline
e54385991
AlliedModders Donor
Join Date: Aug 2013
Old 12-30-2015 , 13:55   Re: [ANY] Store by Zephyrus
Reply With Quote #104

Quote:
Originally Posted by fard View Post
How can I add a spray?

Is there any possibility to give additional credits to people with selected permissions?
PHP Code:
             "spray name"   
                 
{
                    
"material"        "materials/spray/figure1.vmt"
                    "type"        "spray"
                    "price"        "100"
                

You can make other api plugin

include <store>

Store_SetClientCredits(client, Store_GetClientCredits(client)+10);
__________________
e54385991 is offline
Send a message via ICQ to e54385991
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 12-30-2015 , 14:02   Re: [ANY] Store by Zephyrus
Reply With Quote #105

Quote:
Originally Posted by Arkarr View Post
Alright... Ill wait then.
Got it working!

http://i.imgur.com/qVKDW8w.jpg

under table "store_players"

Looks like somehow all steam ids from r3d3rwolf's store will need to be converted to a standard steam id :/
__________________

Last edited by sneaK; 12-30-2015 at 14:03.
sneaK is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 12-30-2015 , 14:20   Re: [ANY] Store by Zephyrus
Reply With Quote #106

Quote:
Originally Posted by blackhawk74 View Post
Got it working!

http://i.imgur.com/qVKDW8w.jpg

under table "store_players"

Looks like somehow all steam ids from r3d3rwolf's store will need to be converted to a standard steam id :/
WO...Woah. I never saw that format. What the hell is that ? Ill check his code.

Edit: Also, can I have a steamID of the same person ? You know, just for check.
__________________
Want to check my plugins ?

Last edited by Arkarr; 12-30-2015 at 14:22.
Arkarr is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 12-30-2015 , 14:37   Re: [ANY] Store by Zephyrus
Reply With Quote #107

Quote:
Originally Posted by Arkarr View Post
WO...Woah. I never saw that format. What the hell is that ? Ill check his code.

Edit: Also, can I have a steamID of the same person ? You know, just for check.
In r3d3r's store: http://i.imgur.com/qnZFyk7.jpg
In zeph's store: http://i.imgur.com/9CIPDzD.jpg

On http://steamid.co you can see where the separate ID's came from: http://i.imgur.com/TQLuZIk.jpg
__________________
sneaK is offline
lay295
Senior Member
Join Date: Sep 2013
Old 12-30-2015 , 14:39   Re: [ANY] Store by Zephyrus
Reply With Quote #108

Quote:
Originally Posted by Arkarr View Post
WO...Woah. I never saw that format. What the hell is that ? Ill check his code.

Edit: Also, can I have a steamID of the same person ? You know, just for check.
The authid for the zeph store is just a normal Steam ID just stripped down.

So the authid for STEAM_X:Y:Z would be Y:Z and the auth id for STEAM_0:0:97348198 would be 0:97348198
__________________

lay295 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 12-30-2015 , 14:43   Re: [ANY] Store by Zephyrus
Reply With Quote #109

@blackhawk74
Thanks !

Quote:
Originally Posted by lay295 View Post
The authid for the zeph store is just a normal Steam ID just stripped down.

So the authid for STEAM_X:Y:Z would be Y:Z and the auth id for STEAM_0:0:97348198 would be 0:97348198
Yeah, nevermind, I just noticed that. I feel bad now.

EDIT:
I would be able to drop the script in a few minutes.
__________________
Want to check my plugins ?

Last edited by Arkarr; 12-30-2015 at 14:44.
Arkarr is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 12-30-2015 , 15:04   Re: [ANY] Store by Zephyrus
Reply With Quote #110

Quote:
Originally Posted by Arkarr View Post
Then there should be another way wich cn clearly say wich clients have wich points. You sure there is nothing related to steam ID ? (bas64/32, cookie, anything ?)

EDIT: Zephyrus use authid, can I have a exemple of authid ? It's in the table 'store_players'.
Php function to convert the auth to steamid:
PHP Code:

function toSteamID($id) {
    if (
is_numeric($id) && strlen($id) >= 16) {
        
$z bcdiv(bcsub($id'76561197960265728'), '2');
    } elseif (
is_numeric($id)) {
        
$z bcdiv($id'2'); // Actually new User ID format
    
} else {
        return 
$id// We have no idea what this is, so just return it.
    
}
    
$y bcmod($id'2');
    return 
'STEAM_0:' $y ':' floor($z);

Addicted. 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:24.


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