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

How to create/add a admin in MySQL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizzkidon
Senior Member
Join Date: Jan 2017
Old 03-14-2017 , 17:16   How to create/add a admin in MySQL
Reply With Quote #1

Hi. How i can add/create an admin in mysql?
I have admin_sql.amxx activated, etc.

Photo (mysql)
http://i.imgur.com/DOhdUtO.png

Anyone can learn me? Thx!
wizzkidon is offline
nea
Junior Member
Join Date: Jan 2017
Old 03-14-2017 , 21:32   Re: How to create/add a admin in MySQL
Reply With Quote #2

u don't need to add them manual in ur database

use amx_addadmin and he will add it for u
Command Parameters :
Quote:
amx_addadmin <playername|auth> <accessflags> [password] [authtype]

AuthType : "name/nick" "ip" "steam/steamid/auth"
but if u want to edit it from database :
make a table with name 'admins' or other value of cvar 'amx_sql_table'
with this columes name by order :
Quote:
auth password access flags
Image :


Notice : make sure to change amx_sql_db to your database name in sql.cfg file [in /cstrike/addons/amxmodx/configs folder]
Good Luck

Last edited by nea; 03-14-2017 at 21:52.
nea is offline
wizzkidon
Senior Member
Join Date: Jan 2017
Old 03-15-2017 , 03:34   Re: How to create/add a admin in MySQL
Reply With Quote #3

Quote:
Originally Posted by nea View Post
make a table with name 'admins' or other value of cvar 'amx_sql_table
I don't understand. I think i have this table with name admins, look at photo:
http://i.imgur.com/YMohgM7.png

But now i don't know how i need to add/edit/change. I'm = 0 with mySQL.
wizzkidon is offline
nea
Junior Member
Join Date: Jan 2017
Old 03-15-2017 , 09:03   Re: How to create/add a admin in MySQL
Reply With Quote #4

Quote:
I don't understand. I think i have this table with name admins, look at photo:
http://i.imgur.com/YMohgM7.png

But now i don't know how i need to add/edit/change. I'm = 0 with mySQL.
i know that u have it , i want to know if server really connected with mysql?

if yes , so just use amx_addadmin from server console,or make a new query in table admins and add ur self for example :
Code:
auth      password      access      flags
Nea       UrPassword   abcdef..    a
if no , add ur info of mysql in sql.cfg
and also make sure :
Code:
amx_sql_db "gpkr_3633"

Last edited by nea; 03-15-2017 at 09:07.
nea is offline
wizzkidon
Senior Member
Join Date: Jan 2017
Old 03-15-2017 , 09:38   Re: How to create/add a admin in MySQL
Reply With Quote #5

@nea, is 100% connected to mysql.
I can't add amx_addmin in my server console, because i can't write in this. (my host su*ks, i know)
How i can make this table? This is my problem because i don't know. Have you skype or steam? Give me please.

Last edited by wizzkidon; 03-15-2017 at 09:40.
wizzkidon is offline
nea
Junior Member
Join Date: Jan 2017
Old 03-15-2017 , 15:21   Re: How to create/add a admin in MySQL
Reply With Quote #6

Anyway plugin will create the table if not exist ..
so here's photo how to add admin manual :
Quote:
1. Click On 'Insert'
http://i.imgur.com/jrLJkGM.jpg
2. Write Value for Each Column then click on 'Go'
http://i.imgur.com/X9Bj3ie.jpg
3. Change Map And Admins List Will Be Updated.
About My Contact Steam : akami20

Last edited by nea; 03-15-2017 at 15:22.
nea is offline
ORiginalDevils
Junior Member
Join Date: Jul 2015
Old 04-25-2017 , 15:37   Re: How to create/add a admin in MySQL
Reply With Quote #7

I can get some .php files from which you can pack admine
ORiginalDevils 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 21:45.


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