oldukten sonra verdıgım sarkılar karısık baslasın dogduktan sonra 5 6 sanıye daha devam etsın... muzıklerı ekde verdım. yardımcı olan olursa sımdıden tesekkurler
Konu
Adam öldükten sonra el 1 dk daha devam ederse bu şarkının el başına kadar sürdürülmesinin imkanı yok.
(22-03-2020, 18:10)By.KinG Adlı Kullanıcıdan Alıntı: Adam öldükten sonra el 1 dk daha devam ederse bu şarkının el başına kadar sürdürülmesinin imkanı yok.kanak server deathmatch yanı adam olunca sarkı calmaya baslasın hemen doggacak zaten dogdukdan sonrada 4 5 sanıye fılan calsın kısa calsın sarkı yanı fazla rahatsız etmesın
Rahatsız edip etmemesi biraz da şarkıyla alakalı ve tabi oyuncunun ses değerleriyle, birazdan maçım bitecek yapmaya başlacağım.
PHP Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "XaRex"
#define TASK_SARKI 27089
new const Sarkilar[] = {
"dosya/sarki.wav"
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "Ham_PlayerSpawnedPost", 1)
register_event("DeathMsg", "Event_Death", "a")
}
public plugin_precache()
{
for(new i = 0; i < sizeof Sarkilar; i++)
precache_sound(Sarkilar[i])
}
public Ham_PlayerSpawnedPost(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE;
remove_task(id+TASK_SARKI)
set_task(5.0, "SoundStop", id+TASK_SARKI)
return PLUGIN_CONTINUE;
}
public SoundStop(id)
{
ambience_sound_stop(id)
remove_task(id+TASK_SARKI)
}
public Event_Death()
{
static Victim
Victim = read_data(2)
static sarki;
sarki = random_num(0, sizeof Sarkilar - 1)
PlaySound(Victim, Sarkilar[sarki])
remove_task(Victim+TASK_SARKI)
}
PlaySound(id, const sound[])
{
if (equal(sound[strlen(sound)-4], ".mp3"))
client_cmd(id, "mp3 play ^"sound/%s^"", sound)
else
client_cmd(id, "spk ^"%s^"", sound)
}
ambience_sound_stop(id)
{
client_cmd(id, "mp3 stop; stopsound")
}
[quote='XaRex' pid='13408' dateline='1584904960']
Test Etmedim Çalıştığından emin değilim.
hatalı kanka
PHP Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "XaRex"
#define TASK_SARKI 27089
new const Sarkilar[] = {
"dosya/sarki.wav"
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "Ham_PlayerSpawnedPost", 1)
register_event("DeathMsg", "Event_Death", "a")
}
public plugin_precache()
{
for(new i = 0; i < sizeof Sarkilar; i++)
precache_sound(Sarkilar[i])
}
public Ham_PlayerSpawnedPost(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE;
remove_task(id+TASK_SARKI)
set_task(5.0, "SoundStop", id+TASK_SARKI)
return PLUGIN_CONTINUE;
}
public SoundStop(id)
{
ambience_sound_stop(id)
remove_task(id+TASK_SARKI)
}
public Event_Death()
{
static Victim
Victim = read_data(2)
static sarki;
sarki = random_num(0, sizeof Sarkilar - 1)
PlaySound(Victim, Sarkilar[sarki])
remove_task(Victim+TASK_SARKI)
}
PlaySound(id, const sound[])
{
if (equal(sound[strlen(sound)-4], ".mp3"))
client_cmd(id, "mp3 play ^"sound/%s^"", sound)
else
client_cmd(id, "spk ^"%s^"", sound)
}
ambience_sound_stop(id)
{
client_cmd(id, "mp3 stop; stopsound")
}
hatalı kanka
Son Düzenleme: 22-03-2020, 22:33, Düzenleyen: KONYALI.
PHP Kod:
new const Sarkilar[] = {
"dosya/sarki.wav"
}
PHP Kod:
new const Sarkilar[] = {
"dosya/sarki.wav",
"dosya/sarki.wav",
"dosya/sarki.wav"
}
Kaç tane eklersen ekle sondakinin sonuna virgül koyma.
(22-03-2020, 22:32)XaRex Adlı Kullanıcıdan Alıntı:panele yuklendı ama server coktu hatalı galıbaŞu kısmı Arttır Fakat böyle yap örnekPHP Kod:new const Sarkilar[] = {
"dosya/sarki.wav"
}PHP Kod:new const Sarkilar[] = {
"dosya/sarki.wav",
"dosya/sarki.wav",
"dosya/sarki.wav"
}
Kaç tane eklersen ekle sondakinin sonuna virgül koyma.
PHP Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "XaRex"
#define TASK_SARKI 27089
new const Sarkilar[][] = {
"player/bhit_helmet-1.wav"
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "Ham_PlayerSpawnedPost", 1)
register_event("DeathMsg", "Event_Death", "a")
}
public client_connect(id) remove_task(id+TASK_SARKI)
public plugin_precache()
{
for(new i = 0; i < sizeof Sarkilar; i++)
precache_sound(Sarkilar[i])
}
public Ham_PlayerSpawnedPost(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE;
remove_task(id+TASK_SARKI)
set_task(5.0, "SoundStop", id+TASK_SARKI)
return PLUGIN_CONTINUE;
}
public SoundStop(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE;
ambience_sound_stop(id)
remove_task(id+TASK_SARKI)
return PLUGIN_CONTINUE;
}
public Event_Death()
{
static Victim, sarki;
Victim = read_data(2)
if(!is_user_connected(Victim))
return PLUGIN_CONTINUE;
sarki = random_num(0, sizeof Sarkilar - 1)
remove_task(Victim+TASK_SARKI)
PlaySound(Victim, Sarkilar[sarki])
remove_task(Victim+TASK_SARKI)
return PLUGIN_CONTINUE;
}
PlaySound(id, const sound[])
{
if (equal(sound[strlen(sound)-4], ".mp3"))
client_cmd(id, "mp3 play ^"sound/%s^"", sound)
else
client_cmd(id, "spk ^"%s^"", sound)
}
ambience_sound_stop(id)
{
client_cmd(id, "mp3 stop; stopsound")
}
Benzer Konular
Yorum
9.199
Okunma
01-01-2025, 16:37
Yorum
11.324
Okunma
05-11-2024, 12:57
)


