PDA

View Full Version : Need Module Tutorial that is as good as the Plugin Tutorials


Tum
06-30-2005, 03:09
I am a bit new at making plugins, so please correct me if I have the wrong idea here. From what I took out of the excellent “how to create plugins” tutorials on this site, modules are a bunch of functions you can use in your plugin codes. I see that there are specific ones for CS, NS, etc. If this is so, then I think I need to learn how to create modules for my current dilemma.
I need a function that allows me to add simulated lag to a given user. If you've ever used "fakelag" in a sv_cheats enabled server you know what I mean. So far, I've only been able to find a "get_user_ping" function. I need something like "set_user_ping" or "add_user_ping".
I’ve been told and it seems to make sense, that learning how to actually create these functions myself is the best way to fix my problem. I just can't seem to find any tutorials on how to create your own Modules. Sorry about the long explanation and probably more information than most of you would care for, but the bottom line is...is there a good tutorial out there for creating Modules and if so, could someone kindly direct me to it?

Thanks in advance,
Tum

LynX
06-30-2005, 04:30
Learn it from AMX Mod X documentation ( 1.0/1.01 )
Also, you need the files to create modules. Grab 'em from AMXX devel page.

DahVid
06-30-2005, 04:32
I'd say look at the source code for the current modules. If you need any help you can contact me. I'm not that great but probably better than your average noob huh.

Tum
06-30-2005, 12:29
Cool I'll try that. Thanks for the replies.

Silverice146
06-30-2005, 14:47
Modules are a bit complicated for anybody new to plugins, they are written in C++ (as far as i know thats it) and are usually composed of 5 or more documents, you also must have a compiler if you wish to turn it into the final .dll. I'd say you need more than a modest amount of knowledge of C++ to be able to create one.

Tum
06-30-2005, 15:05
Yeah that should not be a problem for me. I've worked with a decent amount of C++. I just need a good tutorial for modules.

Silverice146
07-01-2005, 12:01
then do like the other guy said look at some source and youll get the idea.

johnjg75
07-01-2005, 14:07
you'll need these files:
http://www.tcwonline.org/cgi-bin/viewcvs.cgi/amxmodx/amxmodx/sdk/

and read the readme and it'll maybe help you...

Tum
07-01-2005, 15:22
Thanks everyone for all the suggestions. I am currently looking at the amxx docs and it is helping a ton. When I finally get this done maybe I'll post it so that others can take advantage of this function.

Tum
07-02-2005, 14:41
Well guys, this idea is not going to work. Turns out, the makers removed the source code because this feature was being used the wrong way somehow. I guess we will never know what actually happens behind the scene with fakelag.

n0obie4life
07-03-2005, 22:10
If ur a little bit new at making plugins. Then you shldn't jump to modules instantly :roll:.

Geesu
07-04-2005, 11:38
there is an amxx plugin that does this already dude, look for it, I remember reading about it.

Tum
08-06-2005, 00:54
No there isn't a plugin that does this. If you've found one man I would really want to see it. Anyways, with the new update, is this now possible?

n0obie4life
08-06-2005, 01:21
Psst, take over the weapons module :D

Tum
08-06-2005, 01:57
what?

n0obie4life
08-06-2005, 02:10
http://forums.alliedmods.net/showthread.php?t=13858

This ;)

It needs someone to take over it.

Tum
08-06-2005, 20:58
Psss, how about people who are replying read the very first post. I am talking about the "fakelag" function and the fakelag function only. It has nothing to do with dynamically letting you add weapons in AMX Mod X plugins nor does it have to do with improving my latency. If you can't help I'd rather you not post anything at all.

[]D [] []v[] []D
08-10-2005, 01:43
psss, if your gonna be mean and refuse someones help u shouldnt post anymore

DJ_LAHER
08-15-2005, 15:51
D [] []v[] []D]psss, if your gonna be mean and refuse someones help u shouldnt post anymore
tru

Geesu
08-15-2005, 17:02
ok a plugin has been created to emulate lag.... the set_user_ping isn't possible....

Tum
08-23-2005, 04:19
Obviously thoes people, including yourself, who are offering "help" about something I wasn't even asking in the first place...is NOT helping me at all. I am greatful and have been greatful to the people who've helped me in the past. But my remark was towards those who do not read the problem in the first place. How is that refusing any help when you clearly aren't helping? I am just trying to prevent people like you from wasting my time or anyone else's who is might have this same problem.

Tum
08-28-2005, 20:51
A plugin has been made to emulate lag you say Geesu? Where? I've looked all over this site for the plugin and haven't found it.

pdoubleopdawg
09-03-2005, 15:28
Actually, there is a message you can send to modify the scoreboard... Maybe that'd work for ping.

EDIT: Negatory, you can't. Also you'd have to update/supercede it ever few seconds.. unless you made a module to just disable the whole thing for a certain player and put in a random number between x and x.

nightscreem
10-01-2005, 10:52
can someone pls make a tutorial: how to make modules
or maybe some good sites to learn it
I really wanna learn it

Freecode
10-01-2005, 12:30
well. first ud need knowledge of C++ and if u do then u shouldnt have a problem in using module API its very simple

nightscreem
10-01-2005, 13:30
can you give me an c++ tutorial then pls