join music
Lukipl 10.10.2010
Siema przerobi mi ktoś ten kod z wav na mp3?
#include <amxmodx> new const _sounds[][] = //add your sounds here { "fy_marioworld.wav", "misc/joinsound.wav" } public plugin_precache() { new iNum for (iNum = 0; iNum < sizeof _sounds; iNum++) precache_sound(_sounds[iNum]) } public client_putinserver(id) set_task(1.0, "play", id) public play(id) client_cmd(id, "spk ^"%s^"", _sounds[random(sizeof _sounds)])
Knopers
10.10.2010
#include <amxmodx>
new const _sounds[][] = //add your sounds here
{
"jakas_tam.mp3",
"misc/jakis_sound.mp3"
}
public plugin_precache()
{
new iNum
for (iNum = 0; iNum < sizeof _sounds; iNum++)
precache_sound(_sounds[iNum])
}
public client_putinserver(id)
set_task(1.0, "play", id)
public play(id) client_cmd(id, "mp3 play sound/^"%s^"", _sounds[random(sizeof _sounds)])
Użytkownik Knopers edytował ten post 10.10.2010 20:29
@down Poprawione :P