Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
10 posts, 4 people · 4,776 views Thread Rating: ★★★★★
closedNo Prone plugin
Started by jondoe on 04-05-2007, 05:39 AM
J jondoe
started this thread
Posts: 129
Threads: 6
Joined: Aug 2005
04-05-2007, 05:39 AM #1

Can someone code a plugin that will not allow any player to prone or maybe be configurable to allow only proning for certain classes.rnI run the dod_eveiladmin plugin in order to do this but it's such a headache to have to do this seperatly to players. If some nice person could do this i would come over and mow there lawn. :)

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
04-05-2007, 05:58 AM #2

With the beta release of the new DoDX module, we could hook the proning action and set them to unprone right away (I have a better method than just executing +prone on the client)rnrnBut the main question is, since it's a beta release, do you have a windows or linux server?

J jondoe
started this thread
Posts: 129
Threads: 6
Joined: Aug 2005
04-06-2007, 12:37 AM #3

I only run linux boxes right now, i have just had better results with linux. (fedora core 3 to be exact). rnThanks for your response Wilson. :)rnIf you need any type of testing done just let me know. ;)

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
04-06-2007, 11:19 PM #4

heheh compile the beta module for linux for us and then you can do some testing :P lol

J jondoe
started this thread
Posts: 129
Threads: 6
Joined: Aug 2005
04-06-2007, 11:45 PM #5
heheh compile the beta module for linux for us and then you can do some testing :P lol
rnrnSo i take it unless i have windows the new DODX module that this may work for hasn't been compiled for linux yet, Or will it be.rnrnAlso If i knew how to do some of the stuff you need done, I would be more then willing to help out the community. I'm already at my PC 6 hours a day minimum anyway.

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
04-07-2007, 12:08 AM #6
rn#include <amxmodx>rn#include <amxmisc>rn#include <fakemeta>rnrnpublic plugin_init( id ) {rn   register_forward( FM_PlayerPreThink, "hook_PlayerPreThink" );rn}rnrnpublic hook_PlayerPreThink( id ) {rn   // Check classes, plugin enabled, etc. herern   if( dod_get_pronestate( id ) )rn      dod_set_pronestate( id, 0 );rn}rnrnstock dod_set_pronestate( id, flag ) {rn   set_pev( id, pev_iuser1, flag );rn}rnrn
J jondoe
started this thread
Posts: 129
Threads: 6
Joined: Aug 2005
04-07-2007, 09:20 PM #7
;4839']
rn#include <amxmodx>rn#include <amxmisc>rn#include <fakemeta>rnrnpublic plugin_init( id ) {rn   register_forward( FM_PlayerPreThink, "hook_PlayerPreThink" );rn}rnrnpublic hook_PlayerPreThink( id ) {rn   // Check classes, plugin enabled, etc. herern   if( dod_get_pronestate( id ) )rn      dod_set_pronestate( id, 0 );rn}rnrnstock dod_set_pronestate( id, flag ) {rn   set_pev( id, pev_iuser1, flag );rn}rnrn
rnrnrnSo what am i looking at here wilson, The code for a noprone plugin or something used to compile the dodx beta module for linux.rnI tried to compile it but it spit out a bunch of errors.rnusing amxx 1.76crnI'll head over to amxx and do some reading up to see what i can learn.

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
04-11-2007, 06:01 PM #8
So what am i looking at here wilson, The code for a noprone plugin or something used to compile the dodx beta module for linux.nI tried to compile it but it spit out a bunch of errors.nusing amxx 1.76cnI'll head over to amxx and do some reading up to see what i can learn.
n nhe posted a code snippet... a quick reply with something that might possibly be the soultion you are looking for..n nas for the "errors" the snippet is missing an #include <dodx>

J jondoe
started this thread
Posts: 129
Threads: 6
Joined: Aug 2005
04-12-2007, 06:43 AM #9

Thanks for that clarification TatsuSaisei.rnrnI added "#include <dodx>" to the sma i created with his other code snippet and recieved the follwing erorr upon trying to compile.rnrn// noprone.smarn D:SERVER&WEBFILESMY SERVERSAMX 1.76caddonsamxmodxscripting
oprn : error 025: function heading differs from prototypern 1 Error.rn Could not locate output file compiled
oprone.amx (compile failed). :(

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
04-12-2007, 12:22 PM #10

lmao.. I just looked closer and this is why you get that error...n n

 npublic plugin_init( id )n
n nwtf is id doing in there ??n n
 npublic plugin_init()n
n nok, I looked this over and made the necessary corrections...n nhttps://www.dodplugins.net/forums/showthread.php?p=4983

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC