PHP Kod:
public login_menusu(id)
{
if(!is_user_connected(id) || !is_user_alive(id)) return PLUGIN_HANDLED
static Item[64]
formatex(Item, charsmax(Item),"\y[- \w[- OrjinalMix -] \y-] \d# \yHesap Sistemi")
new Menu = menu_create(Item, "login_devam")
if(equal(username[id],""))
{
formatex(Item, charsmax(Item),"Giris Yap")
menu_additem(Menu, Item, "1")
formatex(Item, charsmax(Item),"Kayit Ol")
menu_additem(Menu, Item, "2")
}
else
{
formatex(Item, charsmax(Item),"Hesap Adi [%s]", username[id])
menu_additem(Menu, Item, "3")
formatex(Item, charsmax(Item),"Hesap Sifresi [%s]", password[id][id])
menu_additem(Menu, Item, "4")
formatex(Item, charsmax(Item),"Cikis Yap")
menu_additem(Menu, Item, "5")
}
if(get_user_flags(id) & ADMIN_BAN)
{
formatex(Item, charsmax(Item),"Hesaplara Bak")
menu_additem(Menu, Item, "7",ADMIN_BAN)
}
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, Menu)
return PLUGIN_HANDLED
}
public login_devam(id,menu,item)
{
if(!is_user_connected(id) || !is_user_alive(id)) return PLUGIN_HANDLED
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new acces,data2[24],iname[64],callback,data
menu_item_getinfo(menu,item,acces,data2,23,iname,63,callback)
data = str_to_num(data2)
switch(data)
{
case 1:
{
client_cmd(id,"messagemode Hesap_Ismi")
}
case 2:
{
client_cmd(id,"messagemode Hesap_Ismi_Secin")
}
case 3:
{
//
}
case 4:
{
//
}
case 5:
{
copy(username[id],199,"")
copy(password[id],199,"")
copy(berk_shop_secenek1[id],199,"")
copy(berk_shop_secenek2[id],199,"")
copy(berk_shop_secenek3[id],199,"")
copy(berk_shop_secenek4[id],199,"")
copy(berk_shop_secenek5[id],199,"")
copy(berk_shop_secenek6[id],199,"")
copy(berk_shop_secenek7[id],199,"")
copy(berk_shop_secenek8[id],199,"")
copy(g_jbpacks[id],199,"")
copy(kredi[id],199,"")
client_print(id,print_center,"Cikis yaptiniz..")
}
case 7:
{
if((get_user_flags(id) & ADMIN_BAN))
{
new message[899],len;
len = formatex(message,898,"<body bgcolor=black><b>");
for(new i = 1; i < 33; i++)
{
if(is_user_connected(i))
{
new iName[64]
get_user_name(i,iName,63)
if(!equal(username[i],""))
{
len += formatex(message[len],898-len,"<font color=red>%s</font><font color=white> (Nick %s) - Hesap Adi= %s </font>",iName,username[i]);
}
else
{
len += formatex(message[len],898-len,"<font color=red>%s</font><font color=white> (Nick %s) - Hesap Adi= %s </font>",iName,username[i]);
}
}
}
show_motd(id,message," - Admin Takip Paneli - ");
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public Giris_ID(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(equal(say, "") || !equal(username[id],"") || strlen(say) > 12)
{
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
return PLUGIN_HANDLED
}
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
copy(g_username[id],199,say)
client_cmd(id,"messagemode Sifreniz")
return PLUGIN_CONTINUE
}
public Giris_Pw(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(equal(say, "") || !equal(username[id],"") || equal(g_username[id],"") || strlen(say) > 12)
{
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
return PLUGIN_HANDLED
}
copy(g_password[id],199,say)
giris_yap(id,g_username[id], g_password[id])
copy(g_password[id],199,"")
copy(g_username[id],199,"")
copy(k_password[id],199,"")
copy(k_username[id],199,"")
return PLUGIN_CONTINUE
}
/////////////////////////
////#Kayit Islemleri#////
/////////////////////////
public Kayit_ID(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(equal(say, "") || !equal(username[id],"") || strlen(say) > 12)
{
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
return PLUGIN_HANDLED
}
copy(k_password[id],199,"")
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,say)
client_cmd(id,"messagemode Sifre_Secin")
return PLUGIN_CONTINUE
}
public Kayit_Pw(id)
{
new say[300]
read_args(say, charsmax(say))
remove_quotes(say)
if(equal(say, "") || !equal(username[id],"") || equal(k_username[id],"") || strlen(say) > 12)
{
copy(g_username[id],199,"")
copy(g_password[id],199,"")
copy(k_username[id],199,"")
copy(k_password[id],199,"")
return PLUGIN_HANDLED
}
copy(k_password[id],199,say)
kayit_yap(id,k_username[id], k_password[id])
copy(g_password[id],199,"")
copy(g_username[id],199,"")
copy(k_password[id],199,"")
copy(k_username[id],199,"")
return PLUGIN_CONTINUE
}
///////////////////////////
///////////////////////////
public giris_yap(id,userid[],psw[])
{
if(!is_user_connected(id) || equal(userid,"") || equal(psw,"") || !equal(username[id],""))
return PLUGIN_HANDLED
new getPw[32], IDFormat[64]
formatex(IDFormat,63,"%s-ID",userid)
nvault_get(anavault,IDFormat,getPw,31)
if(equali(psw,getPw))
{
copy(username[id],199,userid)
copy(password[id],199,psw)
copy(berk_shop_secenek1[id],199,"")
copy(berk_shop_secenek2[id],199,"")
copy(berk_shop_secenek3[id],199,"")
copy(berk_shop_secenek4[id],199,"")
copy(berk_shop_secenek5[id],199,"")
copy(berk_shop_secenek6[id],199,"")
copy(berk_shop_secenek7[id],199,"")
copy(berk_shop_secenek8[id],199,"")
copy(g_jbpacks[id],199,"")
copy(kredi[id],199,"")
nesnegiris2(id)
client_print(id,print_chat,"Hesabiniza basariyla giris yapildi.")
}
else
{
client_print(id,print_center,"Yanlis hesap ismi veya sifre !")
}
return PLUGIN_HANDLED
}
public nesnegiris2(id) {
nesnegiris[id] = 1
renkli_yazi(id, "!t[!g %s !t]!g Nesne Giris Sistemi == !tAktif",TAG)
}
public kayit_yap(id,userid[],psw[])
{
if(!is_user_connected(id) || equal(userid,"") || equal(psw,"") || !equal(username[id],""))
return PLUGIN_HANDLED
new getPw[32], IDFormat[64]
formatex(IDFormat,63,"%s-ID",userid)
nvault_get(anavault,IDFormat,getPw,31)
if(equali(getPw,""))
{
copy(username[id],199,userid)
copy(password[id],199,psw)
new berk_shop_secenek1[64], berk_shop_secenek2[64], berk_shop_secenek3[64], berk_shop_secenek4[64], berk_shop_secenek5[64], berk_shop_secenek6[64], berk_shop_secenek7[64], berk_shop_secenek8[64], g_jbpacks[64], kredi[64], hesapKey[64]
formatex(hesapKey,63,"%s-ID",userid)
formatex(berk_shop_secenek1,63,"%s-berk_shop_secenek1",userid)
formatex(berk_shop_secenek2,63,"%s-berk_shop_secenek2",userid)
formatex(berk_shop_secenek3,63,"%s-berk_shop_secenek3",userid)
formatex(berk_shop_secenek4,63,"%s-berk_shop_secenek4",userid)
formatex(berk_shop_secenek5,63,"%s-berk_shop_secenek5",userid)
formatex(berk_shop_secenek6,63,"%s-berk_shop_secenek6",userid)
formatex(berk_shop_secenek7,63,"%s-berk_shop_secenek7",userid)
formatex(berk_shop_secenek8,63,"%s-berk_shop_secenek8",userid)
formatex(g_jbpacks,63,"%s-g_jbpacks",userid)
formatex(kredi,63,"%s-kredi",userid)
nvault_set(anavault,hesapKey,psw)
nvault_set(anavault,berk_shop_secenek1,"0")
nvault_set(anavault,berk_shop_secenek2,"0")
nvault_set(anavault,berk_shop_secenek3,"0")
nvault_set(anavault,berk_shop_secenek4,"0")
nvault_set(anavault,berk_shop_secenek5,"0")
nvault_set(anavault,berk_shop_secenek6,"0")
nvault_set(anavault,berk_shop_secenek7,"0")
nvault_set(anavault,berk_shop_secenek8,"0")
nvault_set(anavault,g_jbpacks,"0")
nvault_set(anavault,kredi,"0")
client_print(id,print_chat,"Hesabinizi kaydettik.Islemler icin ^"/banka^" yazin..")
client_print(id,print_chat,"Hesap adi = %s Sifreniz = %s",userid,psw)
}
else
{
client_print(id,print_center,"Bu hesap zaten kayitlarda var..")
}
return PLUGIN_HANDLED
}
Giris Yapinca JB,KREDİ,Secenklerin Değeri 0 Oluyor Yani Yine Bir Sorun Var Bakacak Yakişikli Varmi