Server y User FPS
This plugin is SAFE for demo recording. -SchlumPF
A stupid plugin that i create for my server here I shared with yours.
Cvars:
amx_statusinfo <1/0>
amx_statusinfo_msg <1/0>
amx_statusinfo_interval Default 90.0
Clients commands:
/infostatus
DownLoad
works when you are specting one guy?
have a look on this, did not test whether it is better as your way to get the fps but for me it worked good:
http://www.todome.de/schlumpf/plugins/unreleased_stuff/get_fps/get_fps.sma
http://www.todome.de/schlumpf/plugins/unreleased_stuff/get_fps/get_fps.inc
some suggestions and tips:
-varaibles initialized by new are automatically nullified, this emans you dont need to set them to 0 or 0.0 or false or w/e
- for(Count = 0;Count < Playersnum;Count++) does not work as i assume you want it to work... for example if 16 players are on the server the loop stops at count == 16 which means you wont get the ping of plr 16. just change this to for(Count;Count <= Playersnum;Count++)
-same with for(Count = 0;Count < Playersnum;Count++), change it to for(Count;Count <= Playersnum;Count++)
- look at this:
new message[256];
vformat(message, 255, msg, 3);
message[192] = '^0';
guess what is the error xD
you create a variable with 256 dimensions BUT limit it to 192 by ^0 xD
just use this:
new message[192];
vformat(message, 192, msg, 3);
just had a quick overview so i may have forgotten sth or dunno... hope this helps
thanks I update that errors.
In the next relase i create a new menu. and add some stuff.
EDIT: and a hud for see the FPS of the target that you a specting.
sry... made a big mistake while reading the code... i did not recognize that used used get_players() for the loops so
for(Count = 0;Count < Playersnum;Count++)
was correct :S
Update. :D I re edit that.
Please log in to post replies.