Oyuncu Say'a /ts3indir Yazınca Menu Açılır Kendi Bit'ine Uygun Olanı Dowloand Eder..
İyi Forumlar!
PHP- Kodu:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "ts3indir"
#define VERSION "1.0"
#define AUTHOR "Tifarg"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ts3indir","Ts3menu")
}
public Ts3menu(id){
new menu = menu_create("\r[\yTeamSpeak\w3\r]\w-\r[\yMenu\r]", "tmenu")
menu_additem(menu, "\y TeamSpeak3 \r[\windir\r] \r[\d32bit\r]", "1", 0);
menu_additem(menu, "\y TeamSpeak3 \r[\windir\r] \r[\d64bit\r]", "2", 0);
menu_additem(menu, "\r [\wGeri\r]", "4", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}
public tmenu(id, menu, item){
if( item == MENU_EXIT ){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key){
case 1: {
////////TS3 Indir////////32Bit////////
Ts3menu(id)
show_motd(id,"https://www.gezginler.net/indir/i/8889/","Hosgeldiniz")
}
case 2: {
Ts3menu(id)
////////TS3 Indir////////64Bit////////
show_motd(id,"https://www.gezginler.net/indir/i/8889/x64/","Hosgeldiniz")
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}