•  
     

Top15 Admin 1.3 - Top15 ganha Admin + Models + Glow + Armas

Plugin que da Admin, Modelos, Armas e Glow para o Top15 ou Admin

Tem Top Round, sons de facada e HE, etc.

Comandos:
amx_top15_admin 1
amx_weapons_admin 1
amx_models_admin 1
amx_glow_admin 1

Versão 1.2 - Testado em AMXX 1.8.3


Digite /admin para ganhar os poderes


Atenção: Se você usa o dproto e sXe, vc tem que configurar para gerar as IDs do sXe e IDs do no-sXe

Aqui tem a config correta do dproto para gerar as IDs do sXe e no-sXe: http://www.guruqa.com/topic.php?t=7827
Imagem
Imagem
Imagem
Imagem
Imagem
Imagem
Imagem
Imagem


Modelos:
Exterminador
Imagem
Coringa
Imagem
Panico
Imagem
Jason
Imagem
Robocop
Imagem
Justiceiro
Imagem
Super CT
Imagem
Policial
Imagem
2 modelos femininos
Imagem
Imagem


Armas:
AK47 + AWP + M4A1 + Pistolas + Granadas
Deagle + Escudo + Granadas");
G3SG1 + Scout + Granadas");
MP5 Navy + Munição infinita + Granadas
12 + Munição Infinita + Granadas



Glow:
glow branco
glow vermelho
glow laranja!
glow amarelo
glow verde!
glow azul claro
glow azul
glow rosa


Código: Selecionar todos

#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <csx>
#include <fun>
#include <hamsandwich>
#include <hlsdk_const>
#define DMG_GRENADE (1<<24)
enum
{
TEAM_UNASSIGNED,
TEAM_T,
TEAM_CT,
TEAM_SPECTATOR
};
new const knifeounds[11][]={
"guruqa/nemesis1.wav",
"guruqa/human_pain1.wav",
"guruqa/scream1.wav",
"guruqa/scream2.wav",
"guruqa/scream3.wav",
"guruqa/scream4.wav",
"guruqa/nade.wav",
"guruqa/suicide2.wav",
"guruqa/suicide4.wav",
"guruqa/mkjhdeath.wav",
"guruqa/survivor2.wav"
};
public plugin_precache(){
precache_model("models/player/guruqa_ct/guruqa_ct.mdl");
precache_model("models/player/guruqa_t/guruqa_t.mdl");
precache_model("models/player/guruqa_joker/guruqa_joker.mdl");
precache_model("models/player/guruqa_punisher/guruqa_punisher.mdl");
precache_model("models/player/guruqa_scream3/guruqa_scream3.mdl");
precache_model("models/player/guruqa_superct/guruqa_superct.mdl");
precache_model("models/player/guruqa_terminator/guruqa_terminator.mdl");
precache_model("models/player/guruqa_robocop/guruqa_robocop.mdl");
precache_model("models/player/guruqa_tfemale/guruqa_tfemale.mdl");
precache_model("models/player/guruqa_ctfemale/guruqa_ctfemale.mdl");
for(new i=0;i<12;i++){
precache_sound(knifeounds[i]);
}
}
new hmodel,hadmin,topround,kills[33],hs[33];
new Float:roundtime;
new izStats[8] = {0, ...} 
new izBody[8],name[32],iRankPos;
public plugin_init(){
register_plugin("Top15 Admin","1.3","Anderson");
RegisterHam(Ham_Spawn,"player","weaponroundstart",true);
register_clcmd("say /admin","menu_admin");
register_clcmd("say_team /admin","menu_admin");
register_clcmd("chooseteam","team_join");
RegisterHam(Ham_TakeDamage,"player","HE",false);
register_event("HLTV","OnHltv","a","1=0","2=0");
register_event("DeathMsg","OnDeathMsg","a");
register_event("DeathMsg","OnRoundEnd","a");
register_logevent("toproundend",2,"1=Round_End");
register_cvar("amx_top15_admin","1");
register_cvar("amx_weapons_admin","1");
register_cvar("amx_models_admin","1");
register_cvar("amx_glow_admin","1");
set_msg_block(get_user_msgid("HudTextArgs"),BLOCK_SET);
hmodel=CreateHudSyncObj();
hadmin=CreateHudSyncObj();
topround=CreateHudSyncObj();
}
public team_join(id){
cs_reset_user_model(id);
return PLUGIN_CONTINUE;
}
public weaponroundstart(id){
if(is_user_alive(id)){
cs_set_user_money(id,16000);
}
return PLUGIN_HANDLED;
}

public menu_admin(id){
new name[32];
get_user_name(id,name,31);
new menu=menu_create("\rAdmin \wGuruQA.com\r","m_admin");
if(get_cvar_num("amx_top15_admin") == 1){
menu_additem(menu,"Admin");	
}else{
menu_additem(menu,"\dAdmin");
}
if(get_cvar_num("amx_weapons_admin") == 1){
menu_additem(menu,"Armas");	
}else{
menu_additem(menu,"\dArmas");
}
if(get_cvar_num("amx_models_admin") == 1){
menu_additem(menu,"Modelos");	
}else{
menu_additem(menu,"\dModelos");
}
if(get_cvar_num("amx_glow_admin") == 1){
menu_additem(menu,"Brilho");	
}else{
menu_additem(menu,"\dBrilho");
}
menu_display(id,menu);
}
public m_admin(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
switch(item){
case 0:
{
if(get_cvar_num("amx_top15_admin") == 1){
display_admin(id);
}else{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
case 1:
{
if(get_cvar_num("amx_weapons_admin") == 1){
display_weapons(id);
}else{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
case 2:
{
if(get_cvar_num("amx_models_admin") == 1){
display_model(id);
}else{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}
case 3:
{
if(get_cvar_num("amx_glow_admin") == 1){
display_glow(id);
}else{
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);
iRankPos = get_user_stats(id,izStats,izBody);
get_user_authid(id,steam_id,31);
if(equal(steam_id,"VALVE_0:4",9) || equal(name,"[NO-sXe-I]",10) || equal(name,"[16bpp] [NO-sXe-I]",18)){
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
show_hudmessage(0,"%s - Use sXe para ativar o Admin!",name);
}else{
if(iRankPos <= 15 || get_user_flags(id) & ADMIN_RESERVATION){	
if(get_user_flags(id) & ADMIN_USER){
new flags = read_flags("abceijuv");
set_user_flags(id,flags);
set_hudmessage(random(256),random(256),random(256),-1.0,0.7,2,6.0,7.0,0.1,0.7,2);
ShowSyncHudMsg(0,hadmin,"Admin Top15: %s Online! - Rank: %d",name,iRankPos);
}else{
set_hudmessage(random(256),random(256),random(256),-1.0,0.7,2,6.0,7.0,0.1,0.7,2);
ShowSyncHudMsg(0,hadmin,"%s - Seu Admin já está ativado!",name);
}
}else{
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
show_hudmessage(0,"%s - Entre no Top15! Rank: %d",name,iRankPos);
}
}
return PLUGIN_HANDLED;
}


public display_weapons(id){
if(is_user_alive(id)){
new menu=menu_create("\rArmas \wGuruQA.com\r","menu_weapons");
menu_additem(menu,"AK47 + AWP + M4A1 + Pistolas + Granadas");
menu_additem(menu,"Deagle + Escudo + Granadas");
menu_additem(menu,"G3SG1 + Scout + Granadas");
menu_additem(menu,"MP5 Navy + Munição infinita + Granadas!");
menu_additem(menu,"12 + Munição Infinita + Granadas")
menu_setprop(menu,MPROP_NEXTNAME,"Mais");
menu_setprop(menu,MPROP_BACKNAME,"Voltar");
menu_setprop(menu,MPROP_EXITNAME,"Sair");
menu_display(id,menu);
}
}
public menu_weapons(id,menu,item){ 
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31);
set_hudmessage(192,192,192,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
iRankPos = get_user_stats(id,izStats,izBody); 
if(iRankPos <= 15 || get_user_flags(id) & ADMIN_RESERVATION){
if(cs_get_user_buyzone(id) && get_user_health(id) == 100 && get_user_armor(id) < 100 && (get_gametime() < roundtime + 25)){
switch(item){ 
case 0: 
{
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 - Ganhou AK47 + AWP + M4A1 + Pistolas + Granadas!",name);
}
case 1: 
{
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 - Ganhou Deagle + Escudo + Granadas!",name);
}
case 2: 
{
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 - Ganhou G3SG1 + Scout + Granadas!",name);
}
case 3: 
{
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 - Ganhou MP5 Navy + Munição infinita + Granadas!",name);
}
case 4:
{
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 - Ganhou 12 + Munição Infinita + Granadas!",name); 
} 
}
}
}else{
set_hudmessage(192,192,192,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hmodel,"%s - Ative o seu Admin!",name);
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}


public display_model(id){
if(is_user_alive(id)){
new name[32];
get_user_name(id,name,31); 
new CsTeams:Team = cs_get_user_team(id);
set_hudmessage(255,255,255,0.01,0.6,0,6.0,6.0);
switch (Team){
case TEAM_T:
{
new menu=menu_create("\rModel \wGuruQA.com\r","menu_modeltr");
menu_additem(menu,"Terminator");
menu_additem(menu,"Joker");
menu_additem(menu,"Scream");
menu_additem(menu,"Jason");
menu_additem(menu,"Woman");
menu_display(id,menu);
}
case TEAM_CT:
{
new menu=menu_create("\rModel \wGuruQA.com\r","menu_modelct");
menu_additem(menu,"Robocop");
menu_additem(menu,"Punisher");
menu_additem(menu,"SupercCT");
menu_additem(menu,"Police");
menu_additem(menu,"Woman");
menu_additem(menu,"VIP");
menu_display(id,menu);
}  
case TEAM_SPECTATOR:
{
ShowSyncHudMsg(0,hmodel,"%s - entre no jogo!",name);
}  
}
}
return PLUGIN_HANDLED; 
}
public menu_modeltr(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31);
set_hudmessage(random(256),random(256),random(256),-1.0,0.6,2,6.0,6.0,0.1,0.7,2);
iRankPos = get_user_stats(id,izStats,izBody);
if(iRankPos <= 15 || get_user_flags(id) & ADMIN_RESERVATION){
switch(item){
case 0:
{
cs_set_user_model(id,"guruqa_terminator");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Exterminador!",name);
}
case 1:
{
cs_set_user_model(id,"guruqa_joker");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Coringa!",name);
}
case 2:
{
cs_set_user_model(id,"guruqa_scream3");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Panico!",name);
}
case 3:
{
cs_set_user_model(id,"guruqa_t");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Jason!",name);
}
case 4:
{
cs_set_user_model(id,"guruqa_tfemale");
ShowSyncHudMsg(0,hmodel,"%s ganhou uma bela mulher!",name);
}
}
}else{
set_hudmessage(192,192,192,0.02,0.73,0,6.0,8.0,0.1,0.2,4);
ShowSyncHudMsg(0,hmodel,"%s - Ative o seu Admin!",name);
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public menu_modelct(id,menu,item){
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
get_user_name(id,name,31);
set_hudmessage(random(256),random(256),random(256),-1.0,0.6,2,6.0,6.0,0.1,0.7,2);
iRankPos = get_user_stats(id,izStats,izBody);
if(iRankPos <= 15 || get_user_flags(id) & ADMIN_RESERVATION){
switch(item){
case 0:
{
cs_set_user_model(id,"guruqa_robocop");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Robocop!",name);
}
case 1:
{
cs_set_user_model(id,"guruqa_punisher");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Justiceiro!",name);
}
case 2:
{
cs_set_user_model(id,"guruqa_superct");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Super CT!",name);
}
case 3:
{
cs_set_user_model(id,"guruqa_ct");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Policial!",name);
}
case 4:
{
cs_set_user_model(id,"guruqa_ctfemale");
ShowSyncHudMsg(0,hmodel,"%s ganhou uma bela mulher!",name);
}
case 5:
{
set_pdata_int(id,126,9);
dllfunc(DLLFunc_ClientUserInfoChanged,id);
ShowSyncHudMsg(0,hmodel,"%s ganhou o VIP!",name);
}
}
}else{
set_hudmessage(192,192,192,0.02,0.73,0,6.0,8.0,0.1,0.2,4); 
ShowSyncHudMsg(0,hmodel,"%s - Ative o seu Admin!",name);
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}

public display_glow(id){
if(is_user_alive(id)){
new menu=menu_create("\rGlow \wGuruQA.com\r","menu_glow");
menu_additem(menu,"Branco");
menu_additem(menu,"Vermelho");
menu_additem(menu,"Laranja");
menu_additem(menu,"Amarelo");
menu_additem(menu,"Verde");
menu_additem(menu,"Azul claro");
menu_additem(menu,"Azul");
menu_additem(menu,"Rosa");
menu_additem(menu,"Remover Glow");
menu_setprop(menu,MPROP_NEXTNAME,"Mais");
menu_setprop(menu,MPROP_BACKNAME,"Voltar");
menu_setprop(menu,MPROP_EXITNAME,"Sair");
menu_display(id,menu);
}
}
public menu_glow(id,menu,item){
set_hudmessage(192,192,192,0.02,0.73,0,6.0,8.0,0.1,0.2,4); 
if(item == MENU_EXIT){
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id,name,31);
iRankPos = get_user_stats(id,izStats,izBody); 	
if(iRankPos <= 15 || get_user_flags(id) & ADMIN_RESERVATION){
switch(item){ 
case 0: 
{
ShowSyncHudMsg(0,hadmin,"%s ganhou o glow branco!",name);
set_user_rendering(id,kRenderFxGlowShell,192,192,192,kRenderNormal,25);
}
case 1: 
{
ShowSyncHudMsg(0,hadmin,"%s ganhou o glow vermelho!",name);
set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25);
}
case 2: 
{
ShowSyncHudMsg(0,hadmin,"%s ganhou o glow laranja!",name); 
set_user_rendering(id,kRenderFxGlowShell,255,140,0,kRenderNormal,25);
}
case 3: 
{
ShowSyncHudMsg(0,hadmin,"%s ganhou o glow amarelo!",name); 
set_user_rendering(id,kRenderFxGlowShell,255,255,0,kRenderNormal,25);
}
case 4:
{
ShowSyncHudMsg(0,hadmin,"%s ganhou o glow verde!",name); 
set_user_rendering(id,kRenderFxGlowShell,0,255,0,kRenderNormal,25);
} 
case 5: 
{
ShowSyncHudMsg(0,hadmin,"%s ganhou o glow azul claro!",name); 
set_user_rendering(id,kRenderFxGlowShell,0,255,255,kRenderNormal,25);
} 
case 6: 
{  
ShowSyncHudMsg(0,hadmin,"%s ganhou o glow azul!",name);
set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25);
}
case 7: 
{
ShowSyncHudMsg(0,hadmin,"%s ganhou o glow rosa!",name); 
set_user_rendering(id,kRenderFxGlowShell,255,0,255,kRenderNormal,25);
}
case 8: 
{
ShowSyncHudMsg(0,hadmin,"%s Removeu o Glow!",name); 
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}else{
ShowSyncHudMsg(0,hadmin,"%s - Ative o seu Admin!",name);
menu_destroy(menu);
return PLUGIN_HANDLED;
}
}


public client_disconnect(id){
kills[id] = hs[id] = 0;
}   
public OnHltv(){
arrayset(kills,0,32);
arrayset(hs,0,32);
roundtime = get_gametime();
}
public OnDeathMsg(){
new id=read_data(1);
if(!is_user_connected(id)){
return;
}   
kills[id]++;
if(read_data(3)){
hs[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.52,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.50,1,6.0,5.0);
ShowSyncHudMsg(0,topround,"%s humilhou %s!",name,name_v);
client_cmd(0,"spk %s",knifeounds[random_num(0,sizeof knifeounds - 1)]);
}
if(wpn[1] == 'r'){
client_cmd(0,"spk guruqa/mkjhdeath.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,"kick_model",iVictim);
}

public kick_model(id){
if(is_user_connected(id)){
new model[32];
cs_get_user_model(id,model,31);
client_cmd(id,"cl_minmodels 0");
new CsTeams:Team = cs_get_user_team(id);
switch(Team){
case TEAM_T:
{
if(equal(model,"leet") || equal(model,"arctic") || equal(model,"terror") || equal(model,"guerilla") || equal(model,"guruqa_t") || equal(model,"guruqa_joker") || equal(model,"guruqa_scream3") || equal(model,"guruqa_scream3") || equal(model,"guruqa_terminator") || equal(model,"guruqa_tfemale")){
}else{
server_cmd("kick #%d ^"Modelo proibido!^"",get_user_userid(id))
} 
}
case TEAM_CT:
{
if(equal(model,"gign") || equal(model,"sas") || equal(model,"gsg9") || equal(model,"urban") || equal(model,"vip") || equal(model,"guruqa_ct") || equal(model,"guruqa_robocop") || equal(model,"guruqa_superct") || equal(model,"guruqa_ctfemale") || equal(model,"guruqa_punisher")){
}else{
server_cmd("kick #%d ^"Modelo proibido!^"",get_user_userid(id))
}
}    
}
}
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 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] && hs[id] > hs[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.34,0,6.0,50.0); 
ShowSyncHudMsg(0,topround, "Top Round: %s - Kills: %i  HS: %i", name,kills[best],hs[best]);
}
}
public toproundend(){
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] && hs[id] > hs[best]))
best = id;
}  
if (kills[best] >= 2){
new name[32];
get_user_name(best,name,31);  
set_hudmessage(255,0,0,-1.0,-0.52,1,6.0,5.0);
show_hudmessage(0,"(%d)^n--0--[%d]--0--^n[0]^n0 0^n_/  \_",kills[best],hs[best]);
set_hudmessage(255,0,0,-1.0,-0.50,1,6.0,5.0);
ShowSyncHudMsg(0,topround,"Top Round: %s",name);
}
}



AMXX: top15admin.amxx
SMA: top15admin.sma
Sons: sound.rar
Modelos: models.rar
 
Ajeitei um bug

Eu tinha esquecido de colocar o download dos sons no plugin_precache

Código: Selecionar todos

for(new i=0;i<12;i++){
precache_sound(knifeounds[i]);
}