•  
     

Rank GuruQA.com 1.0 Alfa 6 - AMXX

Rank Multiserver para Conuter-Strike 1.6

Plugin em construção!


Removi:
Escudo + Faca + Saúde 1000
Velocidade + Pistolas
Faca + 20 Flash
Invisibilidade + Faca
30 Granadas
Escudo + 20 Granadas

Adicionei /vip para o VIP:
- Escudo + Faca + Saúde 1000
- Velocidade + Pistolas
- Faca + 20 Flash
- Invisibilidade + Faca
- 30 Granadas
- Escudo + 20 Granadas


Ajeitei o bug do /voto negativo
Matar o VIP ganha 5 pontos
VIP perde 5 pontos


Comandos:

/admin
/supremo
/master
/guru
/vip
/voto
/server
/rank
/top50
/topkills
/topdeaths
/tophs
/topvote
/topround
/stats
/rankstats
/me


Poderes:

AK47 + AWP + M4A1 + Pistolas + Grenadas
Deagle + Escudo + Granadas
Invisibilidade + Faca
Velocidade + Faca
Faca + Saúde 500 + Colete 500
30 Granadas
TMP + Pistolas + Super pulo + Granadas
12 + Munição infinita + Granadas
G3SG1 + Scout + Granadas
MP5 Navy + Munição infinita + Granadas

Brilho:
Branco
Vermelho
Laranja
Amarelo
Verde
Azul claro
Azul
Rosa

AK47 + M4A1 + Galil + Pistolas + Granadas
AWP + Scout + G3SGL + SG550 + Granadas
M4A1 + Munição infinita + Granadas
M249 + Munição infinita + Granadas
G3SG1 + Munição infinita + Granadas
SG550 + Munição infinita + Granadas
Velocidade + Super pulo + Faca
AK47 + AWP + M4A1 + Pistolas + 5 Granadas + 5 Flash
Escudo + Faca + Saúde 1000
Velocidade + Scout
Velocidade + Pistolas
Faca + 30 Flash
Escudo + 30 Granadas
Relâmpago
Explosão

Top Round = ganhou 5 Pontos!
Voto positivo = ganhou 10 Pontos!
Voto negativo = perdeu 10 pontos!

Matar o VIP Ganha 5 pontos!
VIP perde 5 pontos


rank_guruqa.sma

Código: Selecionar todos


#include amxmodx
#include cstrike
#include engine
#include fakemeta
#include fun
#include sqlx
#include hamsandwich
#include hlsdk_const
#define DMG_GRENADE (1<<24)

new Handle:sql;
new Trie:g_tServers;
new Float:roundtime;
new hadmin,hvote,htopround,hrank,Kills[33],Headshots[33];
new white;
new lightning;
new g_sModelIndexSmoke;
new menu_g[128];
public plugin_precache(){
g_sModelIndexSmoke = precache_model("sprites/steam1.spr");
lightning = precache_model("sprites/lgtning.spr");
white = precache_model("sprites/white.spr");
precache_sound("ambience/thunder_clap.wav");
precache_sound("weapons/explode3.wav");
}

public plugin_init(){
register_plugin("Rank GuruQA.com","1.0 Alfa 6","Anderson");
new host[]=""; 
new user[]=""; 
new pass[]="";
new db[]="";
sql=SQL_MakeDbTuple(host,user,pass,db);
SQL_SetCharset(sql,"utf8");
SQL_SetAffinity("mysql");
register_dictionary("guruqa_rank.txt");
register_message(get_user_msgid("DeathMsg"),"adddb");
RegisterHam(Ham_Spawn,"player","weaponroundstart",true);
register_event("HLTV","OnHltv","a","1=0","2=0");
register_logevent("toproundadddb",2,"1=Round_End");
register_event("DeathMsg","OnDeathMsg","a");
register_event("DeathMsg","OnRoundEnd","a");
RegisterHam(Ham_TakeDamage,"player","HE",false);
register_clcmd("say /admin","menu_admin");
register_clcmd("say_team /admin","menu_admin");
register_clcmd("say /supreme","menu_supreme");
register_clcmd("say_team /supreme","menu_supreme");
register_clcmd("say /supremo","menu_supreme");
register_clcmd("say_team /supremo","menu_supreme");
register_clcmd("say /master","menu_guru");
register_clcmd("say_team /master","menu_guru");
register_clcmd("say /mestre","menu_guru");
register_clcmd("say_team /mestre","menu_guru");
register_clcmd("say /guru","menu_guru");
register_clcmd("say_team /guru","menu_guru");
register_clcmd("say /vip","menu_vip");
register_clcmd("say_team /vip","menu_vip");
register_clcmd("say /vote","reputation_menu");
register_clcmd("say_team /vote","reputation_menu");
register_clcmd("say /voto","reputation_menu");
register_clcmd("say_team /voto","reputation_menu");
register_clcmd("say /server","display_server");
register_clcmd("say_team /server","display_server");
register_clcmd("say /servers","display_server");
register_clcmd("say_team /servers","display_server");
register_clcmd("say /rank","display_rank");
register_clcmd("say_team /rank","display_rank");
register_clcmd("say /top15","display_top50");
register_clcmd("say_team /top15","display_top50");
register_clcmd("say /top50","display_top50");
register_clcmd("say_team /top50","display_top50");
register_clcmd("say /topkills","display_topkills");
register_clcmd("say_team /topkills","display_topkills");
register_clcmd("say /topdeaths","display_topdeaths");
register_clcmd("say_team /topdeaths","display_topdeaths");
register_clcmd("say /tophs","display_tophs");
register_clcmd("say_team /tophs","display_tophs");
register_clcmd("say /topvote","display_topvote");
register_clcmd("say_team /topvote","display_topvote");
register_clcmd("say /topround","display_topround");
register_clcmd("say_team /topround","display_topround");
register_clcmd("say /stats","display_stats");
register_clcmd("say_team /stats","display_stats");
register_clcmd("say /rankstats","display_stats");
register_clcmd("say /rankstats","display_stats");
register_clcmd("say_team /rankstats","display_stats");
register_clcmd("say /me","display_stats");
register_clcmd("say_team /me","display_stats");
set_msg_block(get_user_msgid("HudTextArgs"),BLOCK_SET);
hadmin=CreateHudSyncObj();
hvote=CreateHudSyncObj();
hrank=CreateHudSyncObj();
htopround=CreateHudSyncObj();
register_srvcmd("amx_redirect","display_redirect",ADMIN_RCON,"< IP >");
register_touch("weaponbox","player","blockweapons");
register_touch("armoury_entity","player","blockweapons");
register_touch("weapon_shield","player","blockweapons");
RegisterHam(Ham_AddPlayerItem,"player","resetweapons");
register_event("SendAudio", "end_round", "a", "2=%!MRAD_terwin", "2=%!MRAD_ctwin", "2=%!MRAD_rounddraw");
//register_cvar("amx_weapons_admin","1");
}
public plugin_end(){
SQL_FreeHandle(sql);
}

public weaponroundstart(id){
if(is_user_alive(id)){
cs_set_user_money(id,16000);
}
return PLUGIN_HANDLED;
}


public blockweapons(Entity,id){
if(is_user_alive(id)){
new Float:invisibility;
new Float:maxspeed = get_user_maxspeed(id);
pev(id,pev_rendermode,invisibility);
if(get_user_health(id) > 100 || get_user_armor(id) > 100 || invisibility == kRenderTransAlpha || cs_get_user_bpammo(id,CSW_HEGRENADE) > 2 || get_user_gravity(id) == 0.3 || maxspeed == 500){
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE;	
}

public resetweapons(id){
if(is_user_alive(id)){
new Float:invisibility;
pev(id,pev_rendermode,invisibility);
if(get_user_health(id) > 100 || get_user_armor(id) > 100){
strip_user_weapons(id);
set_user_health(id,100);
set_user_armor(id,100);
give_item(id,"weapon_knife");
}else if(invisibility == kRenderTransAlpha){
set_user_rendering(id);
}else if(cs_get_user_bpammo(id,CSW_HEGRENADE) > 2){
strip_user_weapons(id);
give_item(id,"weapon_knife");
}
}
return PLUGIN_HANDLED;
}


public HE(id,iInflictor,iAttacker,Float:flDamage,bitsDamageType){ 
if(bitsDamageType & DMG_GRENADE){ 
SetHamParamInteger(5,DMG_GRENADE | DMG_ALWAYSGIB);
}
return PLUGIN_HANDLED; 
}

public menu_admin(id){
new menu=menu_create("\rAdmin \wGuruQA.com\r","m_admin");
if(get_user_flags(id) & ADMIN_RESERVATION){
formatex(menu_g,charsmax(menu_g),"%L",id,"AK47AWPMPG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"DSG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"KHK");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"12IG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"G3SG1SG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"MNIG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"GLOW");
menu_additem(menu,menu_g);
menu_additem(menu,"amx_slapmenu");
menu_additem(menu,"amx_teammenu");
menu_additem(menu,"amx_votemapmenu");
menu_additem(menu,"amx_mapmenu");
menu_additem(menu,"amx_kickmenu");
menu_additem(menu,"amx_banmenu");
formatex(menu_g,charsmax(menu_g),"%L",id,"SERVERS");
menu_additem(menu,menu_g);
}else{
formatex(menu_g,charsmax(menu_g),"%L",id,"ATIVAR_ADMIN");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"ADD_ADMIN");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"AK47AWPMPG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"DSG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"KHK");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"12IG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"G3SG1SG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"MNIG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"GLOW");
menu_additem(menu,menu_g);
menu_additem(menu,"\damx_slapmenu");
menu_additem(menu,"\damx_teammenu");
menu_additem(menu,"\damx_votemapmenu");
menu_additem(menu,"\damx_mapmenu");
menu_additem(menu,"\damx_kickmenu");
menu_additem(menu,"\damx_banmenu");
formatex(menu_g,charsmax(menu_g),"%L",id,"SERVERS");
menu_additem(menu,menu_g);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}

public m_admin(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
if(get_user_flags(id) & ADMIN_RESERVATION){
switch(item){
case 0:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_ak47");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_awp");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"weapon_m4a1");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"weapon_deagle");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"weapon_elite");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
engclient_cmd(id,"weapon_ak47");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"AK47AWPMPG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 1: 
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_deagle");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"weapon_shield");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
engclient_cmd(id,"weapon_deagle");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"DSG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"item_thighpack");
set_user_health(id,500);
set_user_armor(id,500);
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"KHK");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 3:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_weapon_ammo(give_item(id,"weapon_xm1014"),994);
cs_set_user_bpammo(id,CSW_XM1014,250);
engclient_cmd(id,"weapon_xm1014");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"12IG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 4:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_g3sg1");
give_item(id,"weapon_scout");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
engclient_cmd(id,"weapon_g3sg1");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"G3SG1SG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 5:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_weapon_ammo(give_item(id,"weapon_mp5navy"),994);
cs_set_user_bpammo(id,CSW_MP5NAVY,250);
engclient_cmd(id,"weapon_mp5navy");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"MNIG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 6:
{
display_glow(id);
}
case 7:
{
client_cmd(id,"amx_slapmenu");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 8:
{
client_cmd(id,"amx_teammenu");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 9:
{
client_cmd(id,"amx_votemapmenu");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 10:
{
client_cmd(id,"amx_mapmenu");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 11:
{
client_cmd(id,"amx_kickmenu");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 12:
{
client_cmd(id,"amx_banmenu");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 13:
{
display_server(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
}else{
switch(item){
case 0:
{
display_admin(id);
menu_destroy(menu);
return PLUGIN_HANDLED;	
}
case 1:
{
new name[32];
get_user_name(id,name,31);
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
ShowSyncHudMsg(id,hadmin,"%s - %L",name,id,"SITE_ADMIN");
client_print(id,print_console,"%L",id,"SITE_ADMIN");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2 .. 14:
{
menu_destroy(menu);
return PLUGIN_HANDLED;	
}
case 15:
{
display_server(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}	
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}

public display_glow(id){
new menu=menu_create("\rGlow \wGuruQA.com\r","menu_glow");
formatex(menu_g,charsmax(menu_g),"%L",id,"WHITE");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"RED");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"ORANGE");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"YELLOW");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"GREEN");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"LIGHT_BLUE");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BLUE");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"ROSE");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"REMOVE_GLOW");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public menu_glow(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31); 
if(is_user_alive(id)){
switch(item){ 
case 0: 
{
set_hudmessage(192,192,192,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"WHITE");
set_user_rendering(id,kRenderFxGlowShell,192,192,192,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 1: 
{
set_hudmessage(255,0,0,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"RED");
set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2: 
{
set_hudmessage(255,140,0,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"ORANGE"); 
set_user_rendering(id,kRenderFxGlowShell,255,140,0,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 3: 
{
set_hudmessage(255,255,0,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"YELLOW");
set_user_rendering(id,kRenderFxGlowShell,255,255,0,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 4:
{
set_hudmessage(0,255,0,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"GREEN");
set_user_rendering(id,kRenderFxGlowShell,0,255,0,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
} 
case 5: 
{
set_hudmessage(0,255,255,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"LIGHT_BLUE");
set_user_rendering(id,kRenderFxGlowShell,0,255,255,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
} 
case 6: 
{
set_hudmessage(0,0,255,0.02,0.73,0,6.0,8.0,0.1,0.2,4);	
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"ROSE");
set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 7: 
{
set_hudmessage(255,0,255,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"WHITE"); 
set_user_rendering(id,kRenderFxGlowShell,255,0,255,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 8: 
{
set_hudmessage(0,0,0,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hadmin,"%s %L",name,id,"REMOVE_GLOW");
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}


public menu_supreme(id){
formatex(menu_g,charsmax(menu_g),"\r%L \wGuruQA.com\r",id,"SUPREMO");
new menu=menu_create(menu_g,"m_supreme");
if(get_user_flags(id) & ADMIN_BAN){
formatex(menu_g,charsmax(menu_g),"%L",id,"AMGPG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"ASGSG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"M4IAG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"M2IG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"GIG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"SG550IG");
menu_additem(menu,menu_g);
menu_additem(menu,"sv_restart 5");
if(get_cvar_num("sv_voiceenable")==0){
menu_additem(menu,"sv_voiceenable OFF","1",0); 
}else{
menu_additem(menu,"sv_voiceenable ON","0",0);
}
if(get_cvar_num("sv_alltalk")==0){
menu_additem(menu,"sv_alltalk OFF","1",0); 
}else{
menu_additem(menu,"sv_alltalk ON","0",0);
}
if(get_cvar_num("mp_autokick")==0){
menu_additem(menu,"mp_autokick OFF","1",0); 
}else{
menu_additem(menu,"mp_autokick ON","0",0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"REMOVE_WEAPONS");
menu_additem(menu,menu_g);
menu_additem(menu,"Slap Admin");
menu_additem(menu,"Slay Admin");
menu_additem(menu,"Kick Admin");
menu_additem(menu,"Restart Server");
}else{
formatex(menu_g,charsmax(menu_g),"%L",id,"ESUPREME");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"ADD_SUPREME");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"AMGPG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"ASGSG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"M4IAG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"M2IG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"GIG");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"SG550IG");
menu_additem(menu,menu_g);
menu_additem(menu,"\dsv_restart 5");
menu_additem(menu,"\dsv_voiceenable");
menu_additem(menu,"\dsv_alltalk"); 
menu_additem(menu,"\dmp_autokick"); 
formatex(menu_g,charsmax(menu_g),"\d%L",id,"REMOVE_WEAPONS");
menu_additem(menu,menu_g);
menu_additem(menu,"\dSlap Admin");
menu_additem(menu,"\dSlay Admin");
menu_additem(menu,"\dKick Admin");
menu_additem(menu,"\dRestart Server");
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public m_supreme(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
if(get_user_flags(id) & ADMIN_BAN){
switch(item){
case 0:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_ak47");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_m4a1");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"weapon_galil");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"weapon_deagle");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"weapon_elite");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
engclient_cmd(id,"weapon_ak47");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"AMGPG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 1: 
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_awp");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"weapon_scout");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_g3sg1");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_sg550");
give_item(id,"ammo_556nato"); 
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");  
give_item(id,"weapon_deagle");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
engclient_cmd(id,"weapon_awp");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"ASGSG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2: 
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_weapon_ammo(give_item(id,"weapon_m4a1"),994);
cs_set_user_bpammo(id,CSW_M4A1,250);
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"M4IAG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 3:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_weapon_ammo(give_item(id,"weapon_m249"),994);
cs_set_user_bpammo(id,CSW_M249,250);
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"M2IG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 4:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_weapon_ammo(give_item(id,"weapon_g3sg1"),994);
cs_set_user_bpammo(id,CSW_G3SG1,250);
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"GIG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 5:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_weapon_ammo(give_item(id,"weapon_sg550"),994);
cs_set_user_bpammo(id,CSW_SG550,250);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"SG550IG");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 6: 
{
server_cmd("sv_restart 5");
client_print(id,print_chat,"%s %L",name,id,"RESTART_ROUND");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 7:
{
set_cvar_num("sv_voiceenable",get_cvar_num("sv_voiceenable")?0:1);
if(get_cvar_num("sv_voiceenable")==0){
ShowSyncHudMsg(0,hadmin,"%s - %L sv_voiceenable",name,id,"DISABLED");
}else{
ShowSyncHudMsg(0,hadmin,"%s - %L sv_voiceenable",name,id,"ACTIVATED");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 8:
{
set_cvar_num("sv_alltalk",get_cvar_num("sv_alltalk")?0:1);
if(get_cvar_num("sv_alltalk")==0){
ShowSyncHudMsg(0,hadmin,"%s - %L sv_alltalk",name,id,"DISABLED");
}else{
ShowSyncHudMsg(0,hadmin,"%s - %L sv_alltalk",name,id,"ACTIVATED");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 9:
{
set_cvar_num ("mp_autokick",get_cvar_num("mp_autokick")?0:1);
if(get_cvar_num("mp_autokick")==0){
ShowSyncHudMsg(0,hadmin,"%s - %L mp_autokick",name,id,"DISABLED");
}else{
ShowSyncHudMsg(0,hadmin,"%s - %L mp_autokick",name,id,"ACTIVATED");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 10:
{
supreme_remove_weapon(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 11:
{
supreme_slap(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 12: 
{
supreme_slay(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 13:
{
supreme_kick(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 14: 
{
server_cmd("restart");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
}else{	
switch(item){
case 0:
{
display_admin(id);
menu_destroy(menu);
return PLUGIN_HANDLED;		
}
case 1:
{
new name[32];
get_user_name(id,name,31);
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
ShowSyncHudMsg(id,hadmin,"%s - %L",name,id,"SITE_ADMIN");
client_print(id,print_console,"%L",id,"SITE_ADMIN");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2 .. 14:
{
menu_destroy(menu);
return PLUGIN_HANDLED;	
}	
}	
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}

public menu_guru(id){
formatex(menu_g,charsmax(menu_g),"\r%L \wGuruQA.com\r",id,"MASTER_GURU");
new menu=menu_create(menu_g,"m_guru");
if(get_user_flags(id) & ADMIN_BAN && get_user_flags(id) & ADMIN_BAN_TEMP){
formatex(menu_g,charsmax(menu_g),"%L",id,"ALLWEAPONS");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"AAMP5F");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"LIGHTNING");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXPLOSION");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BAN_ADMIN_SUPREME");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"REMOVE_ALL_BANS");
menu_additem(menu,menu_g);
}else{
formatex(menu_g,charsmax(menu_g),"%L",id,"ATIVAR_GURU");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"ADD_GURU");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"ALLWEAPONS");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"AAMP5F");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"LIGHTNING");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"EXPLOSION");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"BAN_ADMIN_SUPREME");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"REMOVE_ALL_BANS");
menu_additem(menu,menu_g);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public m_guru(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
if(get_user_flags(id) & ADMIN_BAN && get_user_flags(id) & ADMIN_BAN_TEMP){
switch(item){
case 0:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){	
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_ak47");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_awp");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"weapon_m4a1");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"weapon_galil");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"weapon_scout");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_g3sg1");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_sg550");
give_item(id,"ammo_556nato"); 
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"weapon_m249");
cs_set_user_bpammo(id,CSW_M249,200);
give_item(id,"weapon_deagle");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"weapon_elite");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_usp");
cs_set_user_bpammo(id,CSW_USP,200);
give_item(id,"weapon_p228");
give_item(id,"ammo_357sig");
give_item(id,"ammo_357sig");
give_item(id,"ammo_357sig");
give_item(id,"ammo_357sig");
give_item(id,"weapon_fiveseven");
give_item(id,"ammo_57mm");
give_item(id,"ammo_57mm");
give_item(id,"ammo_57mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
engclient_cmd(id,"weapon_ak47");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"ALLWEAPONS");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 1:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_ak47");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"ammo_762nato");
give_item(id,"weapon_awp");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"weapon_m4a1");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"ammo_556nato");
give_item(id,"weapon_deagle");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"ammo_50ae");
give_item(id,"weapon_elite");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_user_bpammo(id,CSW_FLASHBANG,5);
cs_set_user_bpammo(id,CSW_HEGRENADE,5);
engclient_cmd(id,"weapon_ak47");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"AAMP5F");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2:
{
guru_ray(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 3:
{
guru_explosion(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}	
case 4:
{
guru_ban(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 5:
{
unbanall(id);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
}else{	
switch(item){
case 0:
{
display_admin(id);
menu_destroy(menu);
return PLUGIN_HANDLED;		
}
case 1:
{
new name[32];
get_user_name(id,name,31);
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
ShowSyncHudMsg(id,hadmin,"%s - %L",name,id,"SITE_ADMIN");
client_print(id,print_console,"%L",id,"SITE_ADMIN");
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2 .. 5:
{
menu_destroy(menu);
return PLUGIN_HANDLED;	
}	
}	
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}



public guru_ray(id){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
new menu=menu_create("\rGuru \wGuruQA.com\r","guru_ray_player");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public guru_ray_player(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name_s[32],name[32],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
new origin[3],srco[3];
get_user_origin(ids,origin);
origin[2] -= 26;
srco[0]=origin[0]+150;
srco[1]=origin[1]+150;
srco[2]=origin[2]+800;
slay_lightning(srco,origin);
client_cmd(0,"spk ambience/thunder_clap.wav");
user_kill(ids,1);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(0,hadmin,"%s %L %s!",name,id,"KILLED",name_s);
menu_destroy(menu);
return PLUGIN_HANDLED;
}

public end_round(){
new parm[32];
new len = read_data(2,parm,charsmax(parm));
set_task(0.1,"slay_those_losers",2,parm,len + 1);
}
public slay_those_losers(parm[],effects){
new origin[3],srco[3];
new player[32],playersnum;
new id;
get_players(player,playersnum,"ea",(parm[7] == 't') ? "CT":"TERRORIST");
for(new i=0;i < playersnum;++i){
id = player[i];
if(effects){
get_user_origin(id,origin)
origin[2] -= 26;
srco[0]=origin[0]+150;
srco[1]=origin[1]+150;
srco[2]=origin[2]+800;
slay_lightning(srco,origin);
client_cmd(id,"spk ambience/thunder_clap.wav");
}
user_kill(id, 1)
}
}

slay_lightning(vec1[3],vec2[3]){
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(TE_BEAMPOINTS);
write_coord(vec1[0]);
write_coord(vec1[1]);
write_coord(vec1[2]);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(lightning);
write_byte(1);
write_byte(5);
write_byte(2);
write_byte(20);
write_byte(30);
write_byte(200); // r, g, b
write_byte(200); // r, g, b
write_byte(200); // r, g, b
write_byte(200); // brightness
write_byte(200); // speed
message_end();
//Sparks
message_begin(MSG_PVS,SVC_TEMPENTITY,vec2);
write_byte(TE_SPARKS);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
message_end();
//Smoke
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec2);
write_byte(TE_SMOKE);
write_coord(vec2[0]);
write_coord(vec2[1]);
write_coord(vec2[2]);
write_short(g_sModelIndexSmoke);
write_byte(10);
write_byte(10);
message_end();
}



public guru_explosion(id){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
new menu=menu_create("\rGuru \wGuruQA.com\r","guru_explosion_player");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public guru_explosion_player(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name_s[32],name[32],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
new origin[3],srco[3]
get_user_origin(ids,origin)
origin[2] -= 26
srco[0]=origin[0]+150
srco[1]=origin[1]+150
srco[2]=origin[2]+800
slay_explode(origin)
user_kill(ids,1);
client_cmd(id,"spk weapons/explode3.wav");
user_kill(ids,1);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(0,hadmin,"%s matou %s!",name,name_s);
menu_destroy(menu);
return PLUGIN_HANDLED;
}


slay_explode(vec1[3]){
//blood
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte(TE_LAVASPLASH)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
message_end()
//blast circles
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec1)
write_byte(TE_BEAMCYLINDER)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2] + 16)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2] + 1936)
write_short(white)
write_byte(0) // startframe
write_byte(0) // framerate
write_byte(2) // life
write_byte(16) // width
write_byte(0) // noise
write_byte(188) // r
write_byte(220) // g
write_byte(255) // b
write_byte(255) //brightness
write_byte(0) // speed
message_end()
//Explosion2
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte(TE_EXPLOSION2)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_byte(188) // byte (scale in 0.1's)
write_byte(10) // byte (framerate)
message_end()
//Smoke
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,vec1)
write_byte(TE_SMOKE)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_short(g_sModelIndexSmoke)
write_byte(2)
write_byte(10)
message_end()
}


public guru_ban(id){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
new menu=menu_create("\rGuru \wGuruQA.com\r","guru_ban_player");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public guru_ban_player(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name_s[32],name[32],steam_id[32],steam_id_g[32],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
get_user_authid(ids,steam_id,31);
get_user_authid(id,steam_id_g,31);
client_print(id,print_chat,"%s (%s) %L %s",name,steam_id_g,name_s,id,"BANNED");
server_cmd("banid 5 %s;wait;kick #%d ^"Ban Guru/Master: %s (%s) (5 minutos)^";wait;writeid",steam_id,get_user_userid(ids),name,steam_id_g);
new address[32]
get_user_ip(ids,address,31,1);
server_cmd("addip 5 ^"%s^";wait;writeip",address); 
menu_destroy(menu);
return PLUGIN_HANDLED;
}



public menu_vip(id){
new model[32];
cs_get_user_model(id,model,31);
formatex(menu_g,charsmax(menu_g),"\rVIP \wGuruQA.com\r");
new menu=menu_create(menu_g,"m_vip");
if(get_user_flags(id) & ADMIN_BAN && get_user_flags(id) & ADMIN_BAN_TEMP && equal(model,"vip")){
formatex(menu_g,charsmax(menu_g),"%L",id,"SKH1000");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"SP");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"K20F");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"IK");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"3G");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"S20G");
menu_additem(menu,menu_g);
}else{
formatex(menu_g,charsmax(menu_g),"\d%L",id,"SKH1000");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"SP");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"K20F");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"IK");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"3G");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"\d%L",id,"S20G");
menu_additem(menu,menu_g);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public m_vip(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
if(get_user_flags(id) & ADMIN_BAN && get_user_flags(id) & ADMIN_BAN_TEMP){
switch(item){

case 0:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_shield");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
engclient_cmd(id,"weapon_knife");
set_user_health(id,1000);
set_user_armor(id,500);
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"SKH1000");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 1:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_elite");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
engclient_cmd(id,"weapon_elite");
new Float:flSpeed;
flSpeed = 500.0;
set_user_maxspeed(id,flSpeed); 
client_cmd(id,"cl_forwardspeed %f;cl_backspeed %f; cl_sidespeed %f",flSpeed,flSpeed,flSpeed);
//set_pdata_int(id,509,true);
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"SP");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_user_bpammo(id,CSW_FLASHBANG,30);
engclient_cmd(id,"weapon_flashbang");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"K20F");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 3:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
engclient_cmd(id,"drop","weapon_c4");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,25);
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"IK");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 4:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_knife");
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_user_bpammo(id,CSW_HEGRENADE,30);
engclient_cmd(id,"weapon_hegrenade");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"3G");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 5:
{
if(is_user_alive(id) && cs_get_user_buyzone(id) && (get_gametime() < roundtime + 25)){
strip_user_weapons(id);
give_item(id,"weapon_shield");
give_item(id,"weapon_hegrenade");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_flashbang");
give_item(id,"weapon_smokegrenade");
give_item(id,"item_assaultsuit");
give_item(id,"item_thighpack");
cs_set_user_bpammo(id,CSW_HEGRENADE,30);
engclient_cmd(id,"weapon_hegrenade");
ShowSyncHudMsg(0,hadmin,"%s %L %L",name,id,"BUY",id,"S20G");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
}else{	
switch(item){
case 0 .. 5:
{
menu_destroy(menu);
return PLUGIN_HANDLED;	
}	
}	
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}



public display_admin(id){
new name[32],steam_id[32];
get_user_name(id,name,31);
get_user_authid(id,steam_id,31);
if(equal(steam_id,"STEAM_",6) || equal(steam_id,"VALVE_0:0",9)){
new Data[1];Data[0]=id;
new steam_id[32],cache[325];
get_user_authid(id,steam_id,31);
formatex(cache,320,"SELECT rank,admin,reputation FROM (SELECT *,@curRank := IF(@prevRank = score,@curRank,@incRank) AS rank,@incRank := @incRank + 1,@prevRank := score FROM players_rank p,(SELECT @curRank :=0,@prevRank := NULL,@incRank := 1) r ORDER BY score DESC) s WHERE steam_id='%s' LIMIT 1",steam_id);
SQL_ThreadQuery(sql,"addadmin",cache,Data,1);
}else{
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
show_hudmessage(0,"%s - %L",name,id,"USE_SXE");
}
}
public addadmin(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
if(FailState || Errcode || Error[0]){
log_amx("Add Admin - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}else{
if(SQL_MoreResults(Query)){
new id=Data[0];
new steam_id[32],name[32];
get_user_name(id,name,31);
get_user_authid(id,steam_id,31);
new rank = SQL_ReadResult(Query,0);
new admin = SQL_ReadResult(Query,1);
new reputation = SQL_ReadResult(Query,2);
set_hudmessage(random(256),random(256),random(256),-1.0,0.7,2,6.0,7.0,0.1,0.7,2);

if(rank == 1 && reputation > 0){
if(equal(steam_id,"STEAM_",6)){
new flags = read_flags("abcdefijmnopqrstuv");
set_user_flags(id,flags);
}else{
new flags = read_flags("beij");
set_user_flags(id,flags); 	
}
set_hudmessage(255,0,0,-1.0,-0.56,1,6.0,5.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(255,0,0,-1.0,-0.52,1,6.0,5.0);
ShowSyncHudMsg(0,hadmin,"Vip %s Online! - Rank: %d - %L %d",name,rank,id,"REPUTATION",reputation);	
cs_set_user_model(id,"vip");
client_cmd(0,"spk radio/vip.wav");
}else if(admin == 10 && reputation > 0){
if(equal(steam_id,"STEAM_",6)){
new flags = read_flags("abcdefijmnopqrstuv");
set_user_flags(id,flags);
ShowSyncHudMsg(0,hadmin,"Guru: %s Online! - Rank: %d - %L %d",name,rank,id,"REPUTATION",reputation);
}
}else if(admin == 9 && reputation > 0){
if(equal(steam_id,"STEAM_",6)){
new flags = read_flags("abcdefijmnopqrstuv");
set_user_flags(id,flags);
ShowSyncHudMsg(0,hadmin,"%L %s Online! - Rank: %d - %L %d",id,"MASTER",name,rank,id,"REPUTATION",reputation);
}else{
new flags = read_flags("beij");
set_user_flags(id,flags); 
ShowSyncHudMsg(0,hadmin,"Admin: %s Online! - Rank: %d - %L %d",name,rank,id,"REPUTATION",reputation);		
}
}else if(admin == 1 && reputation > 0){
if(equal(steam_id,"STEAM_",6)){
new flags = read_flags("abcdefijmnopqrstu");
set_user_flags(id,flags);
ShowSyncHudMsg(0,hadmin,"%L %s Online! - Rank: %d - %L %d",id,"SUPREMO",name,rank,id,"REPUTATION",reputation);
}else{
new flags = read_flags("beij");
set_user_flags(id,flags); 
ShowSyncHudMsg(0,hadmin,"Admin: %s Online! - Rank: %d - %L %d",name,rank,id,"REPUTATION",reputation);	
}
}else if(rank > 1 && rank <= 5 && reputation > 0){
if(equal(steam_id,"STEAM_",6)){
new flags = read_flags("abcdefijmnopqrstu");
set_user_flags(id,flags);
ShowSyncHudMsg(0,hadmin,"%L %s Online! - Rank: %d - %L %d",id,"SUPREMO",name,rank,id,"REPUTATION",reputation);
}else{
new flags = read_flags("beij");
set_user_flags(id,flags); 
ShowSyncHudMsg(0,hadmin,"Admin: %s Online! - Rank: %d - %L %d",name,rank,id,"REPUTATION",reputation);		
}
}else if(admin == 3 && reputation > 0 || rank > 5 && rank <= 50 && reputation > 0){
if(equal(steam_id,"STEAM_",6)){
new flags = read_flags("abceiju");
set_user_flags(id,flags); 
ShowSyncHudMsg(0,hadmin,"Admin: %s Online! - Rank: %d - %L %d",name,rank,id,"REPUTATION",reputation);
}else{
new flags = read_flags("bei");
set_user_flags(id,flags); 
ShowSyncHudMsg(0,hadmin,"Admin: %s Online! - Rank: %d - %L %d",name,rank,id,"REPUTATION",reputation);			
}
}else{
set_hudmessage(255,255,255,-1.0,0.7,0,6.0,4.0);
ShowSyncHudMsg(0,hadmin,"%s - %L",name,id,"ENTRE_TOP50");
}
}
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}


public unbanall(id){
new name[32],buffer[64],szSteamIdOrIp[32],crap[2];
new fp = fopen("banned.cfg", "rt");
if(fp){
while(!feof(fp)){
fgets(fp, buffer, charsmax(buffer));
trim(buffer);
if(parse(buffer,crap,1,crap,1,szSteamIdOrIp,charsmax(szSteamIdOrIp))==3){
server_cmd("removeid %s",szSteamIdOrIp);
}
}
server_exec();
fclose(fp);
fp = 0;
server_cmd("writeid");
server_exec();
}
fp = fopen("listip.cfg","rt");
if(fp){
while(!feof(fp)){
fgets(fp,buffer,charsmax(buffer));
trim(buffer);
if( parse(buffer,crap,1,crap,1,szSteamIdOrIp,charsmax(szSteamIdOrIp))==3){
server_cmd("removeip %s",szSteamIdOrIp);
}
}
server_exec();
fclose(fp);
fp = 0;
server_cmd("writeip");
server_exec();
}
get_user_name(id,name,31);
set_hudmessage(255,255,255,-1.0,0.6,2,6.0,6.0,0.1,0.7,2);
ShowSyncHudMsg(0,hadmin,"%s - %L",name,id,"REMOVED_ALL_BANS");
return PLUGIN_HANDLED;
}  



public supreme_slap(id){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
formatex(menu_g,charsmax(menu_g),"\r%L Slap \wGuruQA.com\r",id,"SUPREMO");
new menu=menu_create(menu_g,"supreme_slap_player");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public supreme_slap_player(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name_s[32],name[32],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(0,hadmin,"%s hit %s!",name,name_s);
user_slap(ids,10);
set_task(0.5,"supreme_slap_num",ids);
menu_destroy(menu);
return PLUGIN_CONTINUE
}
public supreme_slap_num(ids){
user_slap(ids,10);
set_task(0.5,"supreme_slap_num3",ids);
return PLUGIN_CONTINUE
}
public supreme_slap_num3(ids){
user_slap(ids,10);
return PLUGIN_HANDLED
}

public supreme_slay(id){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
formatex(menu_g,charsmax(menu_g),"\r%L Slay \wGuruQA.com\r",id,"SUPREMO");
new menu=menu_create(menu_g,"supreme_slay_player");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public supreme_slay_player(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name_s[32],name[32],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(0,hadmin,"%s matou %s!",name,name_s);
user_kill(ids);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public supreme_kick(id){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
formatex(menu_g,charsmax(menu_g),"\r%L Kick Player \wGuruQA.com\r",id,"SUPREMO");
new menu=menu_create(menu_g,"supreme_kick_player");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public supreme_kick_player(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name_s[32],name[32],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
client_print(id,print_chat,"%s %L %s",name,id,"KICK",name_s);
server_cmd("kick #%d %L %s",get_user_userid(ids),id,"KICKSUPREMO",name);
menu_destroy(menu);
return PLUGIN_HANDLED;
}

public supreme_remove_weapon(id){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
formatex(menu_g,charsmax(menu_g),"\r%L %L \wGuruQA.com\r",id,"SUPREMO",id,"REMOVE_WEAPONS");
new menu=menu_create(menu_g,"supreme_weapon_player");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
public supreme_weapon_player(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name_s[32],name[32],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(0,hadmin,"%s %L %s!",name,id,"REMOVE_GUNS",name_s);
set_user_armor(ids,0);
strip_user_weapons(ids);
menu_destroy(menu);
return PLUGIN_HANDLED;
}

public client_disconnect(id){
Kills[id]=Headshots[id]=0;
}
public OnHltv(){
arrayset(Kills,0,sizeof Kills);
arrayset(Headshots,0,sizeof Headshots);
set_task(1.0,"display_favorites",0);
roundtime = get_gametime();
set_task(1.0,"display_vip",0);
}


public display_vip(id){
SQL_ThreadQuery(sql,"topic","SELECT users.user_name,posts.topic_title,(SELECT name FROM players_rank ORDER BY score DESC LIMIT 1) AS name,(SELECT steam_id FROM players_rank ORDER BY score DESC LIMIT 1) AS steam_id_s FROM posts LEFT JOIN users ON posts.user_id=users.user_id WHERE type='T' ORDER BY posts.post_time_updated DESC LIMIT 1");
}
public topic(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
new name[32],steam_id[32],steam_id_s[32],name_guruqa[32],title_guruqa[281];
if(SQL_MoreResults(Query)){
SQL_ReadResult(Query,0,name_guruqa,31);
SQL_ReadResult(Query,1,title_guruqa,280);
SQL_ReadResult(Query,2,name,31);
SQL_ReadResult(Query,3,steam_id_s,31);
new iPlayers[32],num,id;
get_players(iPlayers,num,"ch")
for(new count = 0;count < num;count++){
id=iPlayers[count];
if(is_user_alive(id)){
get_user_authid(id,steam_id,31);
if(equal(steam_id,steam_id_s)){
set_hudmessage(random(256),random(256),random(256),-1.0,-0.56,0,6.0,4.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(random(256),random(256),random(256),-1.0,-0.52,0,6.0,4.0);
ShowSyncHudMsg(0,hvote,"VIP: %s - Online!",name);
cs_set_user_model(id,"vip");
client_cmd(0,"spk radio/vip.wav");
}else{
cs_reset_user_model(id);
}
}
}
set_hudmessage(random(256),random(256),random(256),-1.0,-0.46,0,6.0,4.0);
ShowSyncHudMsg(0,htopround,"%s: %s - GuruQA.com",name_guruqa,title_guruqa);
}
if(FailState || Errcode || Error[0]){
log_amx("Topic - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}

public display_favorites(id){
new randomM;
randomM = random_num(1,3);
new server_ip[26];
get_user_ip(0,server_ip,25);
set_dhudmessage(random(256),random(256),random(256),-1.0,0.1,2,950.0,3.0,0.1,60.0);
if(randomM==1){
show_dhudmessage(id,"%L %s",id,"FAVORITES",server_ip);
}else if(randomM==2){
show_dhudmessage(id,"%L",id,"SITE_ADMIN");
}else if(randomM==3){
show_dhudmessage(id,"%L",id,"SITE");
}
return PLUGIN_HANDLED;
}

public OnDeathMsg(){
new id=read_data(1);
if(!is_user_connected(id)){
return;
}   
Kills[id]++;
if (read_data(3)){
Headshots[id]++;
}
new wpn[3],vOrigin[3],coord[3],name[32],name_v[32];
new victim = read_data(2);
get_user_name(id,name,31);
get_user_name(victim,name_v,31);
read_data(4,wpn,2);
get_user_origin(victim,vOrigin);
vOrigin[2] -= 26;
coord[0] = vOrigin[0] + 150;
coord[1] = vOrigin[1] + 150;
coord[2] = vOrigin[2] + 800;
if(wpn[0] == 'k'){
set_hudmessage(255,0,0,-1.0,-0.56,1,6.0,5.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(255,0,0,-1.0,-0.52,1,6.0,5.0);
ShowSyncHudMsg(0,hvote,"%s %L %s!",name,id,"HUMBLED",name_v);
client_cmd(0,"spk misc/killChicken.wav");
}
if(wpn[1] == 'r'){
client_cmd(0,"spk misc/killChicken.wav");
message_begin(MSG_PVS,SVC_TEMPENTITY,vOrigin);
write_byte(TE_LAVASPLASH);
write_coord(vOrigin[0]);
write_coord(vOrigin[1]);
write_coord(vOrigin[2] - 26);
message_end()
}
new iVictim = read_data(2);
set_task(1.0,"PlayerKilledsmg",iVictim);
}

public PlayerKilledsmg(id){
new randomM;
randomM = random_num(1,3);
new server_ip[26];
get_user_ip(0,server_ip,25);
set_hudmessage(random(256),random(256),random(256),0.01,0.34,2,0.1,50.0);
if(randomM==1){
show_hudmessage(id,"%L %s",id,"FAVORITES",server_ip);
}else if(randomM==2){
show_hudmessage(id,"%L",id,"SITE_ADMIN");
}else if(randomM==3){
show_hudmessage(id,"%L",id,"SITE");
}
client_cmd(id,"cl_minmodels 0");
return PLUGIN_HANDLED;
}

public OnRoundEnd(){
new players[32],num;
get_players(players,num);
if(!num){
return;
}   
new best = players[0];
for(new i = 1,id;i < num;i++){
id = players[i];
if(Kills[id] > Kills[best] || (Kills[id] == Kills[best] && Headshots[id] > Headshots[best])){
best = id;
}
}
if(Kills[best] >= 1){
new name[32];
get_user_name(best,name,31);  
set_hudmessage(random(256),random(256),random(256),0.01,0.30,0,6.0,50.0); 
ShowSyncHudMsg(0,htopround,"Top Round: %s - Kills: %i  HS: %i", name,Kills[best],Headshots[best]);
}
}
public toproundadddb(){
new players[32],num;
get_players(players,num);
if (!num){
return;
}   
new best = players[0];
for (new i = 1,id;i < num;i++){
id = players[i];
if (Kills[id] > Kills[best] || (Kills[id] == Kills[best] && Headshots[id] > Headshots[best])){
best = id;
}
}
if (Kills[best] >= 2){
new name[32],steam_id[32],cache[251];
get_user_name(best,name,31);
get_user_authid(best,steam_id,31);
if(equal(steam_id,"STEAM_",6) || equal(steam_id,"VALVE_0:0",9)){
set_hudmessage(255,0,0,-1.0,-0.56,1,6.0,5.0);
show_hudmessage(0,"(%d)^n--0--[%d]--0--^n[0]^n0 0^n_/  \_",Kills[best],Headshots[best]);
set_hudmessage(255,0,0,-1.0,-0.52,1,6.0,5.0);
ShowSyncHudMsg(0,hvote,"Top Round: %s %L",name,LANG_PLAYER,"TOPROUND");
formatex(cache,250,"INSERT IGNORE INTO players_rank (steam_id) VALUES ('%s') ON DUPLICATE KEY UPDATE score=score+5,topround=topround+5",steam_id);
SQL_ThreadQuery(sql,"toprounderror",cache);
}else{
set_hudmessage(255,0,0,-1.0,-0.56,1,6.0,5.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(255,0,0,-1.0,-0.52,1,6.0,5.0);
ShowSyncHudMsg(0,hvote,"Top Round: %s",name);
}
}
}
public toprounderror(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
if(FailState || Errcode || Error[0]){
log_amx("Top Round - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}		
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}

public adddb(){
new id=get_msg_arg_int(1);
if(is_user_connected(id)){
new steam_id[32],name[32],namev[32],victim_steam_id[32],cache[651];
new victim=get_msg_arg_int(2);
new headshot=get_msg_arg_int(3);
get_user_authid(id,steam_id,31);
get_user_authid(victim,victim_steam_id,31);
get_user_name(id,name,31);
get_user_name(victim,namev,31);
new model[32],modelv[32];
cs_get_user_model(id,model,31);
cs_get_user_model(victim,modelv,31);
if(id != victim){
if(equal(steam_id,"STEAM_",6) || equal(steam_id,"VALVE_0:0",9)){
if(equal(victim_steam_id,"VALVE_0:4",9) || equal(victim_steam_id,"VALVE_ID_LAN") || equal(victim_steam_id,"STEAM_ID_LAN") || equal(victim_steam_id,"VALVE_ID_PENDING")){
if(headshot){
formatex(cache,650,"INSERT IGNORE INTO players_rank (steam_id,name) VALUES (^"%s^",^"%s^") ON DUPLICATE KEY UPDATE score=IF('vip'=^"%s^",score+7,score+2),kills=kills+1,headshots=headshots+1,killvip=IF('vip'=^"%s^",killvip+5,killvip),name=^"%s^";",steam_id,name,modelv,modelv,name);
SQL_ThreadQuery(sql,"addrank",cache);
}else{
formatex(cache,650,"INSERT IGNORE INTO players_rank (steam_id,name) VALUES (^"%s^",^"%s^") ON DUPLICATE KEY UPDATE score=IF('vip'=^"%s^",score+6,score+1),kills=kills+1,killvip=IF('vip'=^"%s^",killvip+5,killvip);",steam_id,name,modelv,modelv);
SQL_ThreadQuery(sql,"addrank",cache);
}
}else{
if(headshot){
formatex(cache,650,"START TRANSACTION;INSERT IGNORE INTO players_rank (steam_id,name) VALUES (^"%s^",^"%s^") ON DUPLICATE KEY UPDATE score=IF('vip'=^"%s^",score+7,score+2),kills=kills+1,headshots=headshots+1,killvip=IF('vip'=^"%s^",killvip+5,killvip),name=^"%s^";INSERT IGNORE INTO players_rank (steam_id,name) VALUES (^"%s^",^"%s^") ON DUPLICATE KEY UPDATE score=IF('vip'=^"%s^",score-6,score-1),killvip=IF('vip'=^"%s^",killvip-5,killvip),deaths=deaths+1;COMMIT;",steam_id,name,modelv,modelv,name,victim_steam_id,namev,modelv,modelv);
SQL_ThreadQuery(sql,"addrank",cache);
}else{
formatex(cache,650,"START TRANSACTION;INSERT IGNORE INTO players_rank (steam_id,name) VALUES (^"%s^",^"%s^") ON DUPLICATE KEY UPDATE score=IF('vip'=^"%s^",score+6,score+1),kills=kills+1,killvip=IF('vip'=^"%s^",killvip+5,killvip);INSERT IGNORE INTO players_rank (steam_id,name) VALUES (^"%s^",^"%s^") ON DUPLICATE KEY UPDATE score=IF('vip'=^"%s^",score-6,score-1),killvip=IF('vip'=^"%s^",killvip-5,killvip),deaths=deaths+1;COMMIT;",steam_id,name,modelv,modelv,victim_steam_id,namev,modelv,modelv);
SQL_ThreadQuery(sql,"addrank",cache);
}
}
if(!equal(model,"vip") && equal(modelv,"vip")){
client_cmd(0,"spk ambience/fallscream.wav");
set_hudmessage(0,255,255,-1.0,-0.56,0,6.0,3.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(0,255,255,-1.0,-0.52,0,6.0,3.0);
ShowSyncHudMsg(0,hvote,"%s %L",name,id,"KILLVIP");
}
}else{	
if(equal(victim_steam_id,"STEAM_",6) || equal(victim_steam_id,"VALVE_0:0",9)){
formatex(cache,650,"INSERT IGNORE INTO players_rank (steam_id,name) VALUES (^"%s^",^"%s^") ON DUPLICATE KEY UPDATE score=IF('vip'=^"%s^",score-6,score-1),deaths=deaths+1,killvip=IF('vip'=^"%s^",killvip-5,killvip);",victim_steam_id,namev,modelv,modelv);
SQL_ThreadQuery(sql,"addrank",cache);
}
if(!equal(model,"vip") && equal(modelv,"vip")){
client_cmd(0,"spk ambience/fallscream.wav");
}	
}
}
}
}
public addrank(FailState,Handle:Query,Error[],Errcode,datadb[],DataSize){
if(FailState || Errcode || Error[0]){
log_amx("Add Rank - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}
public reputation_menu(id){	
if(is_user_connected(id)){
new name[32],steam_id[32];
get_user_name(id,name,31);
get_user_authid(id,steam_id,31);
if(equal(steam_id,"STEAM_",6)){
formatex(menu_g,charsmax(menu_g),"\r%L \wGuruQA.com\r",id,"VOTE");
new menu=menu_create(menu_g,"reputation_menu_s");
formatex(menu_g,charsmax(menu_g),"%L \y+10",id,"POSITIVE");
menu_additem(menu,menu_g);
formatex(menu_g,charsmax(menu_g),"%L \r-10",id,"NEGATIVE");
menu_additem(menu,menu_g);
menu_display(id,menu);	
}else{	
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
show_hudmessage(0,"%s - %L",name,id,"STEAM_VOTE");
}
}
return PLUGIN_HANDLED;
}
public reputation_menu_s(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31);
switch(item){
case 0:
{
reputation_menu_1(id);
}
case 1:
{
reputation_menu_1_n(id);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}


public reputation_menu_1(id){
if(is_user_connected(id)){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
formatex(menu_g,charsmax(menu_g),"\r%L \wGuruQA.com\r",id,"REPUTATION");
new menu=menu_create(menu_g,"reputation_1");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
}
public reputation_1(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name[32],steam_id_vote[32],steam_id[32],cache[351],datadb[2],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
datadb[0] = id;
datadb[1] = ids;
get_user_name(id,name,31);
get_user_authid(ids,steam_id_vote,31);
get_user_authid(id,steam_id,31);
if(equal(steam_id_vote,"STEAM_",6) || equal(steam_id_vote,"VALVE_0:0",9)){
if(is_user_connected(id)){
formatex(cache,350,"INSERT IGNORE INTO players_votes(user_steam,user_vote_steam,positive) VALUES('%s','%s',0)",steam_id,steam_id_vote);
SQL_ThreadQuery(sql,"reputation_add",cache);
formatex(cache,350,"SELECT players_rank.kills,players_votes.positive FROM players_rank,players_votes WHERE players_rank.steam_id ='%s' AND players_votes.user_steam ='%s' AND players_votes.user_vote_steam ='%s' LIMIT 1",steam_id,steam_id,steam_id_vote);
SQL_ThreadQuery(sql,"addreputation_1",cache,datadb,2);
}
}else{
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
show_hudmessage(0,"%s - %L",name,id,"SXE_STEAM");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public addreputation_1(FailState,Handle:Query,Error[],Errcode,datadb[],DataSize){
if(FailState || Errcode || Error[0]){
log_amx("Reputation - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}else{
new id = datadb[0];
new ids = datadb[1];
new name[32],name_s[32];
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
new steam_id_vote[32],steam_id[32],cache[351];
get_user_authid(ids,steam_id_vote,31);
get_user_authid(id,steam_id,31);
if(SQL_MoreResults(Query)){
if(is_user_connected(id) && is_user_connected(ids)){
new kills = SQL_ReadResult(Query,0);
new positive = SQL_ReadResult(Query,1);
if(kills >= 100 && positive == 0){
if(equal(steam_id,"STEAM_",6) && equal(steam_id_vote,"STEAM_",6) || equal(steam_id,"STEAM_",6) && equal(steam_id_vote,"VALVE_0:0",9)){
formatex(cache,350,"START TRANSACTION;INSERT IGNORE INTO players_votes(user_steam,user_vote_steam,positive) VALUES('%s','%s',1) ON DUPLICATE KEY UPDATE positive=1;UPDATE players_rank SET score=score+10,positive=positive+10,reputation=reputation+10 WHERE steam_id = '%s' LIMIT 1;COMMIT;",steam_id,steam_id_vote,steam_id_vote);
SQL_ThreadQuery(sql,"reputation_add",cache);
set_hudmessage(random(256),random(256),random(256),-1.0,-0.56,0,6.0,5.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(random(256),random(256),random(256),-1.0,-0.52,0,6.0,5.0);
ShowSyncHudMsg(0,hvote,"%L %s %L",id,"REPUTATION",name_s,id,"VOTEP");
}
}else if(kills >= 100 && positive == 1){
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(id,hvote,"%s, %L",name,id,"YOUVOTE");
}else{
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(0,hvote,"%s, %L",name,id,"YOUKILL");
}
}
}
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}

public reputation_menu_1_n(id){
if(is_user_connected(id)){
new name[32],ids[3],iPlayers[32],iNum,Players;
get_players(iPlayers,iNum,"ch");
formatex(menu_g,charsmax(menu_g),"\r%L \wGuruQA.com\r",id,"REPUTATION");
new menu=menu_create(menu_g,"reputation_1_n");
for(new i;i < iNum;i++){
Players = iPlayers[i];
get_user_name(Players,name,charsmax(name));
num_to_str(Players,ids,charsmax(ids));
menu_additem(menu,name,ids,0);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu);
}
}

public reputation_1_n(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[3],name[32],steam_id_vote[32],steam_id[32],cache[351],datadb[2],access,callback;
menu_item_getinfo(menu,item,access,data,2, _, _,callback);
new ids = str_to_num(data);
datadb[0] = id;
datadb[1] = ids;
get_user_name(id,name,31);
get_user_authid(ids,steam_id_vote,31);
get_user_authid(id,steam_id,31);
if(equal(steam_id_vote,"STEAM_",6) || equal(steam_id_vote,"VALVE_0:0",9)){
if(is_user_connected(id)){
formatex(cache,350,"INSERT IGNORE INTO players_votes(user_steam,user_vote_steam,negative) VALUES('%s','%s',0)",steam_id,steam_id_vote);
SQL_ThreadQuery(sql,"reputation_add",cache);
formatex(cache,350,"SELECT players_rank.kills,players_votes.negative FROM players_rank,players_votes WHERE players_rank.steam_id ='%s' AND players_votes.user_steam ='%s' AND players_votes.user_vote_steam ='%s' LIMIT 1",steam_id,steam_id,steam_id_vote);
SQL_ThreadQuery(sql,"addreputation_1_n",cache,datadb,2);
}
}else{
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
show_hudmessage(0,"%s - %L",name,id,"SXE_STEAM");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public addreputation_1_n(FailState,Handle:Query,Error[],Errcode,datadb[],DataSize){
if(FailState || Errcode || Error[0]){
log_amx("Reputation - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}else{
new id = datadb[0];
new ids = datadb[1];
new name[32],name_s[32];
get_user_name(id,name,31);
get_user_name(ids,name_s,31);
new steam_id_vote[32],steam_id[32],cache[351];
get_user_authid(ids,steam_id_vote,31);
get_user_authid(id,steam_id,31);
if(SQL_MoreResults(Query)){
if(is_user_connected(id) && is_user_connected(ids)){
new kills = SQL_ReadResult(Query,0);
new negative = SQL_ReadResult(Query,1);
if(kills >= 100 && negative == 0){
if(equal(steam_id,"STEAM_",6) && equal(steam_id_vote,"STEAM_",6) || equal(steam_id,"STEAM_",6) && equal(steam_id_vote,"VALVE_0:0",9)){
formatex(cache,350,"START TRANSACTION;INSERT IGNORE INTO players_votes(user_steam,user_vote_steam,negative) VALUES('%s','%s',1) ON DUPLICATE KEY UPDATE negative='1';UPDATE players_rank SET score=score-10,negative=negative-10,reputation=reputation-10 WHERE steam_id = '%s' LIMIT 1;COMMIT;",steam_id,steam_id_vote,steam_id_vote);
SQL_ThreadQuery(sql,"reputation_add",cache);
set_hudmessage(random(256),random(256),random(256),-1.0,-0.56,0,6.0,5.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(random(256),random(256),random(256),-1.0,-0.52,0,6.0,5.0);
ShowSyncHudMsg(0,hvote,"%L %s %L",id,"REPUTATION",name_s,id,"VOTEN");
}
}else if(kills >= 100 && negative == 1){
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(id,hvote,"%s, %L",name,id,"YOUVOTEN");
}else{
set_hudmessage(255,255,255,-1.0,0.8,0,6.0,4.0);
ShowSyncHudMsg(id,hvote,"%s, %L",name,id,"YOUKILL");
}
}
}
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}

public reputation_add(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
if(FailState || Errcode || Error[0]){
log_amx("reputation - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}		
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}

public display_server(id){
if(is_user_connected(id)){
new Data[1];Data[0]=id;
SQL_ThreadQuery(sql,"server","SELECT s_name,s_players,s_maxplayers,s_map,s_ip FROM servers_ips ORDER BY s_players DESC,s_maxplayers DESC LIMIT 35",Data,1);
}
}
public server(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
if(FailState || Errcode || Error[0]){
log_amx("Reputation - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}else{
new id=Data[0];
formatex(menu_g,charsmax(menu_g),"\r%L \wGuruQA.com\r",id,"SERVERS");
new menu=menu_create(menu_g,"menu_server");
g_tServers = TrieCreate();
new s_name[22],s_map[19],sData[70],s_ip[22];
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query,0,s_name,21)
new s_players=SQL_ReadResult(Query,1);
new s_maxplayers=SQL_ReadResult(Query,2);
SQL_ReadResult(Query,3,s_map,18);
SQL_ReadResult(Query,4,s_ip,21);
formatex(sData,69,"%s \r(\y%d/\y%d\r) \r(\y%s\r)",s_name,s_players,s_maxplayers,s_map);
menu_additem(menu,sData);
TrieSetString(g_tServers,sData,s_ip);
SQL_NextRow(Query);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu,0);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED
}
public menu_server(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32],info[3],server_name[62],szServerIP[26],_access,callback;
get_user_name(id,name,31);
menu_item_getinfo(menu,item,_access,info,2,server_name,61,callback);
TrieGetString(g_tServers,server_name,szServerIP,25);
replace_all(server_name,61,"\r","");
replace_all(server_name,61,"\y","");
client_cmd(id,"wait;wait;wait;wait;wait;^"connect^" %s",szServerIP);
set_hudmessage(0,255,255,-1.0,-0.53,0,6.0,10.0);
ShowSyncHudMsg(0,hvote,"%s %L %s",name,id,"SERVER_PLAYER_REDIRECT",server_name);
menu_destroy(menu);
return PLUGIN_HANDLED;
}

public display_rank(id){
new name[32],steam_id[32];
get_user_name(id,name,31);
get_user_authid(id,steam_id,31);
if(equal(steam_id,"STEAM_",6) || equal(steam_id,"VALVE_0:0",9)){
new Data[1];Data[0]=id;
new cache[325];
formatex(cache,324,"SELECT rank,(SELECT COUNT(id) FROM players_rank) AS total FROM (SELECT *,@curRank := IF(@prevRank = score,@curRank,@incRank) AS rank,@incRank := @incRank + 1,@prevRank := score FROM players_rank p,(SELECT @curRank :=0,@prevRank := NULL,@incRank := 1) r ORDER BY score DESC) s WHERE steam_id='%s' LIMIT 1",steam_id);
SQL_ThreadQuery(sql,"rank",cache,Data,1);
}else{
set_hudmessage(255,255,255,0.01,0.7,0,6.0,4.0);
ShowSyncHudMsg(0,hrank,"%s - %L",name,id,"USE_SXE_RANK");
}
}
public rank(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
if(SQL_MoreResults(Query)){
new id=Data[0];
new name[32];
get_user_name(id,name,31);
new rank=SQL_ReadResult(Query,0);
new total=SQL_ReadResult(Query,1);
set_hudmessage(255,255,255,0.01,0.7,0,6.0,4.0);
ShowSyncHudMsg(0,hrank,"%s - Rank: %d <- %d - www.GuruQA.com",name,rank,total);
}
if(FailState || Errcode || Error[0]){
log_amx("Rank - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}

public display_stats(id){
new name[32],steam_id[32];
get_user_name(id,name,31);
get_user_authid(id,steam_id,31);
if(equal(steam_id,"STEAM_",6) || equal(steam_id,"VALVE_0:0",9)){
new Data[1];Data[0]=id;
new cache[131];
formatex(cache,130,"SELECT score,kills,deaths,headshots,topround,reputation FROM players_rank WHERE steam_id='%s' LIMIT 1",steam_id);
SQL_ThreadQuery(sql,"stats",cache,Data,1);
}else{
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
ShowSyncHudMsg(0,hrank,"%s - %L",name,id,"USE_SXE_RANK");
}
}
public stats(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
if(SQL_MoreResults(Query)){
new id=Data[0];
new name[32];
get_user_name(id,name,31);
new score=SQL_ReadResult(Query,0);
new kills=SQL_ReadResult(Query,1);
new deaths=SQL_ReadResult(Query,2);
new headshots=SQL_ReadResult(Query,3);
new topround=SQL_ReadResult(Query,4);
new reputation=SQL_ReadResult(Query,5);
set_hudmessage(255,255,255,0.01,0.13,0,6.0,4.0);
ShowSyncHudMsg(0,hrank,"%s^nScore (%d)^nKills (%d)^nDeaths (%d)^nHeadShots (%d)^nTopRound (%d)^nReputation (%d)^nwww.guruqa.com",name,score,kills,deaths,headshots,topround,reputation);
}
if(FailState || Errcode || Error[0]){
log_amx("Stats - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}

public display_top50(id){
new Data[1];Data[0]=id;
SQL_ThreadQuery(sql,"top50","SELECT name,rank,score FROM (SELECT *,@curRank := IF(@prevRank = score,@curRank,@incRank) AS rank,@incRank := @incRank + 1,@prevRank := score FROM players_rank p,(SELECT @curRank :=0,@prevRank := NULL,@incRank := 1) r ORDER BY score DESC) s ORDER BY score DESC LIMIT 50",Data,1);
}
public top50(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
new id=Data[0];
new menu=menu_create("\rTop50 \wGuruQA.com\r","menu_top50");
new name[32],sData[70];
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query,0,name,31)
new rank=SQL_ReadResult(Query,1);
new score=SQL_ReadResult(Query,2);
formatex(sData,69,"\y%s \wRank: \r%d \wScore: \r%d",name,rank,score);
menu_additem(menu,sData);
SQL_NextRow(Query);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu,0);
if(FailState || Errcode || Error[0]){
log_amx("Top50 - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED
}
public menu_top50(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return;
}
}

public display_topkills(id){
new Data[1];Data[0]=id;
SQL_ThreadQuery(sql,"topkills","SELECT name,kills FROM players_rank ORDER BY kills DESC LIMIT 50",Data,1);
}
public topkills(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
new id=Data[0];
new menu=menu_create("\rTop Kills \wGuruQA.com\r","menu_topkills");
new sData[70];
new name[32];
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query,0,name,31);
new kills=SQL_ReadResult(Query,1);
formatex(sData,69,"\y%s \wKills: \r%d",name,kills);
menu_additem(menu,sData);
SQL_NextRow(Query);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu,0);
if(FailState || Errcode || Error[0]){
log_amx("TopKills - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}
public menu_topkills(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu); 
return;
}
}


public display_topround(id){
new Data[1];Data[0]=id;
SQL_ThreadQuery(sql,"topround","SELECT name,topround FROM players_rank ORDER BY topround DESC LIMIT 50",Data,1);
}
public topround(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
new id=Data[0];
new menu=menu_create("\rTop Round \wGuruQA.com\r","menu_topround");
new sData[70];
new name[32];
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query,0,name,31);
new topround=SQL_ReadResult(Query,1);
formatex(sData,69,"\y%s \wTopRound: \r%d",name,topround);
menu_additem(menu,sData);
SQL_NextRow(Query);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu,0);
if(FailState || Errcode || Error[0]){
log_amx("TopKills - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}
public menu_topround(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu); 
return;
}
}

public display_topdeaths(id){
new Data[1];Data[0]=id;
SQL_ThreadQuery(sql,"topdeaths","SELECT name,deaths FROM players_rank ORDER BY deaths DESC LIMIT 50",Data,1);
}
public topdeaths(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
new id=Data[0];
new menu=menu_create("\rTop Deaths \wGuruQA.com\r","menu_topdeaths");
new sData[70];
new name[32];
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query,0,name,31);
new deaths=SQL_ReadResult(Query,1)
formatex(sData,69,"\y%s \wDeaths: \r%d",name,deaths);
menu_additem(menu,sData);
SQL_NextRow(Query);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu,0);
if(FailState || Errcode || Error[0]){
log_amx("TopDeaths - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}
public menu_topdeaths(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu); 
return;
}
}


public display_tophs(id){
new Data[1];Data[0]=id;
SQL_ThreadQuery(sql,"tophs","SELECT name,headshots FROM players_rank ORDER BY headshots DESC LIMIT 50",Data,1);
}
public tophs(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
new id=Data[0];
new menu=menu_create("\rTop HS \wGuruQA.com\r","menu_tophs");
new sData[70];
new name[32];
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query,0,name,31);
new hs=SQL_ReadResult(Query,1)
formatex(sData,69,"\y%s \wHeadShots: \r%d",name,hs);
menu_additem(menu,sData);
SQL_NextRow(Query);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu,0);
if(FailState || Errcode || Error[0]){
log_amx("TopHS - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED;
}
public menu_tophs(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu); 
return;
}
}

public display_topvote(id){
new Data[1];Data[0]=id;
SQL_ThreadQuery(sql,"topvote","SELECT name,reputation FROM players_rank ORDER BY reputation DESC LIMIT 50",Data,1);
}
public topvote(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
new id=Data[0];
new menu=menu_create("\rTop Vote \wGuruQA.com\r","menu_vote");
new sData[70];
new name[32];
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query,0,name,sizeof name -1);
new reputation=SQL_ReadResult(Query,1)
formatex(sData,69,"\y%s \wReputation: \r%d",name,reputation);
menu_additem(menu,sData);
SQL_NextRow(Query);
}
formatex(menu_g,charsmax(menu_g),"%L",id,"NEXTNAME");
menu_setprop(menu,MPROP_NEXTNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"BACKNAME");
menu_setprop(menu,MPROP_BACKNAME,menu_g);
formatex(menu_g,charsmax(menu_g),"%L",id,"EXITNAME");
menu_setprop(menu,MPROP_EXITNAME,menu_g);
menu_display(id,menu,0);
if(FailState || Errcode || Error[0]){
log_amx("TopVote - FailState = %d | Error = %s | errorId = %d", FailState,Error,Errcode);
}
SQL_FreeHandle(Query);
return PLUGIN_HANDLED
}
public menu_vote(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu); 
return;
}
}

public display_redirect(){
new ip[26];
read_args(ip,25);
client_cmd(0,"wait;wait;wait;wait;wait;^"connect^" %s",ip);
return PLUGIN_HANDLED
}



guruqa_rank.txt
download/file.php?id=26164

Código: Selecionar todos


[en]
AK47AWPMPG = AK47 + AWP + M4A1 + Pistols + Grenades
DSG = Deagle + Shield + Grenades
IK = Invisibility + Knife
KHK = Knife + Health 500 + Kevlar 500
3G = 30 Grenades
12IG = 12 + Infinite Ammo + Grenades
G3SG1SG = G3SG1 + Scout + Grenades
MNIG = MP5 Navy + infinite ammo + Grenades
GLOW = Glow
SERVERS = Servers
ATIVAR_ADMIN = Activate Admin
ADD_ADMIN = Request to Admin
BUY = bought
NEXTNAME = More
BACKNAME = Back
EXITNAME = Exit
SITE_ADMIN = Ask admin on the site GuruQA.com
SITE = Rank on the site GuruQA.com
FAVORITES = IP Favorites:
WHITE = White
RED = Red
ORANGE = Orange
YELLOW = Yellow
GREEN = Green
LIGHT_BLUE = Light Blue
BLUE = Blue
ROSE = Rose
REMOVE_GLOW = Remove Glow
SUPREMO = Supreme
AMGPG = AK47 + M4A1 + Galil + Pistols + Grenades
ASGSG = AWP + Scout + G3SGL + SG550 + Grenades
M4IAG = M4A1 + Infinite ammo + Grenades
M2IG = M249 + Infinite ammo + Grenades
GIG = G3SG1 + Infinite ammo + Grenades
SG550IG = SG550 + Infinite ammo + Grenades
REMOVE_WEAPONS = Remove weapons
ESUPREME = Enable Supreme
ADD_SUPREME = Request to Supreme
DISABLED = disabled the
ACTIVATED = Activate the
RESTART_ROUND = restart round
MASTER_GURU = Master & Guru
ALLWEAPONS = All Weapons
AAMP5F = AK47 + AWP + M4A1 + Pistols + 5 HE + 5 Flash
SKH1000 = Shield + Knife + Health 1000
SS = Speed + Scout
SP = Speed + Pistols
K20F = Knife + 20 Flash
S20G = Shield + 20 Grenades
LIGHTNING = Lightning
EXPLOSION = Explosion
BAN_ADMIN_SUPREME = Ban Admin / Supreme
REMOVE_ALL_BANS = Remove all permanent bans
ATIVAR_GURU = Enable Guru
ATIVAR_VIP = Enable VIP
ADD_GURU = Request to Guru
KILLED = killed
BANNED = banned
USE_SXE = Use sXe or Steam to activate Admin!
MASTER = Master:
REPUTATION = Reputation:
ENTRE_TOP50 = Enter the Top50 + positive reputation to win Admin
REMOVED_ALL_BANS = Removed all bans
KICK = kick
KICKSUPREMO = kicked by the Supreme
REMOVE_GUNS = removed the weapons of
HUMBLED = humbled
TOPROUND = gained 5 points!
VOTEP = gained 10 points!
VOTEN = lost 10 points!
POSITIVE = Positive
NEGATIVE = Negative
STEAM_VOTE = Only Steam can vote!
SXE_STEAM = Only sXe or Steam may have reputation!
YOUKILL = You need to kill more than 100 in order to vote!
YOUVOTE = you already positivou this Player!
YOUVOTEN = you already negative this player!
SERVER_PLAYER_REDIRECT = went to the server:
USE_SXE_RANK = Use sXe or Steam to enter on rank!
KILLVIP = killed VIP - Won 5 points!

[bp]
AK47AWPMPG = AK47 + AWP + M4A1 + Pistolas + Grenadas
DSG = Deagle + Escudo + Granadas
IK = Invisibilidade + Faca
KHK = Faca + Saúde 500 + Colete 500
3G = 30 Granadas
12IG = 12 + Munição infinita + Granadas
G3SG1SG = G3SG1 + Scout + Granadas
MNIG = MP5 Navy + Munição infinita + Granadas
GLOW = Brilho
SERVERS = Servidores
ATIVAR_ADMIN = Ativar Admin
ADD_ADMIN = Pedir Admin
BUY = comprou
NEXTNAME = Mais
BACKNAME = Voltar
EXITNAME = Sair 
SITE_ADMIN = Pedidos de admins no site GuruQA.com
SITE = Rank no site GuruQA.com
FAVORITES = IP Favoritos:
WHITE = Branco
RED = Vermelho
ORANGE = Laranja
YELLOW = Amarelo
GREEN = Verde
LIGHT_BLUE = Azul claro
BLUE = Azul
ROSE = Rosa
REMOVE_GLOW = Remover Brilho
SUPREMO = Supremo
AMGPG = AK47 + M4A1 + Galil + Pistolas + Granadas
ASGSG = AWP + Scout + G3SGL + SG550 + Granadas
M4IAG = M4A1 + Munição infinita + Granadas
M2IG = M249 + Munição infinita + Granadas
GIG = G3SG1 + Munição infinita + Granadas
SG550IG = SG550 + Munição infinita + Granadas
REMOVE_WEAPONS = Remover armas
ESUPREME = Ativar Supremo
ADD_SUPREME = Pedir Supremo
DISABLED = desativou o
ACTIVATED = Ativou o
RESTART_ROUND = reiniciou o jogo
MASTER_GURU = Mestre & Guru
ALLWEAPONS = Todas as Armas
AAMP5F = AK47 + AWP + M4A1 + Pistolas + 5 Granadas + 5 Flash
SKH1000 = Escudo + Faca + Saúde 1000
SP = Velocidade + Pistolas
K20F = Faca + 20 Flash
S20G = Escudo + 20 Granadas
LIGHTNING = Relâmpago
EXPLOSION = Explosão
BAN_ADMIN_SUPREME = Banir Admin / Supremo
REMOVE_ALL_BANS = Remover todos os bans permanentes
ATIVAR_GURU = Ativar Guru
ATIVAR_VIP = Ativar VIP
ADD_GURU = Pedir Guru
KILLED = matou
BANNED = baniu
USE_SXE = Use sXe ou Steam para ativar o Admin!
MASTER = Mestre:
REPUTATION = Reputação:
ENTRE_TOP50 = Entre no Top50 + Reputação positiva para ganhar Admin
REMOVED_ALL_BANS = Removeu todos os bans
KICK = kickou
KICKSUPREMO = kickado pelo Supremo
REMOVE_GUNS = removeu as armas de
HUMBLED = humilhou
TOPROUND = ganhou 5 Pontos!
VOTEP = ganhou 10 Pontos!
VOTEN = perdeu 10 pontos!
POSITIVE = Positivo
NEGATIVE = Negativo
STEAM_VOTE = Apenas Steam pode votar!
SXE_STEAM = Apenas sXe ou Steam pode ter reputação!
YOUKILL = você precisa matar mais de 100 para poder votar!
YOUVOTE = você já positivou esse jogador!
YOUVOTEN = você já negativou este jogador!
SERVER_PLAYER_REDIRECT = foi para o servidor:
USE_SXE_RANK = Use sXe ou Steam para entrar no rank!
KILLVIP = matou o VIP - Ganhou 5 pontos!



hlsdk_const.inc
download/file.php?id=26163




MySQL:

Código: Selecionar todos

CREATE TABLE `players_rank` (
		`id` mediumint(7) UNSIGNED NOT NULL AUTO_INCREMENT ,
		`steam_id` VARCHAR(32) NOT NULL ,
		`name` VARCHAR(32) NOT NULL ,
		`admin` mediumint(2) UNSIGNED NOT NULL DEFAULT '0' ,
		`supreme` mediumint(13) NOT NULL DEFAULT '0' ,
		`positive` smallint(4) NOT NULL DEFAULT '0' ,		
		`negative` smallint(4) NOT NULL DEFAULT '0' ,			
		`reputation` mediumint(7) NOT NULL DEFAULT '0' ,		
		`rank_old` mediumint(7) NOT NULL DEFAULT '0' ,		
		`score` mediumint(7) NOT NULL DEFAULT '0' ,
		`score_old` mediumint(7) NOT NULL DEFAULT '0' ,
		`kills` mediumint(7) NOT NULL DEFAULT '0' ,
		`deaths` mediumint(7) UNSIGNED NOT NULL DEFAULT '0' ,
		`headshots` mediumint(5) UNSIGNED NOT NULL DEFAULT '0' ,
		`topround` mediumint(7) NOT NULL DEFAULT '0' ,	
                `killvip` mediumint(7) NOT NULL DEFAULT '0' ,	
		PRIMARY KEY (`id`)
	);

CREATE TABLE `players_votes` (
		`user_steam` VARCHAR(32) NOT NULL ,
		`user_vote_steam` VARCHAR(32) NOT NULL ,
		`positive` tinyint(3) NOT NULL DEFAULT '0' ,		
		`negative` tinyint(3) NOT NULL DEFAULT '0'
	);
	
CREATE TABLE `servers_ips` (
		`id` mediumint(7) UNSIGNED NOT NULL AUTO_INCREMENT ,
		`s_name` VARCHAR(65) NOT NULL ,
		`s_players` mediumint(3) UNSIGNED NOT NULL DEFAULT '0' ,
		`s_maxplayers` mediumint(3) UNSIGNED NOT NULL DEFAULT '0' ,	
		`s_map` VARCHAR(26) NOT NULL DEFAULT '0' ,
                `s_ip` VARCHAR(22) NOT NULL DEFAULT '0' ,
		`s_score` mediumint(10) NOT NULL DEFAULT '0' ,
		`s_online` mediumint(1) UNSIGNED NOT NULL DEFAULT '0' ,
        PRIMARY KEY (`id`)		
	);
	
		
	
	
	


Demo:

http://www.guruqa.com/servers.php
http://www.guruqa.com/servers.php?s=rank
http://www.guruqa.com/servers.php?s=topday
http://www.guruqa.com/servers.php?s=topkills
http://www.guruqa.com/servers.php?s=topdeaths
http://www.guruqa.com/servers.php?s=topheadshots
http://www.guruqa.com/servers.php?s=topround
http://www.guruqa.com/servers.php?s=reputation
http://www.guruqa.com/servers.php?s=admins
http://www.guruqa.com/servers.php?s=killsvip