Help - Search - Members - Calendar
Full Version: Ns.amx Plugin
Unknown Worlds Forums > Natural Selection > Natural Selection Discussion > General Server Discussion
SuicideDog
Ok.. Tcquest78 has written a plugin that does some cool stuff.. you need amx to use this plugin..

plugin features:

tsay
anonymous tsay
welcome message
timed motd messages
vote_slay (name)


tsay syntax:

in the console type
tsay (message) 'this will message to all with senders name
tsayy (message) 'this will send a message to all anonymously

in the say:

say:@ (message) ' same as tsay in console
say:@@ (message) 'same as tsayy in console

Welcome and timed motd syntax:

amx_welcome_hudmsg: CVar that holds welcome message.
You can use %hostname% / %name% to put in the server
name or the client name. Welcome is only displayed to
the client, not everyone.

amx_motd < message >: Command to add a new MOTD to the
cycle. Only text allowed, because we can't set color
or XY coordinates. More than one are allowed and are
cycled through

amx_motdtime: CVar that holds the amount in time in
between MOTD's.


amx_welcome_hudmsg defaults to Welcome %name% to
%hostname%

ex. Welcome Tcquest78 to D&S Server

To change this stuff:
Everything should go into admin.cfg.
So, if you wanted to cycle through "hello" and "hello
again!" every 5 minutes, add the following:
amx_motd hello
amx_motd hello again
amx_motdtime 5

To make the MOTD message "Enjoy your stay at
%hostname%, %name%", add the following:
amx_welcome_hudmsg "Enjoy your stay at %hostname%,
%name%"

Notice: amx_motd does not require quotes, while amx_welcome_hudmsg does!

Vote_slay syntax:

say:vote_slay (name)

Note: this can only be ran every three mins. This can be changed with

amx_voteslay_delay (seconds)

The vote_slay command only works on your teammates and is only voted on by your teammates. This is good for getting rid of those extra gorges and bad CC's.


ok.. there is some other stuff written in the plugin .. but the above is the only thing that works so far. I will be placing other plugins that are NS compatible in this post soon. Let me know if you have any problems. In the works is a statsme kinda thing .. that will tell you your attacker and who you attacked on your death.

I'll keep you posted
SuicideDog
forgot to add the plugin (Doyee)


EDIT: please look at new post for all the attachments
Suicide_Run
Suicidedog wassup man

wink.gif

you know who i am biggrin.gif
SuicideDog
Suicide_run!!! WASSUP!!
Tcquest78
Suicide_Run, do you still play GW or have you been converted to NS? biggrin.gif
SpiffyJr
Must say great plugin BUT hud msg still doesn't show if cl_autohelp is set to 0. Perhaps there's a way to force all clients to go to 1 and then switch it back to 0 after display. Or perhaps a simple text in the center of the screen much like that of Adminmod's admin_welcome_msg... just a thought.
Suicide_Run
hey tc i play it all biggrin.gif

gw been a bit down lately and even the alpha testers or coding and working more than playing
so the crowds been a bit low

NS is my fall back mod biggrin.gif

edit: WWWWAAAASSSUUUUPPPPP!!!!
SuicideDog
the messages do work.. we turn on the hints .. message them .. then turn them off.. the only ones that won't like it are the noobs.. but really how long did it take you to turn off your hints.. or rather want them turned off? 10mins.? or 15mins?

Here's the new updated one that includes priv msgs

the syntax is the same the only difference is now when you send a priv msg
you type it a little different

@ (message) 'sends a msg to everyone
@(name) (message) 'send a msg to only that person

!!notice the space after the first command!!

the same goes for all the other @@, tsay and tsayy

SuicideDog

BTW: I THINK ALL THE COMMANDS SHOULD WORK BY USING THE ID # ALSO.. let me know if they don't


EDIT:


!!!!! Wait.. not quite working yet on the priv msg's.. will update when fixed!!!!!!
Suicide_Run
what you could do is get the users autohelp variable (or what ever it is)

if its on leave it

if its off change it display the messages then change it back

wow.gif

just an idea

MonsieurEvil
(Fixing incorrect topic date due to server issue)
voogru
QUOTE (Suicide_Run @ Dec 17 2002, 01:13 PM)
what you could do is get the users autohelp variable (or what ever it is)

