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 
CTF-UTDMT-Gangland New Mapping Projects EvilGrins 0 Wed Mar 27, 2024 11:34 pm
EvilGrins View latest post
Club Smiley Mapping Development and Skinning EvilGrins 0 Fri Mar 08, 2024 11:45 pm
EvilGrins View latest post
DM-UTDMS-BULLFeartower2 New Mapping Projects EvilGrins 0 Fri Feb 23, 2024 11:50 pm
EvilGrins View latest post
Screenshots Thread UT Screenshots and Movies POTS 396 Tue Feb 06, 2024 4:49 am
EvilGrins View latest post
Dogs & Cats Mapping Development and Skinning EvilGrins 0 Thu Jan 18, 2024 12:48 am
EvilGrins View latest post
Black Adam Mapping Development and Skinning EvilGrins 0 Sun Jan 14, 2024 6:47 pm
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 UT Since: 2005
Joined: Jul 30, 2010
Age: 41
Posts: 38

Reputation: 153
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 UT Since: 2005
Joined: Jul 30, 2010
Age: 41
Posts: 38

Reputation: 153
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 UT Since: 2005
Joined: Jul 30, 2010
Age: 41
Posts: 38

Reputation: 153
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- 1280 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 2508 Sat Jul 20, 2013 6:19 pm
Cyberia-Mix View latest post
No new posts Other games u play or like 45 Doom 17142 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 2374 Tue Oct 25, 2011 11:44 am
-BoB- View latest post
No new posts MH-MJD "Ending" package version mismatch 8 SGTFrAnKo 4441 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.14 Seconds | Memory Usage: 9.3 MB | DB Queries: 80 ]

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