hayır, ne alaka ?
Vipmenü'ye #define ADMIN_LEVEL_Q ADMIN_RCON eklersek rcon menüsü mü olur?
ÖRNEK BİR YER VEREYİM BAŞINDAN:
#include <amxmodx>#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <fun>
#include <hamsandwich>
#define PLUGIN "VipMenu"
#define VERSION "1.0"
#define AUTHOR "Optimist"
#define ADMIN_LEVEL_Q ADMIN_RCON
new const PREFIX[] = {
"!g[!tL Menu!g] !n"
};
const WEAPONS_BITSUM = (1<<CSW_KNIFE|1<<CSW_HEGRENADE|1<<CSW_FLASHBANG|1< <CSW_SMOKEGRENADE|1<<CSW_C4);
#if cellbits == 32
const OFFSET_CLIPAMMO = 51 ;
#else
const OFFSET_CLIPAMMO = 65 ;
#endif
new ananzaaxd[33];
new Float:cok_hizli = 600.0;
new Float:normal_hizli = 250.0;
new Float: cl_pushangle[33][3];
new sinirsizmermi[33],
health,
g_max_clients,
menukullanim[33],
hizver2[33],
mermisekmeme[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /lmenu","VmenuKomut")
register_event("HLTV", "YeniTur", "a", "1=0", "2=0");
g_max_clients = get_maxplayers();
}
public VmenuKomut(id) {
if(get_user_flags(id) & ADMIN_IMMUNITY && !(menukullanim[id]) && get_user_team(id) == 2){
VipMenu(id);
}
else if(menukullanim[id]){
client_printc(id, "%s Zaten !gYRD-CPT Shop!nu daha once kullandiniz. Lutfen yeni turu bekleyin...", PREFIX);
}
else if(get_user_team(id) == 1){
VipMenuT(id);
}
else{
client_printc(id, "%s !gYRD-CPT Shop!nu kullanabilmeniz icin !gYRD veya CPT!n olmaniz gerekir.", PREFIX);
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
Konu Dexterz tarafından (15-01-14 Saat 00:54 ) değiştirilmiştir.
hayır, ne alaka ?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
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/
Eğer şöyle yaparsan RCON'a bağlaman daha basit olabilir ,
bknz:
yerine:PHP- Kodu:
if(get_user_flags(id) & ADMIN_IMMUNITY && !(menukullanim[id]) && get_user_team(id) == 2){
yaparsan daha iyi olur.PHP- Kodu:
if(get_user_flags(id) & ADMIN_RCON && !(menukullanim[id]) && get_user_team(id) == 2) {
Yani ;
fakat bu plug-ın tam değil sanırım ?PHP- Kodu:
#include <amxmodx>#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <fun>
#include <hamsandwich>
#define PLUGIN "VipMenu"
#define VERSION "1.0"
#define AUTHOR "Optimist"
#define ADMIN_LEVEL_Q ADMIN_RCON
new const PREFIX[] = {
"!g[!tL Menu!g] !n"
};
const WEAPONS_BITSUM = (1<<CSW_KNIFE|1<<CSW_HEGRENADE|1<<CSW_FLASHBANG|1< <CSW_SMOKEGRENADE|1<<CSW_C4);
#if cellbits == 32
const OFFSET_CLIPAMMO = 51 ;
#else
const OFFSET_CLIPAMMO = 65 ;
#endif
new ananzaaxd[33];
new Float:cok_hizli = 600.0;
new Float:normal_hizli = 250.0;
new Float: cl_pushangle[33][3];
new sinirsizmermi[33],
health,
g_max_clients,
menukullanim[33],
hizver2[33],
mermisekmeme[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /lmenu","VmenuKomut")
register_event("HLTV", "YeniTur", "a", "1=0", "2=0");
g_max_clients = get_maxplayers();
}
public VmenuKomut(id) {
if(get_user_flags(id) & ADMIN_RCON && !(menukullanim[id]) && get_user_team(id) == 2){
VipMenu(id);
}
else if(menukullanim[id]){
client_printc(id, "%s Zaten !gYRD-CPT Shop!nu daha once kullandiniz. Lutfen yeni turu bekleyin...", PREFIX);
}
else if(get_user_team(id) == 1){
VipMenuT(id);
}
else{
client_printc(id, "%s !gYRD-CPT Shop!nu kullanabilmeniz icin !gYRD veya CPT!n olmaniz gerekir.", PREFIX);
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
- - - - - - - - - -
Demek istediğinden çıkardığım tek şey menüyü rcon yetkisinemi bağlayabilirizdi ?
Anlatamıyorsan yaz, Yazamıyorsan anlat. Her ikisini de beceremiyorsan sadece sus.
Hedef büyük , hayırlısıyla.PHP- Kodu:
chat_color(id,SKYPE," kApO.1905 " )
chat_color(id,HOTMAIL,"
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
" )
chat_color(id,STEAM," herge1 " )
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Tam kodları vermedim bunu ADMIN_RCON yani yrd-cpt hariç kullanılmasını engllermisiniz
Konu Dexterz tarafından (15-01-14 Saat 03:15 ) değiştirilmiştir.
Al bakalım ;
Anlatamıyorsan yaz, Yazamıyorsan anlat. Her ikisini de beceremiyorsan sadece sus.
Hedef büyük , hayırlısıyla.PHP- Kodu:
chat_color(id,SKYPE," kApO.1905 " )
chat_color(id,HOTMAIL,"
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
" )
chat_color(id,STEAM," herge1 " )
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.