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

[REQ] Assign flag A to STEAMID from MySQL database


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MatoBoost
Junior Member
Join Date: Apr 2016
Old 09-10-2017 , 07:22   [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #1

Hi, I need a plugin that is able to take STEAMID from MySQL database and assign flag A to it (basically simplest VIP plugin available).
Game is CS:GO.

No need for configuration files, no need to put database into databases.cfg, keep it simplest as possible.

I can put MySQL database info into plugin by myself, just please make it obvious where should I put what .

If needed I can pay for it, but I suppose it wont be expensive since it SHOULD be simple.

Last edited by MatoBoost; 09-10-2017 at 07:23.
MatoBoost is offline
nhnkl159
Senior Member
Join Date: Jul 2012
Location: Israel 3>
Old 09-10-2017 , 08:37   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=292183

check out this.
__________________
nhnkl159 is offline
Send a message via Skype™ to nhnkl159
MatoBoost
Junior Member
Join Date: Apr 2016
Old 09-10-2017 , 09:18   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #3

Quote:
Originally Posted by nhnkl159 View Post
I already found it, but there are tons of things that I dont need. We are going to have everything completely automated through MySQL and stuff, so all what I need is plugin that can take STEAMID from MySQL database.
MatoBoost is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 09-11-2017 , 12:16   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #4

Just use SELECT and WHERE when your where is the players steam id, however you stored it (AuthId_Steam2, AuthId_Steam3, etc.)
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 09-11-2017 , 13:23   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #5

Quote:
Originally Posted by MatoBoost View Post
No need for configuration files, no need to put database into databases.cfg, keep it simplest as possible.

I can put MySQL database info into plugin by myself, just please make it obvious where should I put what .
This is bad practice. We've seen plenty of db credentials hard-coded into plugin binaries that have been dumped publicly, and there's reasons as to why DB info is stored in databases.cfg.

Edit: If you tell me your table name, and steamid column name for your database I'll make you this plugin and post it for you here on the forums. All I'd ask is that you donate a few bucks to alliedmodders using the donation button at the top right

Last edited by headline; 09-11-2017 at 13:25.
headline is offline
MatoBoost
Junior Member
Join Date: Apr 2016
Old 09-12-2017 , 15:36   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #6

Quote:
Originally Posted by Headline View Post
This is bad practice. We've seen plenty of db credentials hard-coded into plugin binaries that have been dumped publicly, and there's reasons as to why DB info is stored in databases.cfg.

Edit: If you tell me your table name, and steamid column name for your database I'll make you this plugin and post it for you here on the forums. All I'd ask is that you donate a few bucks to alliedmodders using the donation button at the top right
I wanted it as simple as possible, so I thought it will be harder to make it read from databases.cfg, that's why wanted it "hardcoded".

Now the "problem" is that it's not me who wants a plugin like this but it's my friend, he is just not that good in English so that is why I am writing this. Thing is that it depends on him if he is willing to donate a few bucks to AlliedModders for a plugin, I asked ESKO about it and he wanted 15 euros lol. Anyway if he is willing to donate I will reply here, if not I will just close the thread.
MatoBoost is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 09-12-2017 , 20:08   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #7

Would you like someone to just write a generic one in which you can edit the table names?
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-13-2017 , 04:04   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #8

Why not just use the generic one that comes with SourceMod: SQL Admins
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 09-13-2017 , 08:17   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #9

Quote:
Originally Posted by DJ Tsunami View Post
Why not just use the generic one that comes with SourceMod: SQL Admins
^ This. Surely the easiest approach would be to use the default SQL_Admins plugin to store admins in a database like Tsunami said and then a small custom plugin that connects to the same database and adds anything you want to add automatically.
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
MatoBoost
Junior Member
Join Date: Apr 2016
Old 09-17-2017 , 11:38   Re: [REQ] Assign flag A to STEAMID from MySQL database
Reply With Quote #10

Quote:
Originally Posted by sim242 View Post
^ This. Surely the easiest approach would be to use the default SQL_Admins plugin to store admins in a database like Tsunami said and then a small custom plugin that connects to the same database and adds anything you want to add automatically.
This actually includes everything what we need and nothing more! I will just edit the name of database in the plugin (just for our databases.cfg so we will know exactly what is it) and we are good to go! Thanks for this information!
MatoBoost 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 10:10.


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