Kullanıcı Tag Listesi

16 sonuçtan 1 ile 10 arası

Hybrid View

  1. #1
    binbaşı er Pikachu - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    Mar 2013
    Yer
    Istanbul
    Mesajlar
    331
    Bahsedildi
    7 Mesaj
    Etiketlenmiş
    0 Konu
    Tecrübe Puanı
    13

    Standart Cevap: Hudmessage Değişken Tanımlama

    PHP- Kodu:
    #include <amxmodx>
    #include <amxmisc>


    #define PLUGIN "Geri Sayim Sayaci"
    #define VERSION "1.0"
    #define AUTHOR "akcaliberkk"


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


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


    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)) {
            
    precache_sound(SOUND)
            
    emit_sound(idCHAN_STREAMSOUNDVOL_NORMATTN_NORM0PITCH_NORM)
        }
        
        
    show_hudmessage(0,"Geri Sayim: %d Saniye",sure)
        
    sure--
        
    set_task(1.0,"StartCountDown",sure)
        return 
    PLUGIN_CONTINUE

    Kod:
    kronometre.sma(68) : error 017: undefined symbol "id"kronometre.sma(68) : warning 215: expression has no effect
    kronometre.sma(68) : error 001: expected token: ";", but found ")"
    kronometre.sma(68) : error 029: invalid expression, assumed zero
    kronometre.sma(68) : fatal error 107: too many error messages on one line
    Valla bi göz gezdirdim de soruna bi çözüm bulamadım.

    Birde;
    new
    new const
    bool
    static
    ve daha bilmediklerimin ne işe yaradıklarını söylerseniz çok sevinirim. Bi tek new i çözebildim
    Konu Pikachu tarafından (01-07-13 Saat 15:13 ) değiştirilmiştir.
    uhcakiP
    Özel Plugin Kodlanır!

    Steam_ID = STEAM_0:0:54912140
    Steam_Nick = Ragnar Lothbrok

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Benzer Konular

  1. değişken filtreleme
    By akinpc in forum Çözülmüş İstekler
    Cevaplar: 4
    Son Mesaj: 05-05-13, 00:33

Kullanıcıların arama motorlarındaki kullandığı taglar:

cs set_hudmessage fonksiyonunu

cs 1.6 warning 215: expression has no effect

hudmessage plugini csplague

hudmessage komutlari

Counter Strike

Bu Konudaki Etiketler

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok
  •  

SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121