Raised This Month: $ Target: $400
 0% 

/votekick say command for players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
`666
AlliedModders Donor
Join Date: Jan 2006
Old 05-21-2008 , 13:19   Re: /votekick say command for players
Reply With Quote #10

want to change kick percent to 80, is this correct?

Code:
	else if(percent >= 80) {
		client_print(0,print_chat,"Votekick results: more than 80 percent voted yes. User banned for 10 minutes.")
		new authid[32]
		write_file("addons/amxmodx/logs/votekick.log","Vote succeeded, user kicked")
		new players[32], pnum, player
		get_players(players, pnum)
		
		for( new i=0; i<pnum; i++){
			player = players[i]
			get_user_authid(player,authid,31)
			if(equal(authid,votekickids[1])) {
				server_cmd("kick #%d ^"Votekicked by 80 percent or more, 10 minutes ban^"", get_user_userid(player))
				server_cmd("banid ^"10^" ^"%s^";wait;writeid", authid)
				suspendvotekick(authid,86400,0)
				return PLUGIN_HANDLED
			}
		}
		server_cmd("banid ^"10^" ^"%s^";wait;writeid", votekickids[1])
		set_task(10.0,"checkifuserison",0,votekickids[1],31)
		set_task(30.0,"checkifuserison",0,votekickids[1],31)
		set_task(60.0,"checkifuserison",0,votekickids[1],31)
		checkifuserison(votekickids[1])
		suspendvotekick(votekickids[1],86400,0)
		
	}
	else {
		write_file("addons/amxmodx/logs/votekick.log","Vote failed, no results")
		client_print(0,print_chat,"Votekick results: Between 40 and 80 procent. No actions taken")
	}
	return PLUGIN_CONTINUE
`666 is offline
 



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 08:05.


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