Raised This Month: $66 Target: $400
 16% 

Announce Ejections


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Natural Selection        Category:   General Purpose        Approver:   twistedeuphoria (82)
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-01-2005 , 13:50   Announce Ejections
Reply With Quote #1

Announce anyone who tries to eject the commander.

Note: Often, the commanders steamid will not be anywhere close to correct. This is a bug in NS, not the plugin.
Attached Files
File Type: sma Get Plugin or Get Source (commannouce.sma - 1606 views - 662 Bytes)
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
nhdriver4
Senior Member
Join Date: Nov 2005
Old 11-27-2005 , 01:41  
Reply With Quote #2

Great plugin. I'd like to have the announcement ONLY show to users with a specific flag in the user.ini file. Is this a simple tweek, or something that requires alot of work?
nhdriver4 is offline
Send a message via AIM to nhdriver4
nhdriver4
Senior Member
Join Date: Nov 2005
Old 11-29-2005 , 07:55  
Reply With Quote #3

Bump. Anyone?
nhdriver4 is offline
Send a message via AIM to nhdriver4
Casio
Member
Join Date: Jan 2005
Old 02-04-2006 , 22:16  
Reply With Quote #4

Sure, just replace this line:

Code:
client_print(0,print_chat,"%s (%s) wants to eject %s (%s)",name,authid,cname,cauthid)
With these lines:

Code:
	#define ACCESS_SHOW ADMIN_KICK
	new players[32], pcount
	get_players(players,pcount)

	for (new i=0; i<=pcount; i++)
	{
		//Display to all users with ACCESS_SHOW
		if (get_user_flags(players[i])&ACCESS_SHOW)
		{
			client_print(players[i],print_chat,"%s (%s) wants to eject %s (%s)",name,authid,cname,cauthid)
		}
	}
Casio is offline
Reply


Thread Tools
Display Modes

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 01:38.


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