Welcome to destination Unreal
Please sign in Here or Register
warning  Welcome to destination Unreal, To access all areas of this site please register an account by clicking here now. warning

 


 
Recent Topics   Next 6 >>  
 Forum   Author   Replies   Last Post 
Same stats new computer General Discussion Alexandru 1 Wed Sep 24, 2025 1:29 am
General View latest post
all server down General Server Chat or Problems Shado 2 Thu Aug 28, 2025 4:25 pm
General View latest post
Main server down UT99 MonsterHunt Main Server General 0 Sun Aug 03, 2025 8:03 pm
General View latest post
whites Mapping Development and Skinning EvilGrins 3 Mon Jun 02, 2025 7:46 pm
EvilGrins View latest post
Pride skin Mapping Development and Skinning EvilGrins 0 Mon Jun 02, 2025 7:46 pm
EvilGrins View latest post
CTF-UTDMS-Stonehenge Mapping Development and Skinning EvilGrins 0 Fri Feb 21, 2025 3:25 am
EvilGrins View latest post
 

WMesaageHack auto ban on Nexgen112

Post new topic   Reply to topic       printer-friendly view
destination Unreal Forum Index Mods, UScript and General Coding
View previous topic :: View next topic 
Author Message
Shado switzerland.png


UT Name: Letylove49 / Alicia UT Since: 2005 Gender: Gender:Male
Joined: Jul 30, 2010
Age: 42
Posts: 39

Reputation: 173.5
Status: Offline
View user's profile

Send private message


PostPosted: Fri Apr 22, 2011 9:36 pm
PostPost subject:No icon WMesaageHack auto ban on Nexgen112
Reply with quote

i got this : Error: L:\UnrealTournament\Nexgen112F\Classes\NexgenController.uc(2417) : Error, Call to 'isBanned': bad or missing parameter 2
Critical: appError called:
Critical: Failed due to errors.
Exit: Executing UObject::StaticShutdownAfterError
Critical: CompileError
Critical: TryCompile
Critical: FScriptCompiler::CompileScript
Critical: (Class Nexgen112F.NexgenController, Pass 1, Line 2417)


   // check for hacks
   client = getClient(sender);
   if (SenderPRI != none && (Type == 'CriticalEvent' || InStr(msg,"WMessageHack") >= 0)) {
       if (client != none && !client.hasRight(client.R_Moderate) && (!isBanned(client, temp1, temp2))) {
  rpci = NexgenClientCore(client.getController(class'NexgenClientCore'.default.ctrlID));
        serverAutoBanPlayer(client.playerNum, client.playerName, client.sConf.BP_Forever, 0, "****WMessageHack Detected****");
      return false;
       }
   }


what is wrong ?  need help  please.


Please login to see this link
Get registered or Log in
Back to top Visit member's Facebook: https://www.facebook.com/pages/destinationUnreal/68568886767
Shado switzerland.png


UT Name: Letylove49 / Alicia UT Since: 2005 Gender: Gender:Male
Joined: Jul 30, 2010
Age: 42
Posts: 39

Reputation: 173.5
Status: Offline
View user's profile

Send private message


PostPosted: Fri Apr 29, 2011 1:11 pm
PostPost subject:No icon Re: WMesaageHack auto ban on Nexgen112
Reply with quote

where is the parametre 2 there  :

    if (client != none && !client.hasRight(client.R_Moderate) && (!isBanned(client, temp1, temp2))) {


Please login to see this link
Get registered or Log in
Back to top Visit member's Facebook: https://www.facebook.com/pages/destinationUnreal/68568886767
Shado switzerland.png


UT Name: Letylove49 / Alicia UT Since: 2005 Gender: Gender:Male
Joined: Jul 30, 2010
Age: 42
Posts: 39

Reputation: 173.5
Status: Offline
View user's profile

Send private message


PostPosted: Thu Jun 02, 2011 2:40 pm
PostPost subject:No icon Re: WMesaageHack auto ban on Nexgen112
Reply with quote

i have  renamed all the  target  by Client  ( because target isn't used in Nexgen112)


/***************************************************************************************************
  *
*  $DESCRIPTION  Auto Bans the specified player from the server. Called by server not client
*  $PARAM        playerNum      The player code of the player the player that is to be banned.
*  $PARAM        banPeriodType  The type of period for which the player is banned. 1 means x
*                               matches and 2 means x days, where x is specified by the
*                               banPeriodArgs argument. Any other value means the player is banned
*                               forever.
*  $PARAM        banPeriodArgs  Optional argument for the ban period type.
*  $PARAM        reason         Description of why the player was banned.
*
**************************************************************************************************/
function serverAutoBanPlayer (int playerNum, string bannerName, byte banPeriodType, int banPeriodArgs, string reason) {
local NexgenClient client;
local string banPeriod;
local string banPeriodDesc;
local int year, month, day, hour, minute;
local byte entryNum;
local bool bFound;
 

// Get target client.
target = getClientByNum(playerNum);
if (target == none) return;

   if (client.hasRights(client.R_Moderate))
      return;

// Get ban period.
if (banPeriodType == sConf.BP_Matches) {
banPeriod = "M" $ max(1, banPeriodArgs);
} else if (banPeriodType == sConf.BP_UntilDate) {
year = level.year;
month = level.month;
day = level.day;
hour = level.hour;
minute = level.minute;
class'NexgenUtil'.static.computeDate(max(1, banPeriodArgs), year, month, day);
banPeriod = "U" $ class'NexgenUtil'.static.serializeDate(year, month, day, hour, minute);
}
else if (banPeriodType == sConf.BP_ForMatch) {
banPeriod = "KM";
}

banPeriodDesc = lng.getBanPeriodDescription(banPeriod);

// Kick player from the server.
client.showPopup("NexgenJustBannedDialog", reason, banPeriodDesc);
client.player.destroy();



// Find a free slot in the ban list.
while (!bFound && entryNum < arrayCount(sConf.bannedName)) {
if (sConf.bannedName[entryNum] == "") {
bFound = true;
} else {
entryNum++;
}
}

// Cancel on error.
if (!bFound) {
return;
}

// Store ban.
sConf.bannedName[entryNum] = client.playerName;
sConf.bannerName[entryNum] = "Auto Server Ban";
sConf.bannedIPs[entryNum] = client.ipAddress;
sConf.bannedIDs[entryNum] = client.playerID;
sConf.banReason[entryNum] = reason;
sConf.banPeriod[entryNum] = banPeriod;
   
// Save changes.
sConf.saveConfig();

// Notify clients.
signalConfigUpdate(sConf.CT_BanList);
}


Please login to see this link
Get registered or Log in
Back to top Visit member's Facebook: https://www.facebook.com/pages/destinationUnreal/68568886767
Sponsor
Display posts from previous:

Post new topic   Reply to topic    printer-friendly view
destination Unreal Forum Index   Mods, UScript and General Coding
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Memorable Errors 3 -POTS- 1862 Mon Dec 05, 2016 2:44 am
DarkBeemo View latest post
No new posts Found HUD script line causing framedrop in Maboroshi/TGES03 2 Cyberia-Mix 3115 Sat Jul 20, 2013 6:19 pm
Cyberia-Mix View latest post
No new posts Other games u play or like 45 Doom 22525 Sun Nov 13, 2011 3:39 pm
Ninja_Pirate View latest post
No new posts [ Poll ] Top "X" voted maps? (At least give reasons) 7 Ninja_Pirate 3301 Tue Oct 25, 2011 11:44 am
-BoB- View latest post
No new posts MH-MJD "Ending" package version mismatch 8 SGTFrAnKo 5721 Fri Dec 17, 2010 12:21 pm
Zacman_the_damned View latest post
 




Theme designed and coded by PHPNuke Themes © All times are UTC + 2 Hours [DST enabled]
Forums ©

Spambot Killer
Site Map

[News Feed] [Forums Feed] [Downloads Feed] [Web Links Feed] Powered by HTML Purifier[Validate robots.txt]


PHP-Nuke Copyright © 2006 by Francisco Burzi.
All logos, trademarks and posts in this site are property of their respective owners, all the rest © 2006 by the site owner.
Powered by Nuke Evolution 2.0.7 - Nuke-Evolution Xtreme 2.0 Edition.

[ Page Generation: 0.27 Seconds | Memory Usage: 9.32 MB | DB Queries: 80 ]

Do Not Click [ Home | Forums | Downloads | Contact Us | Back To Top ]