Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pluginde ses çalışmıyor
#6
Online MP3 Kesici - Şarkıları Kes, Ses Tonu Yap bu siteyi kullandım, stereo mu mono mu kaydediyor bilmiyorum. Zaten ekstra bi dosya yüklemekten vazgeçtim, cs'nin kendi seslerinden birini kullandım.

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Kronometre"
#define VERSION "1.0"
#define AUTHOR "akcaliberkk"


new ses
new is_plugin_request[33];
new 
bool:is_counting;
new const 
SOUND[] = "aaa.wav";
new const 
SOUND2[] = "sss.wav";


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
ses register_cvar("kronometre_ses","7")
    
register_clcmd("say /kronometre","GetStartTime")
    
register_clcmd("Saniye","ReceiveStartTime")
}
public 
plugin_precache() {
    
precache_sound(SOUND)
}

public 
GetStartTime(id) {
    
    
is_plugin_request[id] = true;
    
client_cmd(id,"messagemode Saniye")
}


public 
ReceiveStartTime(id) {
    
    if(!
is_plugin_request[id]) {
        
console_print(id,"Gecersiz Istek")
        return 
PLUGIN_HANDLED
    
}
    new 
szSaniye[6];
    
read_args(szSaniyecharsmax(szSaniye))
    
remove_quotes(szSaniye)
    if(!
szSaniye[0]) {
        
client_print(idprint_chat"Bos Birakamazsiniz !")
        
client_cmd(id,"messagemode Saniye")
        return 
PLUGIN_HANDLED
    
}
    new 
iSaniye str_to_num(szSaniye);
    if(
iSaniye 1) {
        
client_print(idprint_chat"Pozitif Bir Tamsayi Girmelisiniz.")
        
client_cmd(id,"messagemode Saniye")
        return 
PLUGIN_HANDLED
    
}
    
is_plugin_request[id] = false;
    if(
is_counting) {
        
client_print(idprint_chat"Suanda Zaten Bir Geri Sayim Aktif.")
        return 
PLUGIN_HANDLED
    
}
    
is_counting true;
    
StartCountDown(iSaniye)
    return 
PLUGIN_HANDLED
}


public 
StartCountDown(sure) {
    
    
set_hudmessage(2551700, -1.0, -1.001.01.0)
    if(!
sure) {
        
show_hudmessage(0,"Geri Sayim Doldu !")
        
is_counting false;
        return 
PLUGIN_HANDLED
    
}
    
    if(
sure <= get_pcvar_num(ses)) {
        
emit_sound(0CHAN_STREAMSOUNDVOL_NORMATTN_NORM0PITCH_NORM)
    }
    
    if (
sure == 1) {
        
emit_sound(0CHAN_STREAMSOUND2VOL_NORMATTN_NORM0PITCH_NORM)
    }
    
    
show_hudmessage(0,"Geri Sayim: %d Saniye",sure)
    
sure--
    
set_task(1.0,"StartCountDown",sure)
    return 
PLUGIN_CONTINUE


Tamamdır bu şekil yaptım işe yaradı. Yardımlarınız için teşekkür ederim Smile

EDIT: 2 Mesaj arası çok kısa süre var diye önceki mesaja ekler sandım ama eklememiş, önceki mesaja eklenirse sevinirim.
uhcakiP
Özel Plugin Kodlanır!

Steam_ID = STEAM_0:0:54912140
Steam_Nick = Ragnar Lothbrok
https://steamcommunity.com/id/lothbrok
Reply


Messages In This Thread
Pluginde ses çalışmıyor - by Pikachu - 07-07-13, 00:48
[No subject] - by Pikachu - 07-07-13, 12:12

Possibly Related Threads…
Thread Author Replies Views Last Post
  Lr pluginde bunny kapama t4t1fati 4 4,522 31-08-16, 17:24
Last Post: KemalKomutan
  [JB] El Sonu Ayar Sıfırlama (Forumdakiler çalışmıyor) cshoter 6 4,049 22-05-15, 15:56
Last Post: figo2121
  Pluginde hata lütfen yardım :) tarlacixx 2 4,959 10-04-15, 12:45
Last Post: kedusa
  [İSTEK] Bu Plugin Neden Çalışmıyor [ACİL] OnlyPeach 6 7,863 26-08-13, 17:39
Last Post: OnlyPeach
  Pluginde Model Yüklettme Sorunu (Ayrıntıİçerde) Furkan Dize 3 2,419 23-06-13, 14:06
Last Post: akcaliberkk
  Pluginde ufak bı degisiklik melof 5 2,762 22-05-13, 17:41
Last Post: akcaliberkk
  Bir Publici Başka Bir Pluginde Nasıl Kullanabilirim Furkan Dize 3 3,616 25-04-13, 19:32
Last Post: akcaliberkk
  Akcali Bakarmısın Pluginde Sorun Var Nefesim 13 6,925 08-02-13, 17:35
Last Post: akcaliberkk
  Editlemeye çalıştığım pluginde sorun çıktı hurracuran 3 2,846 04-02-13, 00:51
Last Post: akcaliberkk
  herkeste aynı spray pluginde hata shakespeare 12 5,039 05-01-13, 14:58
Last Post: akcaliberkk

Foruma Atla:


Users browsing this thread: 1 Guest(s)