 |
|
Member
|

04-07-2009
, 04:28
Re: Could someone correct this small plugin?
|
#9
|
Alright, I spent a lot of time working on it, and it's doing pretty well now. I'd like to add some more features, but then I'll post it for anyone who wants to use it, and I'll credit you for your great help.
The main problem was actually totally unrelated to my script (my sql connection was terrible, I found a new host and it's working great now), but I still much prefer the idea of connecting just once rather than every time I do an update.
Right now my script properly reads from the mysql table, and sets the cvars correctly. If you update a value in the table, you can use a command to have the server check the table and update the values accordingly.
If anyone is interested, I can post my current progress.
I am having a little trouble working this out though:
The plugin (thankfully) properly yields to map settings at the start, but if you use the amx_get_cvars command (which grabs the values off the table and updates the server), it of course overwrites them. My thoughts are that perhaps I should just leave it the way it is, and people should be aware not to do that.. but I'd like a more ellegant solution if anyone has any ideas.
Thanks!
|
|
|
|