Kullanıcı Tag Listesi

5 sonuçtan 1 ile 5 arası

Threaded View

  1. #2
    teğmen emektar DeaTReX - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    Feb 2012
    Yer
    İstanbul
    Mesajlar
    1.089
    Bahsedildi
    10 Mesaj
    Etiketlenmiş
    2 Konu
    Tecrübe Puanı
    15

    Standart Cevap: [İSTEK]HP Menüsü

    PHP- Kodu:
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>
    #include <fun>
    #include <cstrike>

    #define PLUGIN "HP Shop"
    #define VERSION "1.0"
    #define AUTHOR "Gudik"


    new money
    new health
    new cost100 16000
    new cost50 10000
    new cost40 8000
    new cost30 7000
    new cost20 6000
    new cost10 5000

    public plugin_init() {
        
    register_plugin("HP Shop""1.1""Gudik");
        
        
    register_clcmd ("say /HPShop""HP_menu");
        
    register_cvar ("amx_HPShop""1");
        
    register_event("HLTV""event_round_start""a""1=0""2=0");
    }
    public 
    HP_menu (id
    {    
        if(
    get_user_team(id) == 1)
        {
            new 
    menu menu_create ("HP Shop""menu_hp");
            
    menu_additem (menu"100 Health - 16000$""1"0);
            
    menu_additem (menu"50 Health - 10000$""2"0);
            
    menu_additem (menu"40 Health - 8000$" "3"0);
            
    menu_additem (menu"30 Health - 7000$" "4"0);
            
    menu_additem (menu"20 Health - 6000$" "5"0);
            
    menu_additem (menu"10 Health - 5000$" "6"0);
            
            
    menu_setprop (menuMPROP_EXITMEXIT_ALL);
            
            
    menu_display (idmenu0)
        }
    }
    public 
    menu_hp (idmenuitem)
    {
        
        if (
    item == MENU_EXIT)
        {
            
    menu_destroy (menu)
            return 
    PLUGIN_HANDLED
        
    }
        
        
        new 
    data [6], iname [64]
        new 
    accesscallback
        
        
        menu_item_getinfo 
    (menuitemaccessdata5iname63callback)
        
        
        new 
    key str_to_num (data)
        
        
        
        switch (
    key)
        {
            case 
    1: {
                
    money cs_get_user_money(id);
                
    health get_user_health(id);
                if (
    money <= cost100) {
                    
    client_print(idprint_chat"[HP Shop] - Yeterli Para Yok!");
                }
                else {
                    if (
    is_user_alive(id)) {
                        
    set_user_health(idhealth +100);
                        
    client_print(idprint_chat"[HP Shop] - 100 HP Yuklendi!");
                        
    cs_set_user_money(idmoney cost100);
                    }
                }
            }
            case 
    2: {
                
    money cs_get_user_money(id);
                
    health get_user_health(id);
                if (
    money <= cost50) {
                    
    client_print(idprint_chat"[HP Shop] - Yeterli Para Yok!");
                }
                else {
                    if (
    is_user_alive(id)) {
                        
    set_user_health(idhealth +50);
                        
    client_print(idprint_chat"[HP Shop] - 50 HP Yuklendi!");
                        
    cs_set_user_money(idmoney cost50);
                    }
                }
            }
            case 
    3: {
                
    money cs_get_user_money(id);
                
    health get_user_health(id);
                if (
    money <= cost40) {
                    
    client_print(idprint_chat"[HP Shop] - Yeterli Para Yok!");
                }
                else {
                    if (
    is_user_alive(id)) {
                        
    set_user_health(idhealth +40);
                        
    client_print(idprint_chat"[HP Shop] - 40 HP Yuklendi!");
                        
    cs_set_user_money(idmoney cost40);        
                    }
                }
            }
            case 
    4: {
                
    money cs_get_user_money(id);
                
    health get_user_health(id);
                if (
    money <= cost30) {
                    
    client_print(idprint_chat"[HP Shop] - Yeterli Para Yok!");
                }
                else {
                    if (
    is_user_alive(id)) {
                        
    set_user_health(idhealth +30);
                        
    client_print(idprint_chat"[HP Shop] - 30 HP Yuklendi!");
                        
    cs_set_user_money(idmoney cost30);        
                    }
                }
            }
            case 
    5: {
                
    money cs_get_user_money(id);
                
    health get_user_health(id);
                if (
    money <= cost20) {
                    
    client_print(idprint_chat"[HP Shop] - Yeterli Para Yok!");
                }
                else {
                    if (
    is_user_alive(id)) {
                        
    set_user_health(idhealth +20);
                        
    client_print(idprint_chat"[HP Shop] - 20 HP Yuklendi!");
                        
    cs_set_user_money(idmoney cost20);        
                    }
                }
            }
            case 
    6: {
                
    money cs_get_user_money(id);
                
    health get_user_health(id);
                if (
    money <= cost10) {
                    
    client_print(idprint_chat"[HP Shop] - Yeterli Para Yok!");
                }
                else {
                    if (
    is_user_alive(id)) {
                        
    set_user_health(idhealth +10);
                        
    client_print(idprint_chat"[HP Shop] - 10 HP Yuklendi!");
                        
    cs_set_user_money(idmoney cost10);        
                    }
                }
            }
        }
        return 
    PLUGIN_HANDLED

    Konu DeaTReX tarafından (09-01-13 Saat 17:55 ) değiştirilmiştir.
    İletişim ;

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


    SKYPE : DeaTReX

    Fakelerim Çıkmaya Başlamış Lütfen
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    & DeaTReX Adreslerinden Başka Hesabım Yoktur Lütfen Onlara Kanmayınız !

    Sunuculara Ve Serverlara Özel Plugin Ve Mod Kodlanır

Benzer Konular

  1. Oyun Menüsü
    By c4* in forum [PLUGİN] Cs 1.6 Eklentiler
    Cevaplar: 13
    Son Mesaj: 18-03-15, 14:06
  2. [İSTEK] CT Yardım Menüsü (Geniş Kapsamlı)
    By Nefesim in forum Çözülmüş İstekler
    Cevaplar: 7
    Son Mesaj: 30-01-13, 23:01
  3. [İSTEK] CS 1.6 Renki Giriş Menüsü
    By jank-tr in forum Çözülmüş İstekler
    Cevaplar: 3
    Son Mesaj: 05-06-12, 12:21

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

Counter Strike 1.6 Cfg, plugin, eklenti, sxe, config, skin, setup
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