Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 98 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Mod Kick (help Me)
maxlcc
General Member
Since: Aug 21, 2008
Posts: 2
Last: Jul 30, 2010
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Thursday, Jul. 29, 2010 01:43 pm
Hello people, I can see that many people here know.

If anyone can help me with this, would be very grateful.

My question is this.

Due to the variety of cheats is turning around the cod2, a game that many people still play,

I thought, if I could create a mod, where press the 0 key or F7, keys which are used to open the menu to activate the cheat, the server will kick me out, automatically, or when entering the server those keys will bind with the command /quit and just leave the server when I try to activate.

Do I explain?

How could I do?

Can you think otherwise?

I say this cause the cheat I talking about are completely undetectable by any known anti-cheat

I was trying to set a mod, but without knowledge of modding is really complicated.
Share |
tHMatt
General Member
Since: Sep 11, 2007
Posts: 473
Last: Mar 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Thursday, Jul. 29, 2010 01:52 pm
no.. cause people could just activate the cheat on the main menu, THEN join your server...
Share |
hyper1234
General Member
Since: Mar 17, 2009
Posts: 358
Last: Apr 14, 2011
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Thursday, Jul. 29, 2010 01:52 pm
Lemme get this straight?

You want to kick people for using hacks so that when they press '0' or 'F7' whilst in-game, it kicks them from the server?
Share |
tHMatt
General Member
Since: Sep 11, 2007
Posts: 473
Last: Mar 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Thursday, Jul. 29, 2010 01:53 pm
I made an anti-aimbot script once that actually worked, though i dont have any work around to kick off wallhackers. Though I used to run a zombie server, so wallhacking on that really is kinda pointless.
Share |
hyper1234
General Member
Since: Mar 17, 2009
Posts: 358
Last: Apr 14, 2011
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Thursday, Jul. 29, 2010 01:58 pm
At ther end of the day, you couldn't do it.

No point in doing anything to stop cheats, even punkbuster can't do it and they are a professional firm
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Thursday, Jul. 29, 2010 04:51 pm
1 simple way - destroy everyone that uses a hack. quite easy.

and btw a lot of hacks are by command like

/mom_aimbot which you type in console. but they could bind them like /bind o mom_aimbot 1
Share |
maxlcc
General Member
Since: Aug 21, 2008
Posts: 2
Last: Jul 30, 2010
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Friday, Jul. 30, 2010 08:03 am
The mod that iam trying to develop is for use in tournament servers for war so the console access would be disabled.
The main idea is bind the commons keys used to activate undetectable cheats assign them /bind say "Key no allowed"; quit
Is true that players can activate the cheats from the selection menu jumping the bind rule in the mod but wathever
this would be some more protection for the servers against players that ignore this method of execution.
I have been looking in other forums a code that i can't make it work.


Inside standalone IWD file (ui_mp--->scriptmenus---> clientcmd.menu)

Code:
#include "ui_mp/menudef.h"

{ menuDef { name "clientcmd" rect 0 0 1 1 visible 0 fullscreen 0

onOpen { exec "vstr clientcmd";
close clientcmd; } } }


inside the PAM MOD in the GSC precache file I add the next line

Code:
precacheMenu ("clientcmd");


and finally inside the PAM MOD in (maps---> mp ---> gametypes ---> sd.gsc) the next lines of code.

Code:
ExecClientCommand (cmd)
{
	self setClientCvar ("clientcmd", cmd);
	self openMenu ("clientcmd");
	self closeMenu ("clientcmd");<br />
<br />
}


Code:
Callback_PlayerConnect() 
{  	
self ExecClientCommand ("bind kp_ins quit");
self ExecClientCommand ("bind l quit");
.
. 
. 
}
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Friday, Jul. 30, 2010 09:46 am
but you cant kick someone for pressing a key, like me i have got 2 /bind 9 name ^1mee so if i pressed that to change my name it would kick me?

i also have got to FPS binds aswell so if i wanted to do that it would kick me.

i also changed the bash kick to "T" because its easier for me so would it kick me for not having default settings?

The only way possable to do this is to do when they join the sever do /unbind all and set default keys. (if you like in one of the iw_.iwd folders they have settings so make ur own then do /exec default.cfg

and tell them that they do that and bind all other keys except for default to be kick (even console) but that would be very annoying as if you press the wrong key it would kick you.
Share |
Mitch*
General Member
Since: Jan 23, 2007
Posts: 24
Last: Nov 10, 2012
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Friday, Jul. 30, 2010 12:25 pm
You can use pb to block a few common codes.

You can download the whole config here:

http://www.punksbusted.com/forums/index.php?showtopic=19914

(streaming your server helps too, the best one is game-violations.ggl.com (site doesn't load atm), it got more than 1000 servers)

example of code to disable a hack:
pb_sv_cvar "Mom_aimbot" IN 0 0
pb_sv_cvar "Mom_autoshoot" IN 0 0
pb_sv_cvar "Mom_distesp" IN 0 0
pb_sv_cvar "Mom_killsounds" IN 0 0
pb_sv_cvar "Mom_killspam" IN 0 0
pb_sv_cvar "Mom_nameesp" IN 0 0
pb_sv_cvar "Mom_radar" IN 0 0
pb_sv_cvar "Mom_SounDS" IN 0 0
pb_sv_cvar "Mom_stats" IN 0 0
pb_sv_cvar "Mom_wallhack" IN 0 0

edited on Jul. 30, 2010 08:26 am by Mitch*
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»