Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:alogin( playerid )
- {
- if(p_info[playerid][admin] )
- {
- new scm_string[108];
- format(scm_string, sizeof(scm_string ), "[A-%i]: %s[%d] вышел из панели администратора.", p_info[playerid][admin], p_info[playerid][name], playerid ) ;
- foreach(new i: admin_players) SendClientMessage(i, COLOR_YELLOW, scm_string ) ;
- Iter_Remove(admin_players, playerid ) ;
- DestroyPlayerAdmin3DText(playerid);
- p_info[playerid][admin] = 0 ;
- for(new i; i < 10 ; i ++ ) TextDrawHideForPlayer(playerid, ch_td[0][i] ), TextDrawHideForPlayer(playerid, ch_td[1][i] ) ;
- return 1 ;
- }
- new scm_string[128] ;
- format(scm_string, sizeof(scm_string ), "SELECT * FROM `users_admins` WHERE `u_a_id` = %i LIMIT 1", GetPlayerAccountID(playerid) ) ;
- mysql_tquery(sql_connection, scm_string, "alogin_step_one", "i", playerid ) ;
- return 1 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement