Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[İSTEK]HP Menüsü
#1
Arkadaşlar, Ben /hpshop Pluginini Editleyemedim, Bana Böyle Editleyip Verirseniz Çok Sevinirim..

+10 HP = 5000$
+20 HP = 6000$
+30 HP = 7000$
+40 HP = 8000$
+50 HP = 10000$
+100 HP = 16000$



Bu Menüyü Sadece T'ler Açabilsin.. Ve Reklamsız Olsun..

/hpmenu Yazılınca açılsın..
Reply
#2
PHP Code:
/* 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

İletişim ;

MSN : DeaTReX[email protected]

SKYPE : DeaTReX

Fakelerim Çıkmaya Başlamış Lütfen [email protected] & DeaTReX Adreslerinden Başka Hesabım Yoktur Lütfen Onlara Kanmayınız !

Sunuculara Ve Serverlara Özel Plugin Ve Mod Kodlanır
Reply
#3
PHP Code:
/* Plugin generated by AMXX-Studio */

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

#define PLUGIN "HP-SHOP"
#define VERSION "1.0"
#define AUTHOR "akcaliberkk"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /hpshop","Menu_Create")
}
public 
Menu_Create(id) {
    if(!
is_user_alive(id)) return PLUGIN_CONTINUE
    
if(get_user_team(id) != 1) return PLUGIN_CONTINUE
    
    
new menu menu_create("\yHP Shop","Menu_Handle")
    
    
menu_additem(menu,"+10 HP \y[5000$]","10 5000",0)
    
menu_additem(menu,"+20 HP \y[6000$]","20 6000",0)
    
menu_additem(menu,"+30 HP \y[7000$]","30 7000",0)
    
menu_additem(menu,"+40 HP \y[8000$]","40 8000",0)
    
menu_additem(menu,"+50 HP \y[10000$]","50 10000",0)
    
menu_additem(menu,"+100 HP \y[16000$]","100 16000",0)
    
    
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
    
menu_display(id,menu,0)
    return 
PLUGIN_HANDLED
}
public 
Menu_Handle(id,menu,item) {
    if(
item == MENU_EXIT) {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    new 
data[20],name[32];
    new 
access,callback;
    
menu_item_getinfo(menu,item,access,data,19,name,31,callback)
    new 
szMiktar[5],szFiyat[10];
    
parse(data,szMiktar,5,szFiyat,10)
    new 
fiyat str_to_num(szFiyat);
    new 
miktar str_to_num(szMiktar);
    new 
cuzdan cs_get_user_money(id);
    if(
cuzdan miktar) {
        
client_print(id,print_chat,"[HPSHOP] Yeterli Paraniz Bulunmamaktadir !")
        return 
PLUGIN_HANDLED
    
}
    
set_user_health(id,get_user_health(id) + miktar)
    
cs_set_user_money(id,cuzdan fiyat)
    
client_print(id,print_chat,"[HPSHOP] %d$ Karsiliginda +%d HP Satin Aldiniz !",fiyat,miktar)
    
menu_display(id,menu,0)
    return 
PLUGIN_HANDLED



CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply
#4
Teşekürler, Sorunum Çözüldü..
Reply
#5
Çözülmüş İsteklere taşındı.


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,922 03-09-17, 18:06
Last Post: tahayasin
  [ İSTEK ] Belirli Yetki Hariç 3 Raund Weapon Engel excellenT 15 6,347 21-07-17, 03:49
Last Post: SINCAPP
  [İSTEK] CT MAVi - T Kırmızı ışık yanan Plugin + Video Çektim ademcan36 9 10,464 26-04-17, 16:15
Last Post: h4m4s
  [ISTEK] Hızlı Dowload Link [ISTEK] TagaL 13 7,768 05-01-17, 01:30
Last Post: marvel1905
  Menu ve jbmenu istek hamhum 10 12,372 05-01-17, 01:30
Last Post: marvel1905
  İSTEK ! Sadece Ct de hook basabilmek playman01 17 7,532 28-08-16, 14:42
Last Post: QuarsS
  Acil Sorun istek hasanx9 6 3,991 03-08-16, 20:44
Last Post: murat1366
  Plugin İstek CFG Tarzı erenstrkl 6 3,772 03-08-16, 20:31
Last Post: murat1366
  Reklamcılara karsi Acil İstek[Plugin] hasan0650 22 5,572 17-07-16, 18:03
Last Post: BYHAZARD7
  Sağlam Bi Ct Silah Menüsü MintonS 3 4,810 12-05-15, 15:00
Last Post: messert

Foruma Atla:


Users browsing this thread: 1 Guest(s)