Raised This Month: $ Target: $400
 0% 

authorized & desconnect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Z@C
Member
Join Date: May 2006
Location: Moscow, Russia
Old 05-19-2007 , 15:15   authorized & desconnect
Reply With Quote #1

authorized
Code:
new bool:admin = false
		new bool:hltv = false
		get_players(players, num)
		for(new i = 0; i < num; i++) {
			if (is_user_hltv(players[i])) {
				hltv = true
			}
			if (access(players[i], ADMIN_ACCESS)) {
				admin = true
			}
		}
		if (!access(id, ADMIN_ACCESS) && ((num == 0) || ((num == 1) && ((hltv == true) || (admin == false))))) {
			server_cmd("kick #%d %s", id, Reason)
			admin = false
			hltv = false
		}
		if (access(id, ADMIN_ACCESS) && (admin == false)) {
			set_task(15.0, "change_pass", id)
		}
disconnect
Code:
if (access(id, ADMIN_ACCESS) && (get_cvar_num("adm_for_cw") == 1)) {
		new bool:admin = false
		get_players(players, num)
		for(new i = 0; i < num; i++) {
			if (access(players[i], ADMIN_ACCESS)) {
				admin = true
			}
		}
		if (admin == false) {
			for(new i = 0; i < num; i++) {
				if (!is_user_hltv(players[i])) {
					server_cmd("kick #%d %s", players[i], Reason)
				}
			}
			set_cvar_string("sv_password", "")
		}
	}
HELP! not auth not disc didn't work
__________________
HLDS protocol 48 (CS 1.1.2.6 build 4883 on FreeBSD 9.0)
AMXX v1.8.1.3746 | METAMOD v1.19p32 | DProto 0.9.87
Web: Nginx 1.0.10 (build 1.1), Apache 2.2.21, PHP 5.3.8, MySQL 5.5.17
Z@C is offline
Send a message via ICQ to Z@C
 



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:35.


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