AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Be Right Back (https://forums.alliedmods.net/showthread.php?t=2033)

Cheap_Suit 05-18-2004 09:31

Be Right Back
 
3 Attachment(s)
.: Description :.
A simple plugin that allow's a player to notify other players that he will be AFK (Away From Keyboard) but will be back.
It also has an automatic feature that sends AFKs to spectator instead of kicking, killing, or slaying the player.

.: Client Commands :.
say /brb - sets client to "be right back" mode

.: Cvars :.
amx_brbtime (D: 40) - Max afk time before the plugin sents them to spec
amx_warntime (D: 10) - Time before it starts to warn afk clients

.: Changelog :.
  • Version 1.0 - Initial Release
  • Version 1.1 to 2.4 - Lost changelog
  • Version 2.5 - Fixed minor bugs
  • Version 2.6 - Fixed bot issue

Girthesniper 05-25-2004 16:20

Just change ur name to AFK or soemthing. Dont be so lazy :).

Cheap_Suit 05-26-2004 02:09

what do you mean?
if u mean [AFK] (name) then, great idea ill add it in the next release.

BTW this is my first plugin . :roll:

Dark_Clutz 05-27-2004 01:16

plugin seems to have a problem it kills everyone and moves all but admins to the spec team. i'll take a look at it see if i can't smooth it out.

Kamikaze 05-28-2004 14:04

Happened for me, this plugin is broken currently, don't use it until it's fixed.

Cheap_Suit 06-03-2004 09:53

Sorry, for taking so long. I hope this fixed the problem. :oops:

Cheap_Suit 06-09-2004 23:26

crap Im getting the promblem its not fix yet.
can anybody help me fix it?

Girthesniper 06-10-2004 00:00

kinda gay?

Nick 06-10-2004 00:21

1 Attachment(s)
Im newbie but this is my shot at fixing it. :p
Im sure its the worst way of doing it...

Parakeet 06-12-2004 13:21

try this :
Code:

#include <amxmodx>
#include <amxmisc>

public plugin_init() {
        register_plugin("BRB","1.1","Cheap_Suit")
        register_clcmd("say","say_event")
        return PLUGIN_CONTINUE
}
 
new phrase[1][] = { "/brb" }

public say_event(id)
{
    new sid[2]
    sid[0] = id
    num_to_str(id,sid,2)
    new said[192]
    read_args(said,191)
    new name[32]
    get_user_name(id,name,31)

    new i

    for( i = 0; i < 1; i++ )
    {

    if(containi(said,phrase[i]) != -1)
  {
        if (is_user_alive(id)) user_kill(id)
        client_cmd(0,"spk ^"barney/ba_later.wav^"")
        client_print(0,print_chat,"*DEAD* %s : I'll be back...",name)
        client_cmd(id,"jointeam 6") 
  }
 }
}


MeTaL69 06-30-2004 13:27

So whats going on with this one, is it fixed or is it still bugged. :?:

Id rather add a non bugged plugin to my server, thxs though :wink:

Cheap_Suit 07-01-2004 00:34

its fix :)

MeTaL69 07-01-2004 09:53

Cool, cheers Cheap_suit.
So used the sma code from PARAKEET & it worked great. Just wonderd if this code is what every1 is using?

Also, how hard is it to replace /brb to /afk?? :?:

Cheap_Suit 07-01-2004 18:20

no all you have to change is
new phrase[1][] = { "/brb" } to
new phrase[1][] = { "/afk" }

mercury 07-02-2004 04:08

hah... doesn't transfer to spectator in cs1.5...

MeTaL69 07-02-2004 15:42

Cool thxs again man? So i guess to change the sound, u just edit that Barney wav in the sma!! Where r those sounds stored?

Cheap_Suit 07-03-2004 11:52

put the brb.wav. It must be in cstrike/sound/misc

now this one u can edit the sound, just change the brb.wav

Dygear 07-03-2004 12:28

Thats pretty cool, this plugin would be cool if you like gave them a 5 minute time limute and if they dont unafk (or unbrb) them selfs they will will be kicked. so they dont take up a slot for some one that wants to get in.

Cheap_Suit 08-01-2004 02:26

hmmm that is a good idea ill try to add it optional in my next release.

thanks Johnny got his gun for approving my plugin :D

Mean while enjoy this release :lol:

MeTaL69 08-01-2004 08:38

Yeah that would be good but afk kicker plugin does that anyway.

Could you add a code in the script, so when people join, it shows up a line of text about /brb on the bottom left hud. This will just make them aware of this option.
Because at the moment, Ive added a line in the imesseage in the amx.cfg. Other wise no one knows its there.

Ive noticed that fireworks.amx uses the same script, & people r always trying to use it.

Works well mi thinks :wink:

Where does the .txt file go, in the Custom folder??

Cheap_Suit 08-01-2004 14:56

yes in the custom folder
ill add it soon

MeTaL69 08-01-2004 18:45

Cheers buddy :)

Just looked in the .sma & found out its actualy in the configs, doh! Y I didnt look there first :oops:

Got it to work now but I dont think players will like it very much, cos of the big pause & blank screen. Hmmm, maybe if I added a nice girl picture...... :wink:

LoL, been trying to add the script as I was bored but with no avial, dosnt compile :roll:
Well I guess it would be nice to know coding one day :cry:

Cheap_Suit 08-02-2004 01:31

sweet i just find out you can play radio in it too :oops: im such a noob :roll:

ill add one that when you type /listen you can listen to online radios!

MeTaL69 08-02-2004 02:57

Nice man, that would be cool :D

If ur a noob at this, Im a super duper noob :lol:

A girly pic for that 1 to :wink:

Or u could just use /radio.

Haas 08-02-2004 18:51

This was my idea i love you for making this :D :up: :up: :up: :up: :up:

Dark_Clutz 08-15-2004 22:21

any chance of adding a toggle to control admins only use or allow anyone to use it. maybe in a define or something.

IJs 09-02-2004 19:57

Works amazing, i now have streaming mp3 on my server instead of precached (10mb) files, w00t :D

Thought i modified those plugins a bit, anyways.. they're working excellent (lame-cs.nl:27015 if you wanna test ;))

Cheap_Suit 09-02-2004 22:25

its nice to know some people are using my plugin :D

tell you what, next update:
an admin can set all users to listen and if they dont then they just type /stoplisten or something like that.

or maybe [No C-D] people cant listen at all lol :lol:

IJs 09-19-2004 08:01

Modified it a bit, works excellent Cheap_Suit!

Lots of players are actually listening to the streamed music on my server :D

MeTaL69 09-19-2004 12:25

Hey, could some1 tell me how u make it stream an mp3 or Radio?

Cheers!!

Edit:

Any1 know of any good streaming sites?

That di.fm needs MP to open & to install a file

R3APER 02-20-2005 22:46

Would people on my server be able to hear the music on the music.sma plugin?

Cheap_Suit 02-21-2005 00:41

there's no music in music.sma, you have to type out the link to the source of the music in a webpage in the music.txt

R3APER 02-21-2005 01:12

oh yes sorry :oops: , i meant the music.txt file.

I have put some links to music in it and are working fine, and what i wanted to know is would people in my server be able to hear it also?

btw....great plugin. :)

Cheap_Suit 02-21-2005 13:06

yea

Johnny got his gun 02-21-2005 16:49

This is actually fun the way the music stays on even if you close the MOTD. I didn't realize that.

It would be nice to be able to "force" mp3s on a player without him having to view the MOTD in the first place. I mean, if it was possible to automatically close it...

R3APER 02-25-2005 05:55

I dont know why, but all of a suden a box started to come out every single time i used the /listen command. Before i would always type /listen and the song would start playing automaticly, but this box pops up:

http://img205.exs.cx/img205/7159/saveas5qq.jpg

How can i fix this.

Agret 02-25-2005 07:18

Try going into Tools - Folder options in Explorer then clicking File Types, MP3, Hit advanced, Untick "Confirm Open After Download". See if this works for you. I haven't got this problem so I can't try it.

Cheap_Suit 02-26-2005 22:12

Quote:

Originally Posted by Johnny got his gun
This is actually fun the way the music stays on even if you close the MOTD. I didn't realize that.

It would be nice to be able to "force" mp3s on a player without him having to view the MOTD in the first place. I mean, if it was possible to automatically close it...

How will you be able to turn the music off?

Agret 02-27-2005 02:34

Just make it so it opens another non musical page MOTD style. That should stop it.

Cheap_Suit 03-27-2005 16:12

wooot updated

hope its bug free :wink:


All times are GMT -4. The time now is 02:31.

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