Server y User FPS

Started by Reymon
27/11/2008 18:02
Page 1 of 1
Reymon27/11/2008 18:02(edited 29/11/2008 02:22)

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

Ratmen27/11/2008 18:26

works when you are specting one guy?

SchlumPF27/11/2008 20:22

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

Reymon27/11/2008 21:58(edited 27/11/2008 21:59)

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.

SchlumPF28/11/2008 15:19

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

Reymon28/11/2008 15:57

Update. :D I re edit that.

Page 1 of 1

Please log in to post replies.