AcasaAcasa  PortalPortal  FAQFAQ  CautareCautare  InregistrareInregistrare  ConectareConectare  ContactContact  BlogBlog  

Distribuiţi | .
 

 Tutorial cum sa adaugi/scoti comanda amx_last din admincmd

Vezi subiectul anterior Vezi subiectul urmator In jos 
AutorMesaj
Vlad
avatar

Data de inscriere : 30/08/2012
Avertismente : Nici unul
Mesaje : 471
Money : 5235
Multumiri : 23
Administrators

MesajSubiect: Tutorial cum sa adaugi/scoti comanda amx_last din admincmd   Vin Ian 11, 2013 3:32 pm

Am observat ca multi se plang de lipsa acestei comenzi "amx_last".
Aveti AICI sursa de la admincmd.
Deschideti fisierul si cautati urmatoarea linie:
Cod:
register_concmd("amx_last", "cmdLast", ADMIN_BAN, "- list the last few disconnected clients info");
Stergeti randul.
Acum, cautati (pe la sfarsit):
Cod:
public cmdLast(id, level, cid)
{
   if (!cmd_access(id, level, cid, 1))
   {
      return PLUGIN_HANDLED;
   }
   
   new name[32];
   new authid[32];
   new ip[32];
   new flags[32];
   new access;
   
   
   // This alignment is a bit weird (it should grow if the name is larger)
   // but otherwise for the more common shorter name, it'll wrap in server console
   // Steam client display is all skewed anyway because of the non fixed font.
   console_print(id, "%19s %20s %15s %s", "name", "authid", "ip", "access");
   
   for (new i = 0; i < g_Size; i++)
   {
      GetInfo(i, name, charsmax(name), authid, charsmax(authid), ip, charsmax(ip), access);
      
      get_flags(access, flags, charsmax(flags));
      
      console_print(id, "%19s %20s %15s %s", name, authid, ip, flags);
   }
   
   console_print(id, "%d old connections saved.", g_Size);
   
   return PLUGIN_HANDLED;
}
Selectati - stergeti. Salvati si compilati sursa.
Acum aveti un plugin fara amx_last!

Ca sa il faceti la loc, cautati urmatorul rand:
Cod:
register_concmd("amx_nick", "cmdNick", ADMIN_SLAY, "<name or #userid> <new nick>")
   register_clcmd("amx_rcon", "cmdRcon", ADMIN_RCON, "<command line>")
Modificati-l in:
Cod:
register_concmd("amx_nick", "cmdNick", ADMIN_SLAY, "<name or #userid> <new nick>")
   register_concmd("amx_last", "cmdLast", ADMIN_BAN, "- list the last few disconnected clients info");
   register_clcmd("amx_rcon", "cmdRcon", ADMIN_RCON, "<command line>")
Iar la sfarsit, dupa:
Cod:
   return PLUGIN_HANDLED
}
Adaugati
Cod:

public cmdLast(id, level, cid)
{
  if (!cmd_access(id, level, cid, 1))
  {
      return PLUGIN_HANDLED;
  }
 
  new name[32];
  new authid[32];
  new ip[32];
  new flags[32];
  new access;
 
 
  // This alignment is a bit weird (it should grow if the name is larger)
  // but otherwise for the more common shorter name, it'll wrap in server console
  // Steam client display is all skewed anyway because of the non fixed font.
  console_print(id, "%19s %20s %15s %s", "name", "authid", "ip", "access");
 
  for (new i = 0; i < g_Size; i++)
  {
      GetInfo(i, name, charsmax(name), authid, charsmax(authid), ip, charsmax(ip), access);
     
      get_flags(access, flags, charsmax(flags));
     
      console_print(id, "%19s %20s %15s %s", name, authid, ip, flags);
  }
 
  console_print(id, "%d old connections saved.", g_Size);
 
  return PLUGIN_HANDLED;
}
Sus In jos
http://tia4all.forumz.ro
Topic: Re:

Tutorial cum sa adaugi/scoti comanda amx_last din admincmd

Indisponibil

Ai putin timp? Fa-ti un cont ca sa postezi si tu! sau, continua cautarea pe internet.
Did this helped?





Rang: Inregistrat
Data de inregistrare: 31/01/2012
SusIn jos
Pagina 1 din 1

 Subiecte similare

-
» [Counter-Strike]Ce face comanda destroy , si cum scapam de aceasta?
» Tutorial Avatar
» [Tutorial] Comenzi RCON SA:MP
» Cum sa adaugi bara pentru parteneri la forumul tau gratuit
» Alba / Neagra

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
tia4all.wikiforum.ro :: Games - tia4all.forumz.ro :: Counter Strike :: Tutoriale CS-