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

[ANY] Store by Zephyrus [1.1 - 03.01.2016]


Post New Thread Reply   
 
Thread Tools Display Modes
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-31-2015 , 09:22   Re: [ANY] Store by Zephyrus
Reply With Quote #131

Quote:
Originally Posted by Arkarr View Post
A bit of mySQL for some who need it :

Move ALL the players value (steamID, id, name, credits, etc...) into the Zephyrus database :

Code:
SET @DATABASE_NAME_REDERWOLF = 'store'; -- DO NOT FORGET TO EDIT !
SET @DATABASE_NAME_ZEPHYRUS = 'store2'; -- DO NOT FORGET TO EDIT !

SET @q = CONCAT('INSERT INTO ', @DATABASE_NAME_ZEPHYRUS, '.store_players select * from ', @DATABASE_NAME_REDERWOLF, '.store_users');
select @q;
PREPARE stmt FROM @q;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
UPDATE the number of credits from each players in Zephyrus database to have the exacte same value as in the r3dw3r3w0lf's database :

Code:
SET @DATABASE_NAME_REDERWOLF = 'store'; -- DO NOT FORGET TO EDIT !
SET @DATABASE_NAME_ZEPHYRUS = 'store2'; -- DO NOT FORGET TO EDIT !

DELIMITER $$
DROP FUNCTION IF EXISTS `toSteamID`$$
CREATE FUNCTION toSteamID(id TEXT)
  RETURNS TEXT
  LANGUAGE SQL
BEGIN
  RETURN CONCAT("STEAM_0:",id%2,":",floor(id/2));
END;
$$
DELIMITER ;

SET @q = CONCAT('UPDATE ', @DATABASE_NAME_ZEPHYRUS, '.store_players, ', @DATABASE_NAME_REDERWOLF, '.store_users',
				' SET ', @DATABASE_NAME_ZEPHYRUS, '.store_players.credits=', @DATABASE_NAME_REDERWOLF,'.store_users.credits',
				' WHERE toSteamID(', @DATABASE_NAME_REDERWOLF, '.store_users.auth)', '=CONCAT("STEAM_0:",', @DATABASE_NAME_ZEPHYRUS, '.store_players.authid)');
select @q;
PREPARE stmt FROM @q;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
I'd like to point out to people that this will only work with Store 1.2 and under. We're changing things around in the database structures with the rest of the API.

Last edited by Drixevel; 12-31-2015 at 09:22.
Drixevel is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 12-31-2015 , 10:39   Re: [ANY] Store by Zephyrus
Reply With Quote #132

Quote:
Originally Posted by r3dw3r3w0lf View Post
I'd like to point out to people that this will only work with Store 1.2 and under. We're changing things around in the database structures with the rest of the API.
Great ! Good news ! But, hum... Can I ask you a release date ? I think Arrow is finished now, isn't it ?
__________________
Want to check my plugins ?
Arkarr is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-31-2015 , 11:40   Re: [ANY] Store by Zephyrus
Reply With Quote #133

Quote:
Originally Posted by Arkarr View Post
Great ! Good news ! But, hum... Can I ask you a release date ? I think Arrow is finished now, isn't it ?
Rather not hijack this thread, visit the store section for details. I'm just making that statement so people know those SQLs will need updates soon.
Drixevel is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 12-31-2015 , 11:43   Re: [ANY] Store by Zephyrus
Reply With Quote #134

Quote:
Originally Posted by r3dw3r3w0lf View Post
Rather not hijack this thread, visit the store section for details. I'm just making that statement so people know those SQLs will need updates soon.
Yeah, you right. Thanks.
__________________
Want to check my plugins ?
Arkarr is offline
PGUkilljoy
Member
Join Date: Jan 2014
Location: USA
Old 12-31-2015 , 21:45   Re: [ANY] Store by Zephyrus
Reply With Quote #135

Everything works perfectly in CSGO tested and have on all servers.

One thing to request - maybe it is done already.

When one buys a weapon skin (custom) it replaces that skin on Every gun- Even ones you pick up.

Is there a way to make it work towards only the gun you want to have that skin on?
__________________
PGUkilljoy is offline
bebe9b
Veteran Member
Join Date: May 2009
Location: Romania
Old 01-01-2016 , 04:13   Re: [ANY] Store by Zephyrus
Reply With Quote #136

Pls add store:
"Custom model skin"
{
"model" "models/models/batman/batman.mdl" (exemple model skin)
"entity" "model_skin"
"price" "20"
"type" "CustomModel"
"slot" "4"
}

Thx,
__________________
respecta si vei fi respectat
bebe9b is offline
e54385991
AlliedModders Donor
Join Date: Aug 2013
Old 01-01-2016 , 04:40   Re: [ANY] Store by Zephyrus
Reply With Quote #137

Quote:
Originally Posted by bebe9b View Post
Pls add store:
"Custom model skin"
{
"model" "models/models/batman/batman.mdl" (exemple model skin)
"entity" "model_skin"
"price" "20"
"type" "CustomModel"
"slot" "4"
}

Thx,

Type "CustomModel" only suitable for weapon models!



PHP Code:
        "Player skins" //
        
{
                        
"Terrorists" 
                
{
                        
"batman"
                        
{
                                
"model"             "models/player/batman/batman.mdl"
                                "arms"                ""
                                "team"                "2" 
// define team 2=T 3=CT
                                
"type"                "playerskin" 
                                "price"                "1500"
                        
}
                }
        } 
__________________

Last edited by e54385991; 01-01-2016 at 04:42.
e54385991 is offline
Send a message via ICQ to e54385991
bebe9b
Veteran Member
Join Date: May 2009
Location: Romania
Old 01-01-2016 , 04:50   Re: [ANY] Store by Zephyrus
Reply With Quote #138

Works server zombie escape csgo ??
__________________
respecta si vei fi respectat
bebe9b is offline
fard
AlliedModders Donor
Join Date: Dec 2015
Old 01-01-2016 , 11:19   Re: [ANY] Store by Zephyrus
Reply With Quote #139

Quote:
Originally Posted by e54385991 View Post
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);
Do i need any special plugin for sprays?
fard is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 01-01-2016 , 16:23   Re: [ANY] Store by Zephyrus
Reply With Quote #140

Quote:
Originally Posted by fard View Post
Do i need any special plugin for sprays?
It's included in the plugin
Addicted. 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 14:24.


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