07.06.2011, 20:42
Well this a quick plugin I just whipped up that allows you to calculate the load average of what ever linux machine your server is running on. (Useful for debugging...) Since this plugin only comes with one function no include will be in the archive.
Install: (So simple a monkey could do it)
Place loadavg.so in your plugins directory then open your server.cfg and add this line twords the top if its not already there
Now just go into what ever script you intend on using this for and add this line below your includes
Heres an example of how to use this plugin in your gamemode/filterscript
Download the attached .zip file for the compiled .so plugin and the plugin source.
Install: (So simple a monkey could do it)
Place loadavg.so in your plugins directory then open your server.cfg and add this line twords the top if its not already there
pawn Код:
plugins loadavg.so
pawn Код:
native Float:loadavg();
pawn Код:
#include <a_samp>
native Float:loadavg();
main(){
printf("System load average: %f",loadavg());
return;
}