if its on leave it

if its off change it display the messages then change it back

wow.gif

just an idea

Its impossible to get a clients value for a cvar.
Suicide_Run
:/

then just be a mean admin and overwrite it
SuicideDog
New plugin from Tcquest78..

AFK.SMA

It checks to see if they have moved every X minutes, then will put up a message asking them to move withing the next 15 seconds. If they don't move,
they are kicked with a message.

you an change the time for how often it check by using:

amx_afkdelay (seconds)

BTW admins are immune to this.

EDIT:

ok.. there was a problem with that plugin.. find my new post for all the lastest plugins
SuicideDog
updated the afk.sma post
Smithboy
D&S I've seen your server. It's pretty neat.

You made sure the commander is also immune to being kicked from not moving? tounge.gif biggrin.gif
Tcquest78
Actually, the commanders origin is given to the plugin as the center of the area he currently has viewed in the command console. So, as long as he isn't looking at the same place for a very long time, he shouldn't get the message/get kicked.
SuicideDog
We have a hole slew of new plugins being tested.. and just about done.. once it's all completed we post them here.
Just to give you an idea this is a list of most of the amx plugins

Afk: checks for afker's.. cvars for how often .. and how many ppl on the server before it starts checking

ns_team: amx_alien/amx_marine(Both server and client cmds). This SHOULD work with 1.03, it'll reconnect
them and store their stuff into an array. Right now, it's not too complicated, and if you try to change
more than 33 people in between map changes and they all don't reconnect, the plugin won't work and wierd
stuff will happen. It's safe to use as long as you don't switch too many people though, and I'll fix this
problem in a bit.

ns_say: This contains all of the 'chat' commands, without the tsays. Like, amx_say, amx_chat, and
amx_psay. I put this in a different plugin because I don't think many people want this one.

ns_tsay: This contains all the tsay-using plugins, like MOTD, WelcomeMsg, and the tsays. I removed
logging to log files, but it still logs normal tsays to consoles (It does NOT log the MOTD and WelcomeMsg
tsays to consoles). Private tsays. I also added '@#<id>' for using id instead of the name. So,
you can 'say @[@][#id][name] < message >', or tsay[y] [@][#id][name] < message >.

ns_vote: This has the vote_slay command. I also added a console vote_slay command, so people that get
confused won't be left out. I'm planning on also adding vote_alien and vote_marine for when there are
no admins around.

motd: Clanmod/Statme like motd that you can use cvars in.

modified rockthevote plugin: allow clients to call it with cvars to specifiy how often and percent needed to pass.

Most of these work flawlessly just a couple of wrinkles left in one or two..


Planned plugins include:

modifed rockthevote plugin with popup menu
/listplayers plugin
on death modified statsme like message showing attackers and attackees.

if you have any suggestions or questions please let us know.

Tcquest is the master coder.. and I'm using my *cough* awesome *cough* server to beta test and
tweak all the great amx NS plugins he is coding!
cracker_jackmac
yes, i'm bumping ANCIENT post for all those AMX ppl out there.


Or for those, like me....converted from AM.


here is the file that dog can't seem to keep posted.
Tcquest78
QUOTE (cracker jackmac @ Feb 13 2003, 10:05 PM)
Or for those, like me....converted from AM.

I must say, woot! a convert!

How do you like it where the greener grass is? biggrin.gif

What got you to switch anyway?
cracker_jackmac
got tired of AM being incompatible with everything really...and the OH that it takes.
Grimm_Spector
All those says and stuff, do you have the amx for that one?

Can you tell me how to remove the vote_slay or make it only accessible to a particular level of admin? I'm worried about pub abuse of it....I'll use the gorge kick plug for aliens, and let the coded commkick work for rines....
Tweedle
This plugin gives me the following problem:

L 02/16/2003 - 18:49:04: FATAL ERROR (shutting down): SZ_GetSpace: Tried to write to an uninitialized sizebuf_t: ???

Use with caution!
Grimm_Spector
QUOTE (cracker jackmac @ Feb 14 2003, 05:38 AM)
got tired of AM being incompatible with everything really...and the OH that it takes.

it wouldn't be incompatible, if people would port code ****....


EDIT: ...? apparently "more" was filtered by the obscenity filter....eh??
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.