Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. CMD:alogin( playerid )
  2. {
  3. if(p_info[playerid][admin] )
  4. {
  5. new scm_string[108];
  6. format(scm_string, sizeof(scm_string ), "[A-%i]: %s[%d] вышел из панели администратора.", p_info[playerid][admin], p_info[playerid][name], playerid ) ;
  7. foreach(new i: admin_players) SendClientMessage(i, COLOR_YELLOW, scm_string ) ;
  8. Iter_Remove(admin_players, playerid ) ;
  9.  
  10. DestroyPlayerAdmin3DText(playerid);
  11.  
  12. p_info[playerid][admin] = 0 ;
  13. for(new i; i < 10 ; i ++ ) TextDrawHideForPlayer(playerid, ch_td[0][i] ), TextDrawHideForPlayer(playerid, ch_td[1][i] ) ;
  14. return 1 ;
  15. }
  16.  
  17. new scm_string[128] ;
  18. format(scm_string, sizeof(scm_string ), "SELECT * FROM `users_admins` WHERE `u_a_id` = %i LIMIT 1", GetPlayerAccountID(playerid) ) ;
  19. mysql_tquery(sql_connection, scm_string, "alogin_step_one", "i", playerid ) ;
  20. return 1 ;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement