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

say /ragequit


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   GHW_Chronic (70)
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 09-21-2006 , 10:42   say /ragequit
Reply With Quote #1

By request of user "woof".

Usage:
say /ragequit - plays a sound to everyone and then server kicks you
say /ragequitquit - plays a sound to everyone and forces you to "quit" HL
-or-
say_team /ragequit - plays a sound to everyone and then server kicks you
say_team /ragequitquit - plays a sound to everyone and forces you to "quit" HL

Customize sounds and compile it for yourself.
The default sounds are from the "houndeye" in valve, and are pretty boring.

// v0.8 - cleanup of code again. Thank you to Hawk for your help.
// v0.7 - cleanup of code, new things in brain of author.
// v0.6 - reverted BACK to variables for sound filenames. Thanks Hawk552.
// v0.5 - one less variable used, more efficient? Thanks GHW_Chronic.
// v0.4 - moved sounds from vars to preproc defines. Thanks GHW_Chronic.
// v0.3 - added sayteam aliases. Thanks GHW_Chronic.
// v0.2 - fixed g_ variable size. Thanks Hawk552.
// v0.1 - cows.

Last updated: 2006-12-05
Attached Files
File Type: sma Get Plugin or Get Source (jr_ragequit.sma - 1784 views - 1.6 KB)

Last edited by jRaven; 12-05-2006 at 18:09. Reason: code cleaned again for v0.8
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
Lt Llama
Senior Member
Join Date: Aug 2004
Old 09-21-2006 , 18:07   Re: say /ragequit
Reply With Quote #2

You have some line feed issue. The source is just one long line.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.
Lt Llama is offline
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 09-21-2006 , 18:19   Re: say /ragequit
Reply With Quote #3

LF -> CRLF. Done. Thanks.
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 09-21-2006 , 18:21   Re: say /ragequit
Reply With Quote #4

There arent even any differences, both do the same thing.
Code:
public cmdRageQuit(target) {     client_cmd(0,"spk %s",g_SoundQuit) //everyone     client_cmd(target,"quit") } //public.cmdRageQuit public cmdRageKick(target) {     new target_userid = get_user_userid(target)     client_cmd(0,"spk %s",g_SoundKick) //everyone     server_cmd("kick #%d",target_userid) } //public.cmdRageKick
[ --<-@ ] Black Rose is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-21-2006 , 18:54   Re: say /ragequit
Reply With Quote #5

Black Rose, I have no idea what you're talking about, so here's a rabbit with a pancake on its head:



Moving along,

Code:
new g_SoundKick[64] = "houndeye/he_attack2.wav"
new g_SoundQuit[64] = "houndeye/he_blast3.wav"
should be -->

Code:
new g_SoundKick[] = "houndeye/he_attack2.wav"
new g_SoundQuit[] = "houndeye/he_blast3.wav"
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 09-21-2006 , 19:27   Re: say /ragequit
Reply With Quote #6

Fixed variable [size] thing. Thanks Hawk.
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
St4r
Junior Member
Join Date: Sep 2006
Location: In your wife's closet
Old 09-21-2006 , 21:17   Re: say /ragequit
Reply With Quote #7

Quote:
Originally Posted by jRaven View Post
By request of user "woof".

Moderators: If this is too basic of a plugin please feel free to trash it.

Usage:
say /ragequit - plays a sound to everyone and then server kicks you
say /ragequitquit - plays a sound to everyone and forces you to "quit" HL

Customize sounds and compile for yourself.
The default sounds are from the "houndeye" in valve.
My little jRaven Little
xD
Can you just change the say cmds to :
/ragekick
and
/ragequit ?
=/
St4r is offline
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 09-21-2006 , 21:29   Re: say /ragequit
Reply With Quote #8

I was trying to keep in line with the request of "say /ragequit" being a kick.

I added "say /ragequitquit" for a less ambiguous and more conscious second command for going one step further than kicking yourself.

The command strings don't matter to me, but I think the quit action needs to stand out more than the kick command. I'd also like to keep the first command the same as was requested.
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 09-21-2006 , 22:58   Re: say /ragequit
Reply With Quote #9

This plugin does not use 100% efficiency, which should be attempted to be fixed, but if I were to leave all non 110% efficient plugins in the unnapproved, trash, or new plugin submissions folder, we'de have like 2 plugins out there.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 09-21-2006 , 23:01   Re: say /ragequit
Reply With Quote #10

Code:
// // "Rage Quit" as per request am44975 by user "woof". // // v0.2 - fixed g_ variable size. Thanks Hawk552. // v0.1 - cows. #include <amxmodx> #define PLUGIN "Rage Quit" #define AUTHOR "jRaven" #define VERSION "0.2" #define ACCESS ADMIN_ALL //0=everyone #define g_SoundKick "houndeye/he_attack2.wav" #define g_SoundQuit "houndeye/he_blast3.wav" public plugin_init() {     register_plugin(PLUGIN,VERSION,AUTHOR)     register_clcmd("say /ragequit","cmdRageKick",ACCESS," - kick yourself with style")     register_clcmd("say_team /ragequit","cmdRageKick",ACCESS," - kick yourself with style")     register_clcmd("say /ragequitquit","cmdRageQuit",ACCESS," - close your HL (via ^"quit^") with style")     register_clcmd("say_team /ragequitquit","cmdRageQuit",ACCESS," - close your HL (via ^"quit^") with style") } public plugin_precache() {     precache_sound(g_SoundQuit)     precache_sound(g_SoundKick) } public cmdRageQuit(target) {     client_cmd(0,"spk %s",g_SoundQuit) //everyone     client_cmd(target,"quit") } public cmdRageKick(target) {     client_cmd(0,"spk %s",g_SoundKick) //everyone     server_cmd("kick #%d",get_user_userid(target)) }

an improvement. 2 small changes (and neaterer)
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Reply



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:47.


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