AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Store by Zephyrus [1.1 - 03.01.2016] (https://forums.alliedmods.net/showthread.php?t=276677)

sneaK 12-30-2015 12:24

Re: [ANY] Store by Zephyrus
 
Quote:

Originally Posted by Arkarr (Post 2378116)
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.

Arkarr 12-30-2015 12:31

Re: [ANY] Store by Zephyrus
 
Quote:

Originally Posted by blackhawk74 (Post 2378132)
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.

fard 12-30-2015 13:44

Re: [ANY] Store by Zephyrus
 
How can I add a spray?

Is there any possibility to give additional credits to people with selected permissions?

e54385991 12-30-2015 13:55

Re: [ANY] Store by Zephyrus
 
Quote:

Originally Posted by fard (Post 2378151)
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);

sneaK 12-30-2015 14:02

Re: [ANY] Store by Zephyrus
 
Quote:

Originally Posted by Arkarr (Post 2378133)
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 :/

Arkarr 12-30-2015 14:20

Re: [ANY] Store by Zephyrus
 
Quote:

Originally Posted by blackhawk74 (Post 2378156)
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.

sneaK 12-30-2015 14:37

Re: [ANY] Store by Zephyrus
 
Quote:

Originally Posted by Arkarr (Post 2378162)
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

lay295 12-30-2015 14:39

Re: [ANY] Store by Zephyrus
 
Quote:

Originally Posted by Arkarr (Post 2378162)
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

Arkarr 12-30-2015 14:43

Re: [ANY] Store by Zephyrus
 
@blackhawk74
Thanks !

Quote:

Originally Posted by lay295 (Post 2378166)
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.

Addicted. 12-30-2015 15:04

Re: [ANY] Store by Zephyrus
 
Quote:

Originally Posted by Arkarr (Post 2378116)
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);




All times are GMT -4. The time now is 13:26.

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