PHP- Kodu:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <jail>
#include <colorchat>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "JDM"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say //hpshop","OpenHPShop")
register_clcmd("say_team //hpshop","OpenHPShop")
}
public OpenHPShop(id) {
if(!is_user_alive(id)) {
ColorChat(id,NORMAL,"^4[Jailbreak]:^1 ^3HP Menuyu^1 kullanabilmek icin ^4Hayatta^1 olmaniz gerekir.!")
return PLUGIN_HANDLED
}
new menu, Menuz[512]
formatex(Menuz, charsmax(Menuz), "\r[JB] \w| -Hp Shop -")
menu = menu_create(Menuz, "MenuHandler")
formatex(Menuz, charsmax(Menuz), "\w10 Hp \r2 JB")
menu_additem(menu, Menuz, "1", 0)
formatex(Menuz, charsmax(Menuz), "\w20 Hp \r4 JB")
menu_additem(menu, Menuz, "2", 0)
formatex(Menuz, charsmax(Menuz), "\w30 Hp \r6 JB")
menu_additem(menu, Menuz, "3", 0)
formatex(Menuz, charsmax(Menuz), "\w40 Hp \r8 JB")
menu_additem(menu, Menuz, "4", 0)
formatex(Menuz, charsmax(Menuz), "\w50 Hp \r10 JB")
menu_additem(menu, Menuz, "5", 0)
formatex(Menuz, charsmax(Menuz), "\w60 Hp \r12 JB")
menu_additem(menu, Menuz, "6", 0)
formatex(Menuz, charsmax(Menuz), "\w70 Hp \r14 JB")
menu_additem(menu, Menuz, "7", 0)
formatex(Menuz, charsmax(Menuz), "\rCikis")
menu_setprop(menu,MPROP_EXITNAME,Menuz)
menu_setprop(menu,MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
return PLUGIN_HANDLED
}
public MenuHandler(id, menu, item) {
if(item == MENU_EXIT) {
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6],iName[64], access, callback
menu_item_getinfo(menu,item,access,data,5,iName,63,callback)
new para = jb_get_user_packs(id)
new key = str_to_num(data)
switch(key) {
case 1: {
if(para >= 2) {
jb_set_user_packs(id, para - 2)
set_user_health(id, get_user_health(id) + 10)
ColorChat(id,NORMAL,"^4[Jailbreak]:^1 ^3HP SHOP^1'tan ^4+10 HP^1 Aldin.")
}
}
case 2: {
if(para >= 4) {
jb_set_user_packs(id, para - 4)
set_user_health(id, get_user_health(id) + 20)
ColorChat(id,NORMAL,"^4[Jailbreak]:^1 ^3HP SHOP^1'tan ^4+20 HP^1 Aldin.")
}
}
case 3: {
if(para >= 6) {
jb_set_user_packs(id, para - 6)
set_user_health(id, get_user_health(id) + 30)
ColorChat(id,NORMAL,"^4[Jailbreak]:^1 ^3HP SHOP^1'tan ^4+30 HP^1 Aldin.")
}
}
case 4: {
if(para >= 8) {
jb_set_user_packs(id, para - 8)
set_user_health(id, get_user_health(id) + 40)
ColorChat(id,NORMAL,"^4[Jailbreak]:^1 ^3HP SHOP^1'tan ^4+40 HP^1 Aldin.")
}
}
case 5: {
if(para >= 10) {
jb_set_user_packs(id, para - 10)
set_user_health(id, get_user_health(id) + 50)
ColorChat(id,NORMAL,"^4[Jailbreak]:^1 ^3HP SHOP^1'tan ^4+50 HP^1 Aldin.")
}
}
case 6: {
if(para >= 12) {
jb_set_user_packs(id, para - 12)
set_user_health(id, get_user_health(id) + 60)
ColorChat(id,NORMAL,"^4[Jailbreak]:^1 ^3HP SHOP^1'tan ^4+60 HP^1 Aldin.")
}
}
case 7: {
if(para >= 14) {
jb_set_user_packs(id, para - 14)
set_user_health(id, get_user_health(id) + 70)
ColorChat(id,NORMAL,"^4[Jailbreak]:^1 ^3HP SHOP^1'tan ^4+70 HP^1 Aldin.")
}
}
}
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/