Thread: [INC] HTTP2
View Single Post
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Upplands Väsby, Sweden
Old 10-18-2013 , 12:00   Re: [INC] HTTP2
Reply With Quote #24

#include <amxmodx> #include <http2> public plugin_init() {     HTTP2_UpdatePlugin("") // I took one at random from New Plugin Submission }
You can also directly link to an .amxx file, but I would avoid that as it would seem suspicious.

Of course there are problems with this. By linking to an automatically compiled file on the AM forum it cannot include HTTP2.
In this case I would suggest copying the HTTP2 include into your plugin and strip the things you don't need.

Another option is to use a third party webcompiler that compiles the source posted on AMXX.

It doesn't have to be used at plugin_init(), but make sure you only call it once per load at the absolute maximum.
To avoid flooding HTTP servers it really should be downloaded once per day or week.

Last edited by Black Rose; 10-18-2013 at 12:54.
Black Rose is offline
Send a message via Skype™ to Black Rose