Raised This Month: $32 Target: $400
 8% 

Extra_sound_menu


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
raghunarnindi001
Member
Join Date: Apr 2011
Old 01-27-2012 , 05:56   Extra_sound_menu
Reply With Quote #1

Extra Sound Menu

First of all i though that bots are having more voice messages than players , So this plugin give players a new sound menu. By pressing "v" we get this menu .

Requirements:

1. Amx Modx
2. Hamsandwich
3. Fakemeta



Any Suggestions or problems are welcomed
Attached Thumbnails
Click image for larger version

Name:	radio_menu.JPG
Views:	252
Size:	20.3 KB
ID:	98621  
Attached Files
File Type: zip Extra_sound_menu.zip (495.0 KB, 58 views)

Last edited by Arkshine; 01-27-2012 at 07:33.
raghunarnindi001 is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 01-27-2012 , 07:17   Re: Extra_sound_menu
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=573867
It would be more usefull to replace the current sounds instead of creating another menu.

-remove the fakemeta and amxmisc.
-why using old menu system ?

Code:
public client_connect( id ) {     client_cmd( id , "bind v extsounds" )     client_cmd( id , "bind j /cheer" ) }
-slowhacking

Code:
if (key == 9)             {                          menu_cancel( id )                 } else if (key == 0) {                         emit_sound( 0 , CHAN_VOICE , sound_1 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )                         ColorChat( 0 , TEAM_COLOR , "%s: Its Done!!" , name )                 } else if (key == 1) {                         emit_sound( 0 , CHAN_VOICE , sound_2 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )             ColorChat( 0 , TEAM_COLOR , "%s: Report In Team !!" , name )                  }else if (key == 2) {                         emit_sound( 0 , CHAN_VOICE , sound_3 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )                       ColorChat( 0 , TEAM_COLOR , "%s: Bombs On the Ground !!" , name )         }else if (key == 3) {                         emit_sound( 0 , CHAN_VOICE , sound_4 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )                         ColorChat( 0 , TEAM_COLOR , "%s: Come Out fight like a man !!" , name )                  }else if (key == 4) {                         emit_sound( 0 , CHAN_VOICE , sound_5 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )                         ColorChat( 0 , TEAM_COLOR , "%s: Come Out ! Come Out !" , name )                     }else if (key == 5) {                         emit_sound( 0 , CHAN_VOICE , sound_6 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )                     ColorChat( 0 , TEAM_COLOR , "%s: I got a Sniper" , name )                  }else if (key == 6) {                         emit_sound( 0 , CHAN_VOICE , sound_7 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )                     ColorChat( 0 , TEAM_COLOR , "%s: I am comming" , name )                  }else if (key == 7) {                         emit_sound( 0 , CHAN_VOICE , sound_8 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )             ColorChat( 0 , TEAM_COLOR , "%s: Follow me !!" , name )                          }else if (key == 8) {                         emit_sound( 0 , CHAN_VOICE , sound_9 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )                         ColorChat( 0 , TEAM_COLOR , "%s: Bomb Site Secured !!" , name )                  }
http://wiki.amxmodx.org/Optimizing_P..._instead_of_If

Code:
public message( id ) {     ColorChat( id, GREEN , "**This server is Using extra_soundmenu made by Shooting KIng**" )         ColorChat( id, GREEN , "**To Use extra_sounds press V **" ) }
- just spamming the server


Code:
register_clcmd ( "extsounds" , "menusounds" , -1 )     register_clcmd( "/cheer" , "encourage" , -1 )

you dont have do declare the flags as -1 its a default.

Code:
if(  is_user_alive(id) == 1)     {         ColorChat( id, RED , "You must be dead to Cheer " )     } else if ( is_user_alive(id) == 0 )     {             emit_sound( 0 , CHAN_VOICE , sound_10 , 1.0 , ATTN_NORM , 0 , PITCH_NORM )         }

Code:
else if( is_user_alive( id ) == 0 )
is_user_alive - Returns 1 if a player is alive, 0 if dead.
if is_user_alive isn't equal to 1 clearly its 0

Last edited by MyPc; 01-27-2012 at 07:21.
MyPc is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-27-2012 , 07:32   Re: Extra_sound_menu
Reply With Quote #3

Last time, I told you to not post new plugins with your current knowledge. This plugin proves again you don't know what you're doing : redundant, poorly coded, slowhacking, etc.

Let me be clear : don't release again soon a new plugin until you have a solid knowledege and you know what you're doing, otherwise it will be trashed directly. Thanks.

Since your plugin contains slowhacking, will remove the attachment. Not worth to be unapproved so I'm trashing this.
__________________
Arkshine is offline
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 15:19.


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