#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;
}