| closedNo Prone plugin |
| Started by jondoe on 04-05-2007, 05:39 AM |
Threads: 6
Joined: Aug 2005
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. :)
Threads: 57
Joined: Oct 2005
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?
Threads: 6
Joined: Aug 2005
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. ;)
Threads: 103
Joined: May 2005
heheh compile the beta module for linux for us and then you can do some testing :P lol
Threads: 6
Joined: Aug 2005
heheh compile the beta module for linux for us and then you can do some testing :P lolrnrnSo 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.
Threads: 57
Joined: Oct 2005
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}rnrnThreads: 6
Joined: Aug 2005
;4839']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.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
Threads: 54
Joined: May 2005
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>
Threads: 6
Joined: Aug 2005
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). :(
Threads: 54
Joined: May 2005
lmao.. I just looked closer and this is why you get that error...n n
npublic plugin_init( id )nn nwtf is id doing in there ??n n npublic plugin_init()nn nok, I looked this over and made the necessary corrections...n nhttps://www.dodplugins.net/forums/showthread.php?p=4983
