•  
     

Como deixar o Plugin Top15 Ganha Adm apenas para quem usa sXe?

Código: Selecionar todos

#include <amxmodx>
#include <csstats>
#include <hamsandwich>
#include <csx>
new PLUGIN [] = "Top Flags"
new VERSION [] = "2.1"
new AUTHOR [] = ""
new cvar_ranks, cvar_flags
static const COLOR[] = "^x03"
public plugin_init()
{
   register_plugin( PLUGIN, VERSION, AUTHOR );
   register_dictionary("topflags.txt");
   RegisterHam(Ham_Spawn, "player", "CheckPlayerRank", 1);
   cvar_ranks = register_cvar("amx_topranks", "15")
   cvar_flags = register_cvar("amx_topflags", "cdbeijnostuvwy")
}
public CheckPlayerRank(id)
{
   new string1[16]
   get_pcvar_string(cvar_flags, string1, 15)
   new flags = read_flags(string1)
   if(!(get_user_flags(id) & ADMIN_USER)) //its check is the player in user.ini or not
      return PLUGIN_CONTINUE
   new stats[8], bodyhits[8]
   new iRank;
   iRank = get_user_stats(id, stats, bodyhits)
   if(1 <= iRank <= get_pcvar_num(cvar_ranks))
   {
      set_user_flags(id, get_user_flags(id) | flags)
      client_print(id, print_chat, "%s Entre no Top15 e Ganhe Admin",COLOR)
   }
   else
   {
      remove_user_flags(id, flags)
   }
   return PLUGIN_CONTINUE
}
public client_infochanged(id)
{
        new player_name[32], newName[32]
        get_user_name(id, player_name, 31)
        get_user_info(id, "name", newName, 31)
   if (!equali(newName, player_name))
               set_task(1.0, "CheckPlayerRank", id)
}  


Anderson achei esse plugin tem como deixar ele apenas pra quem usa sXe...