Raised This Month: $12 Target: $400
 3% 

Natural Selection Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Natural Selection        Category:   Admin Commands        Approver:   BAILOPAN (72)
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-21-2004 , 09:49   Natural Selection Commands
Reply With Quote #1

Verson 0.13 - Updated on July 18, 2004
Changes
This version fixes that readyroom crash, and eliminates the nsx_ prefix
Quote:
Originally Posted by Natural Selection Module
* Commands:
* amx_teamone or amx_marine - Force client to join team one
* amx_teamtwo or amx_alien - Force client to join team two
* amx_readyroom - Force client to go to the readyroom
* amx_pain or amx_randomall - Bind of Pain (Execute random on all)
* amx_uncomm - Remove a player from the comm chair
* amx_skulk - Make the player become a skulk
Attached Files
File Type: sma Get Plugin or Get Source (nsx-ns.sma - 3647 views - 7.7 KB)
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
[RED-Designs]
Senior Member
Join Date: Mar 2004
Location: .us
Old 03-21-2004 , 09:55   Re: Natural Selection Commands
Reply With Quote #2

Quote:
Originally Posted by devicenull
Quote:
Originally Posted by Natural Selection Module
* nsx_teamone - Force client to join team one
* nsx_teamtwo - Force client to join team two
* nsx_readyroom - Force client to go to the readyroom
* nsx_pain - Bind of Pain (Execute random on all)
* nsx_uncomm - Remove a player from the comm chair
* nsx_skulk - Make the player become a skulk
Very nice, I will use this when I set up my NSDS later on.

Only problem I have with it is using "nsx_", I dont really want to have to think twice about what comes before something like "skulk". Mainly cause I work on so many servers and plugins.

You could add a if to check if something like "sv_nsxamx", if 1 then use amx, if 0 use NSX. Mainly this would add flexiblity for people, which I happen to think makes any plugin even more likly to be loved

Edit: Here... if sv_nsxamx is not set to 1 it uses amx
Attached Files
File Type: sma Get Plugin or Get Source (nsx_ns.sma - 2185 views - 8.0 KB)
__________________
.My personal Blog
."If the country were open on its borders, new
forms would certainly immigrate, and this also
would seriously disturb the relations of some
of the former inhabitants." - Charles Darwin
[RED-Designs] is offline
Send a message via AIM to [RED-Designs] Send a message via MSN to [RED-Designs] Send a message via Yahoo to [RED-Designs]
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-21-2004 , 10:06  
Reply With Quote #3

Okay, Thanks.. I'll do that to the rest of the plugins too
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
[RED-Designs]
Senior Member
Join Date: Mar 2004
Location: .us
Old 03-21-2004 , 10:07  
Reply With Quote #4

Quote:
Originally Posted by devicenull
Yea, I can do that, it'll take about 5 minutes
I already did it for you
__________________
.My personal Blog
."If the country were open on its borders, new
forms would certainly immigrate, and this also
would seriously disturb the relations of some
of the former inhabitants." - Charles Darwin
[RED-Designs] is offline
Send a message via AIM to [RED-Designs] Send a message via MSN to [RED-Designs] Send a message via Yahoo to [RED-Designs]
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-21-2004 , 10:07  
Reply With Quote #5

Yea, Didnt see
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
[RED-Designs]
Senior Member
Join Date: Mar 2004
Location: .us
Old 03-21-2004 , 10:08  
Reply With Quote #6

Quote:
Originally Posted by devicenull
Yea, Didnt see
I guessed that or that you posted the reply right as I updated it with the plugin

Check you private messages, I PMed you


Do I get any credit for the cvar?
__________________
.My personal Blog
."If the country were open on its borders, new
forms would certainly immigrate, and this also
would seriously disturb the relations of some
of the former inhabitants." - Charles Darwin
[RED-Designs] is offline
Send a message via AIM to [RED-Designs] Send a message via MSN to [RED-Designs] Send a message via Yahoo to [RED-Designs]
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 03-29-2004 , 20:16  
Reply With Quote #7

nice
__________________
QwertyAccess is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-31-2004 , 19:12  
Reply With Quote #8

Quote:
Originally Posted by [RED-Designs
]
Quote:
Originally Posted by devicenull
Yea, Didnt see
I guessed that or that you posted the reply right as I updated it with the plugin

Check you private messages, I PMed you


Do I get any credit for the cvar?
Yea, see
About the PM, I added AIM id to my profile
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Vie
New Member
Join Date: Apr 2004
Location: South Africa
Old 04-15-2004 , 05:47  
Reply With Quote #9

How about adding the ability to change the following CVARs that are specific to NS:

mp_team1damagepercent <0-100>
mp_team2damagepercent <0-100>
mp_tournamentmode <0/1>

This would be useful, specifically for clan matches.

__________________
Vie is offline
zippy
Junior Member
Join Date: Jul 2004
Old 07-16-2004 , 16:39  
Reply With Quote #10

Code:
new username[64] //User name of player
new targetname[64] //Name of target
public plugin_init() {
	register_plugin("NsX-NS","0.1","devicenull")
	register_cvar("nsx_version","0.1")	
	register_cvar("nsx_ns","0.1")
	register_cvar("sv_nsxamx","1")
	if (get_cvar_float("sv_nsxamx")==1){
	register_concmd("nsx_teamone","forceteam_one",ACCESS_TEAM," <user> Switches user to team one (marines)")
	register_concmd("nsx_teamtwo","forceteam_two",ACCESS_TEAM," <user> Switches user to team two (aliens)")
	register_concmd("nsx_readyroom","forceteam_rr",ACCESS_TEAM," <user> Switches user to the readyroom")
	register_concmd("nsx_pain","forceteam_all",ACCESS_TEAM," Randoms everyone (bind of pain)")
	register_concmd("nsx_uncomm","remove_commander",ACCESS_COMM," <user> Removes user from the comm chair")
	register_concmd("nsx_skulk","make_skulk",ACCESS_COMM," <user> Makes the user a skulk")
	} else {
	register_concmd("amx_marine","forceteam_one",ACCESS_TEAM," <user> Switches user to team one (marines)")
	register_concmd("amx_alien","forceteam_two",ACCESS_TEAM," <user> Switches user to team two (aliens)")
	register_concmd("amx_readyroom","forceteam_rr",ACCESS_TEAM," <user> Switches user to the readyroom")
	register_concmd("amx_random","forceteam_all",ACCESS_TEAM," Randoms everyone")
	register_concmd("amx_uncomm","remove_commander",ACCESS_COMM," <user> Removes user from the comm chair")
	register_concmd("amx_skulk","make_skulk",ACCESS_COMM," <user> Makes the user a skulk")
	}
}
that make it so the commands are amx_random to force random, amx_marine and amx alien.

will these changes work like that?
zippy 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 08:48.


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