AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Feature Request Add admin by sql (https://forums.alliedmods.net/showthread.php?t=286842)

CamerDisco 08-26-2016 05:48

Add admin by sql
 
Hi, I made small site, who add admins, they give us steamid, name and mail.
I'm sending it to sourcebans database
PHP Code:

INSERT INTO `sb_admins`(`aid`, `user`, `authid`, `password`, `gid`, `email`, `validate`, `extraflags`, `immunity`, `srv_group`, `srv_flags`, `srv_password`, `lastvisit`) VALUES (

and
INSERT INTO `sb_admins_servers_groups` (`admin_id`, `group_id`, `srv_group_id`, `server_id`) 

It adds ok, but admin on the server isn't working.
If I click on sourcebans admin panel edit details and without any change I click only save changes, it added correctly admin to my server.
What must I add to my script?
(yes I'm reloading admins on my server) (sm_rehash)


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

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