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

Advanced Quake Sounds v5.0 [ALL GAMES] & Optional Sounds Pack


Post New Thread Reply   
 
Thread Tools Display Modes
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 04-07-2016 , 07:38   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #181

Quote:
Originally Posted by EFFx View Post
Like this?

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
 
#define PLUGIN "Monster Kill"
#define VERSION "1.0"
#define AUTHOR "EFFx"
 
new kills[33]
new 
bool:actived[33] = true
new MinKills,szHud
new const szSound[] = "sound/QuakeSounds/monsterkill.wav"
 
public plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 
szHud CreateHudSyncObj()
 
MinKills register_cvar("monsterkill_min","5")
 
 
register_clcmd("say /sounds","FuncOnOff")
 
 
register_event("DeathMsg","ShowMonster","a")
 
 
RegisterHam(Ham_Spawn,"player","ResetKills",1)
}
public 
plugin_precache()
 
precache_generic(szSound)

public 
client_putinserver(id
 if(!
is_user_bot(id)) 
  
actived[id] = true

public ResetKills(id
 
kills[id] = 0

public FuncOnOff(id)
{
 switch(
actived[id])
 {
  case 
true:
  {
   
actived[id] = false
  
}
  case 
false:
  {
   
actived[id] = true
  
}
 }
 
client_print(id,print_chat,"[AMXX]: You has %sctived the monster kill sound!",actived[id] == true "a" "dea")
}
public 
ShowMonster()
{
 new 
attacker read_data(1
 new 
victim read_data(2
 
 if(
actived[attacker] == true)
 {
  if( 
victim != attacker && cs_get_user_team(attacker) != cs_get_user_team(victim)) 
  { 
   
kills[attacker]++
   if(
kills[attacker] == get_pcvar_num(MinKills))
   {  
    
client_cmd(0,"spk %s",szSound)
    
    new 
szName[33]
    
get_user_name(attacker,szName,32)
    
set_hudmessage(255,0,255,-1.0,0.15,0,1.0,5.0)
    
ShowSyncHudMsg(0,szHud,"%s is a monster kill!",szName)
   }
  }
 }

Thanks dude! This was exactly what I was looking for, clean and simple!

You rock!
suhdude is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-07-2016 , 17:09   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #182

Quote:
Originally Posted by suhdude View Post
Thanks dude! This was exactly what I was looking for, clean and simple!

You rock!
You're welcome
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
0reax
Junior Member
Join Date: Sep 2016
Location: Anywhere
Old 09-10-2016 , 19:19   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #183

Thanks a lot for friendly plugin.
I want to change hud messages position. I know i am a noob i tried to edit this
Code:
// CENTER HUD MESSAGE POSITION
//
#define QS_CENTERPOS (0.01, 0.6)
line but didnt work well also i searched codes but i didnt success Can hud messages left sided like a tsays?
__________________
Code:
whichcode
0reax is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-10-2016 , 19:35   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #184

You may look into the documentation: https://www.amxmodx.org/api/amxmodx/set_hudmessage.

This plugin Hudmessage placer allows you to easily change the pos/color a hud message.
0.01 should be 1% on the screen's horizontal and 0.60 should be 60% on the screen's vertical, after the first point on (0.0, 0.0) as you may see on the picture.



Note: The 0.01 on the screen is more like 0.10 and the 0.60 is more like 0.70
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 09-10-2016 at 19:51. Reason: update
addons_zz is offline
Akashiya.Moka25
New Member
Join Date: Nov 2014
Location: Philipines
Old 09-18-2016 , 04:02   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #185

This plugin is awesome! Also supports on bots!!!
__________________
RMVALDEZ
Akashiya.Moka25 is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 12-17-2016 , 00:46   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #186

Pls support multiple hud messages for same event... Thought it had this feature already but found out it doesnt... could you?
maxolahird is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 12-18-2016 , 17:50   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #187

Plugin works 1000% but can anyone assist me on how to not play a sound many times at once if for example when more than one person dies at the same time?

Last edited by maxolahird; 12-18-2016 at 18:14.
maxolahird is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 12-18-2016 , 18:39   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #188

Create a play sound queue. So, if a sound is already playing, place it on the queue and play it soon as the current sound finishes playing.
Would be better to put the whole thing on the queue, the sound play and the hud display, so they would be synced.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 12-18-2016 at 18:40.
addons_zz is offline
TheCogmel
New Member
Join Date: Jan 2017
Old 01-30-2017 , 23:07   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #189

I've dusted the folders in the correct places (/ sounds / Quakesounds - / amxmod / config ...) and the files in the way they came in the download and a problem happened to me: evetons messages appear normally but the sounds do not run. What can I do?

(Sorry, I'm Brazilian and I use translate)
TheCogmel is offline
brlight
Senior Member
Join Date: Jun 2011
Old 02-04-2017 , 12:40   Re: Advanced Quake Sounds 5 [ALL GAMES] & Optional Sounds Pack
Reply With Quote #190

Really nice plugin but could have the event sound when only one of the players CT or T is alive (you are the one and only!)
brlight 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 00:43.


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