Raised This Month: $66 Target: $400

Announce Ejections

Post New Thread Reply   
Thread Tools Display Modes
Plugin Info:     Modification:   Natural Selection        Category:   General Purpose        Approver:   twistedeuphoria (82)
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
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
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
Join Date: Jan 2005
Old 02-04-2006 , 22:16  
Reply With Quote #4

Sure, just replace this line:

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

	new players[32], 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

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