Nous sommes le 28 Mar 2024, 16:47


Online     TeamSpeak UT99     UnrealTournament-V3     Download     Utfiles medor     Vote Weborama     Vote Unrealtop200     Vote xtremetop100     free TeamSpeak     Unreal Soundtracks     Google    Mini-Chat Mini-Chat

Poster un nouveau sujet Répondre au sujet  [ 1 message ] 
 ***Tuto*** BannerName on Nexgenbanneddialog 
Auteur Message
Administrateur
Avatar de l’utilisateur

Inscription: 01 Oct 2008, 01:14
Messages: 5598
Nouveau message ***Tuto*** BannerName on Nexgenbanneddialog
Letylove49 a écrit:
ok thanks i have fun the way to solve the problem for NextenBanned dialog:

the solution was to add bannerName in the fonction isBanned like this :

Code:
function checkLogin(NexgenClient client) {
   local string password;
   local bool bRejected;
   local string reason;
   local string banReason;
   local string banPeriod;
   local string bannerName;
   local bool allowSpecReconnect;
   local int index;
   local int k0, k1, k2;
   local string cs0, cs1, cs2;
   local name rejectType;
   local string popupWindowClass;
   local string popupArgs[4];
   local string savedPlayerName;



Code:

   // Check for bans.
   if ((!bRejected) && isBanned(client, banReason, banPeriod, bannerName)) {
      bRejected = true;
      rejectType = RT_Banned;
      reason = lng.bannedMsg;
      popupWindowClass = "NexgenBannedDialog";
      popupArgs[0] = banReason;
      popupArgs[1] = banPeriod;
      popupArgs[2] = bannerName;


Code:
/***************************************************************************************************
*
*  $DESCRIPTION  Checks if the specified client is banned on this server.
*  $PARAM        client     The client for which the ban is to be checked.
*  $PARAM        banReason  Description of why the client was banned. 
*  $PARAM        banPeriod  Textual description indicating how long the player is banned.
*  $PARAM         bannerName Name of the player who issued the ban.
*  $REQUIRE      client != none
*  $RETURN       True if the client is banned, false if not.
*  $ENSURE       result == true ? new.banPeriod != "" : true
*
**************************************************************************************************/
function bool isBanned(NexgenClient client, out string banReason, out string banPeriod, out string bannerName) {
   local int banIndex;
   local bool bBanned;
   
   // Get ban entry.
   banIndex = sConf.getBanIndex(client.playerName, client.ipAddress, client.playerID);
   
   // Check if player is banned and the ban hasn't expired.
   if (banIndex >= 0) {
      if (sConf.autoUpdateBans) {
         if (sConf.updateBan(banIndex, client.ipAddress, client.playerID)) {
            // Ban entry was changed, update dynamic config data checksum & notify clients.
            signalConfigUpdate(sConf.CT_BanList);
         }
      }
      banReason = sConf.banReason[banIndex];
      banPeriod = lng.getBanPeriodDescription(sConf.banPeriod[banIndex]);
      bannerName= sConf.bannerName[banIndex];
      bBanned = !sConf.isExpiredBan(banIndex);
   }
   
   // Return result.
   return bBanned;
}




thanks for your Help

here the result of my modif.

]

_________________
UT99 files
Image
Image
Image
Image
Image
Image
Image


27 Mai 2011, 21:47
Profil Envoyer un e-mail
Afficher les messages postés depuis:  Trier par  
Poster un nouveau sujet Répondre au sujet  [ 1 message ] 


Qui est en ligne

Utilisateurs enregistrés : Aucun utilisateur enregistré


Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas éditer vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Rechercher:
Aller à:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.
Traduction par: phpBB-fr.com