Raised This Month: $51 Target: $400
 12% 

[REQ] FPS Show_conmsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iTouch
Member
Join Date: Feb 2011
Old 09-01-2011 , 16:08   [REQ] FPS Show_conmsg
Reply With Quote #1

Hello all.
I was wondering if you could make a plugin that tells the fps in console when you connect to the server something like the HL Booster.

But i don't need hl booster because i use mm_timer and as u know hlbooster and mmtimer wan't work good together

So i need the console msg of the server fps can someone do that ?

Last edited by iTouch; 09-01-2011 at 16:15. Reason: Edited the [REQ]
iTouch is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-01-2011 , 16:32   Re: [REQ] FPS Show_conmsg
Reply With Quote #2

Something could be made out of this:
https://forums.alliedmods.net/showth...26#post1126226

PHP Code:
#include <amxmodx>
#include <orpheu>

new Msg100 ];

public 
plugin_init()
{
    
register_plugin"Server FPS Display""0.0.1""Arkshine/Exolent" );
}

public 
client_putinserverid )
{
    new 
OrpheuHook:handlePrintf OrpheuRegisterHookOrpheuGetFunction"Con_Printf" ), "Con_Printf" );
    
    
server_cmd"stats" );
    
server_exec();
    
    
OrpheuUnregisterHookhandlePrintf );
    
    const 
tokensN  7;
    const 
tokenLen 19;
    
    static 
tokenstokensN ][ tokenLen ];
    
    for ( new 
0tokensNi++ )
    {
        
trimMsg );
        
strtokMsgtokens], tokenLenMsgcharsmaxMsg ), ' ' ); 
    }
    
    
console_printid"Server FPS: %s"tokens] );
}

public 
OrpheuHookReturn:Con_Printf( const a[], const message[] )
{
    
copyMsg,charsmaxMsg ), message );
    return 
OrpheuSupercede;

Requires Orpheu to be running, as well as that signature from the linked post to be installed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
iTouch
Member
Join Date: Feb 2011
Old 09-02-2011 , 04:02   Re: [REQ] FPS Show_conmsg
Reply With Quote #3

Well thanks m8 but it's not working :S

iT says the plugin is running the module is enabled but no print message is being displayed.

L 09/02/2011 - 08:57:09: [ORPHEU] Function "Con_Printf" not found
L 09/02/2011 - 08:57:09: [AMXX] Displaying debug trace (plugin "FPS.amxx")
L 09/02/2011 - 08:57:09: [AMXX] Run time error 10: native error (native "OrpheuG
etFunction")
L 09/02/2011 - 08:57:09: [AMXX] [0] Untitled.sma::client_putinserver (line13)

Last edited by iTouch; 09-02-2011 at 04:31. Reason: edited the logs
iTouch is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-02-2011 , 06:10   Re: [REQ] FPS Show_conmsg
Reply With Quote #4

Have you installed the signature from the first link Exolent posted ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
iTouch
Member
Join Date: Feb 2011
Old 09-02-2011 , 06:12   Re: [REQ] FPS Show_conmsg
Reply With Quote #5

Yes i have this but the message is not showing up as you see the logs.
iTouch is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-02-2011 , 06:14   Re: [REQ] FPS Show_conmsg
Reply With Quote #6

Do you have access to the server's console ?

If not, try hlsw & post the output of orpheu parsing the signatures.

Should be something like this:
https://forums.alliedmods.net/showpo...&postcount=247
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
iTouch
Member
Join Date: Feb 2011
Old 09-02-2011 , 06:16   Re: [REQ] FPS Show_conmsg
Reply With Quote #7

Yes sure here it is
Code:


Last edited by iTouch; 09-02-2011 at 06:18.
iTouch is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-02-2011 , 06:18   Re: [REQ] FPS Show_conmsg
Reply With Quote #8

Is that all ?
It doesn't seem like the signature is in it's place.

Could you post the full path (starting from configs/orpheu/...) including the file name where you placed the signature ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
iTouch
Member
Join Date: Feb 2011
Old 09-02-2011 , 10:22   Re: [REQ] FPS Show_conmsg
Reply With Quote #9

Oh sorry please i was late for school and as i see i haven't pasted it good here it is once again/

Code:
Orpheu configuration started.

        Parsing mods configuration started.
        Parsing mod file "cstrike"
        Parsing mod file "dod"
        Parsing mod file "esf"
        Parsing mod file "esf_openbeta"
        Parsing mod file "ns"
        Parsing mod file "SvenCoop"
        Parsing mod file "tfc"
        Parsing mod file "ts"
        Parsing mod file "valve"
        Parsing mods configuration ended.

        Parsing libraries configuration started.
                Parsing file "monstermod"
                        Added library monstermod identified by cvar monster_spaw
n
                Parsing file "podbot"
                        Added library podbot identified by cvar pb_version
        Parsing libraries configuration ended.

        Parsing type aliases started.
                Parsing folder "CBaseEntity"
                Adding alias"CBaseEntity *"
                Parsing folder "CGameRules"
                Adding alias"CGameRules *"
                Parsing folder "charPointer"
                Adding alias"char *"
                Parsing folder "CMBaseMonster"
                Adding alias"CMBaseMonster *"
                Parsing folder "long"
                Adding alias"long"
                Parsing folder "VectorPointer"
                Adding alias"Vector *"

        Parsing type aliases ended.

Orpheu configuration ended.
iTouch is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-02-2011 , 10:29   Re: [REQ] FPS Show_conmsg
Reply With Quote #10

I saw it before.

Like a said in my post above, it doesn't seem like the signature file is in it's place.
Make sure it's at "amxmodx/configs/orpheu/functions/Con_Printf".
Also make sure the file doesn't have an extention.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode