•  
     

ajudem top15 model sem o stats para plugin Basic SkillPoints v2.0.2 Special Edition que fucione no top15 do skillpoints



presciso de uma sma top15 model e adm ou arruma essa sma para o para o skillponts que funcione sem o stats e procure no top15 do skillpoinsts do plugin

esse e o plugin Basic SkillPoints v2.0.2 Special Edition

site dele https://forums.alliedmods.net/showthread.php?t=191708




meu top15 ele fuciona mais nao acha o top15 do skillpoint

include <amxmodx>
#include <cstrike>
#include <csx>
enum
{
TEAM_UNASSIGNED,
TEAM_T,
TEAM_CT,
TEAM_SPECTATOR
};
public plugin_precache(){
precache_model("models/player/CLBR_SUPREMO_TR/CLBR_SUPREMO_TR.mdl");
precache_model("models/player/CLBR_ADM_TR/CLBR_ADM_TR.mdl");
precache_model("models/player/CLBR_VIP_TR/CLBR_VIP_TR.mdl");
precache_model("models/player/vip/vip.mdl");
}
new hmodel;
public plugin_init(){
register_plugin("Top15 Model", "1.0", "Anderson");
register_clcmd("say /model","display_model");
register_clcmd("say_team /model","display_model");
register_clcmd("chooseteam","team_join");
hmodel=CreateHudSyncObj();
}
public team_join(id){
cs_reset_user_model(id);
return PLUGIN_CONTINUE;
}
public display_model(id){
if(is_user_alive(id)){
new izStats[8] = {0, ...}
new izBody[8],name[32],iRankPos;
iRankPos = get_user_stats(id,izStats,izBody);
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:
{
if(iRankPos <= 15 || get_user_flags(id) & ADMIN_RESERVATION){
new menu=menu_create("ClaN Brasilia Model","menu_modeltr");
menu_additem(menu,"Panico");
menu_additem(menu,"Justiceiro");
menu_additem(menu,"Folha maconha");
menu_additem(menu,"vip comum");
menu_display(id,menu);
}else{
ShowSyncHudMsg(0,hmodel,"%s - entre no Top15!",name);
}
}
case TEAM_CT:
{
if(iRankPos <= 15 || get_user_flags(id) & ADMIN_RESERVATION){
new menu=menu_create("ClaN Brasilia Model","menu_modelct");
menu_additem(menu,"Panico");
menu_additem(menu,"Justiceiro");
menu_additem(menu,"Folha maconha");
menu_additem(menu,"Vip comum");
menu_display(id,menu);
}else{
ShowSyncHudMsg(0,hmodel,"%s - entre no Top15!",name);
}
}
case TEAM_SPECTATOR:
{
if(iRankPos <= 15){
ShowSyncHudMsg(0,hmodel,"%s - entre no jogo!",name);
}else{
ShowSyncHudMsg(0,hmodel,"%s - entre no Top15!",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);
switch(item){
case 0:
{
cs_set_user_model(id,"CLBR_SUPREMO_TR");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Panico!",name);
}
case 1:
{
cs_set_user_model(id,"CLBR_ADM_TR");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Justiceiro!",name);
}
case 2:
{
cs_set_user_model(id,"CLBR_VIP_TR");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Folha maconha!",name);
}
case 3:
{
cs_set_user_model(id,"vip");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Vip comum!",name);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public menu_modelct(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);
switch(item){
case 0:
{
cs_set_user_model(id,"CLBR_SUPREMO_TR");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Panico!",name);
}
case 1:
{
cs_set_user_model(id,"CLBR_ADM_TR");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Justiceiro!",name);
}
case 2:
{
cs_set_user_model(id,"CLBR_VIP_TR");
ShowSyncHudMsg(0,hmodel,"%s ganhou o folha maconha!",name);
}
case 3:
{
cs_set_user_model(id,"vip");
ShowSyncHudMsg(0,hmodel,"%s ganhou o Vip comum!",name);
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
 


Oh! This article has suggested to me many new ideas. I will embark on doing it. Hope you can continue to contribute your talents in this area. Thank you.
ludo king
Página inicial