Sziasztok !! valaki tudna csinálni nekem 1 egyedi bomba hangot ?
Bomba .sma
Kód:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Bomb Sound"
#define VERSION "1.0"
#define AUTHOR "Starsailor"
forward bomb_planted(planter);
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_precache(){
precache_sound("c4_misc/planted1.wav")
}
public bomb_planted(id) {
new plantername[32]
get_user_name(id,plantername,31)
set_hudmessage(255, 0, 0, -1.0, 0.2, 1, 6.0, 6.0)
show_hudmessage(0, "%s elesitette a bombat!", plantername)
emit_sound(0,CHAN_AUTO,"c4_misc/planted1.wav",VOL_NORM,ATTN_NORM,0,PITCH_NORM);
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/
Sound ot akarom kicserélni!!!! Segitcség!!
Betöltö zene
Kód:
nclude <amxmodx>
#define Maxsounds 1
new soundlist[Maxsounds][] = {"misc/rtpn"} //zene neve és helye
new plugin_author[] = "White Panther" // készitő
new plugin_version[] = "1.2.3" // verzió
public plugin_init( )
{
register_plugin("Connect Sound", plugin_version, plugin_author)
register_cvar("connectsound_version", plugin_version, FCVAR_SERVER)
}
public plugin_precache( )
{
new temp[128], soundfile[128]
for ( new a = 0; a < Maxsounds; a++ )
{
format(temp, 127, "sound/%s.wav", soundlist[a])
if ( file_exists(temp) )
{
format(soundfile, 127, "%s.wav", soundlist[a])
precache_sound(soundfile)
}
}
}
public client_putinserver( id )
{
set_task(1.0, "consound", 100 + id)
}
public consound( timerid_id )
{
new id = timerid_id - 100
new Usertime
Usertime = get_user_time(id, 0)
if ( Usertime <= 0 )
{
set_task(1.0, "consound", timerid_id)
}else
{
new i = random(Maxsounds)
client_cmd(id, "spk ^"%s^"", soundlist[i])
}
return PLUGIN_CONTINUE
}