Raised This Month: $ Target: $400
 0% 

Spk2All


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
DarkShadowST
Member
Join Date: Apr 2004
Location: Texas
Old 02-06-2005 , 22:51   Spk2All
Reply With Quote #1

Adds a nice little command spk2all

Just like spk only whatever u put goes out to everybody
YOU MUST USE QUOTES!!! I think....I unno, do it to be safe >.<

CVAR:
spk_mode <0|1|2>

0 = Everybody in server can use...
1 = Admins with ACCESS_LEVEL can use
2 = Admins with ADMIN_IMMUNITY can use

(2 is useful for shutting up immature admins when they're getting annoying)

Example:
spk2all "you are one bad ass atomic weapon"

Code:
/*     Speak 2 All - v0.1 - DarkShadowST     This has probably been made a billion times     Who cares?     */ #include <amxmodx> #define ACCESS_LEVEL ADMIN_CHAT public plugin_init() {         register_plugin("Speak 2 All","0.1","DarkShadowST");     register_concmd("spk2all","speak_all",0," Usage: spk2all ^"gordon freeman^"");     register_cvar("spk_mode","1");                  //<0|1|2>                                                     //0 = Everybody Can Use                                                     //1 = Admins with ACCESS_LEVEL can use                                                     //2 = Admins with Immunity can use } public speak_all(id) {         if((get_cvar_num("spk_mode") == 2) && !(get_user_flags(id)&ADMIN_IMMUNITY)) {                 client_print(id,print_console,"[AMXX] You Dont Have Access To That Command");         return PLUGIN_HANDLED;     }     if((get_cvar_num("spk_mode") == 1) && !(get_user_flags(id)&ACCESS_LEVEL)) {                 client_print(id,print_console,"[AMXX] You Dont Have Access To That Command");         return PLUGIN_HANDLED;     }         if(read_argc() > 2 || read_argc() < 2) {         client_print(id,print_console,"[AMXX] Usage: spk2all ^"gordon freeman^"");         return PLUGIN_HANDLED;     }         new speech[251]     read_argv(1,speech,250);         new players[32], inum     get_players(players,inum,"c")     for(new i = 0; i < inum; ++i) {         client_cmd(players[i],"spk ^"%s^"",speech);     }     return PLUGIN_HANDLED; }
Attached Files
File Type: sma Get Plugin or Get Source (spk2all.sma - 1281 views - 1.3 KB)
__________________
My Current Desktop:
Entire

DONT WATCH ME!!! Evil...People...
DarkShadowST is offline
Send a message via AIM to DarkShadowST Send a message via MSN to DarkShadowST Send a message via Yahoo to DarkShadowST
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-06-2005 , 23:01  
Reply With Quote #2

Still don't get what it is supposed to do..

__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
DarkShadowST
Member
Join Date: Apr 2004
Location: Texas
Old 02-06-2005 , 23:57  
Reply With Quote #3

if you use the command spk in console, it speaks the string to YOU and YOU ONLY

spk2all goes and runs the spk command on everybody's client so everybody hears it
__________________
My Current Desktop:
Entire

DONT WATCH ME!!! Evil...People...
DarkShadowST is offline
Send a message via AIM to DarkShadowST Send a message via MSN to DarkShadowST Send a message via Yahoo to DarkShadowST
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-07-2005 , 15:11  
Reply With Quote #4

Oh, I see...
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-13-2005 , 11:03  
Reply With Quote #5

Author PM me to have this approved
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
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 04:48.


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