Raised This Month: $56 Target: $400
 14% 

Get TickRate


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Plugin ID:
458
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 07-08-2008 , 17:50   Get TickRate
    Reply With Quote #1

    Someone requested this and so I'm posting a plugin that will return what the servers current Tickrate is set at.

    This is useful for people on rented servers who want to make sure their host is being honest and setting things correctly.

    Anyways, enjoy.

    Issues with this are fixed. Thanks for the update Omega.

    Probably should have put a comment on here on how to see your tickrate.

    In the console type sm_gettickrate
    Attached Files
    File Type: sp Get Plugin or Get Source (tickrate.sp - 4362 views - 2.1 KB)

    Last edited by Liam; 07-08-2008 at 23:26.
    Liam is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 07-08-2008 , 17:52   Re: Get TickRate
    Reply With Quote #2

    Thanks, I requested this in the SM bug tracker a while ago.
    __________________

    DontWannaName is offline
    Box Cutter
    SourceMod Donor
    Join Date: Dec 2006
    Location: Arizona
    Old 07-08-2008 , 17:55   Re: Get TickRate
    Reply With Quote #3

    Thank you Liam. I hope this gets added in as a standard feature on SM.

    -BC
    __________________
    Box Cutter is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 07-08-2008 , 17:57   Re: Get TickRate
    Reply With Quote #4

    The function is stock sourcemod. It is just a wrapper for the call to the server engine, you just have to multiply it by 10000 because its viewed as a float internally.
    Liam is offline
    Cooltad
    Veteran Member
    Join Date: Apr 2008
    Old 07-08-2008 , 17:59   Re: Get TickRate
    Reply With Quote #5

    It returns my tickrate as 150;and thats obviously wrong.
    __________________
    Please, give me some rep if you found what I posted useful. :]
    Cooltad is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 07-08-2008 , 18:03   Re: Get TickRate
    Reply With Quote #6

    It returned my tickrate correctly on all of my servers.
    Liam is offline
    Cooltad
    Veteran Member
    Join Date: Apr 2008
    Old 07-08-2008 , 18:04   Re: Get TickRate
    Reply With Quote #7

    Whta would cause my tickrate to be 150 when i have it set to -tickrate 33?

    Yup; I removed all ym mods everything at default everything, and set tickrate 33 and it still comes back 150.
    __________________
    Please, give me some rep if you found what I posted useful. :]
    Cooltad is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 07-08-2008 , 18:11   Re: Get TickRate
    Reply With Quote #8

    I just tested it on the steam srcds and it did return a BS number. My normal servers though are returned correctly.

    Lemme investimigate.
    Liam is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 07-08-2008 , 18:25   Re: Get TickRate
    Reply With Quote #9

    Updated.
    Liam is offline
    Cooltad
    Veteran Member
    Join Date: Apr 2008
    Old 07-08-2008 , 18:37   Re: Get TickRate
    Reply With Quote #10

    Got errors with compiling.
    __________________
    Please, give me some rep if you found what I posted useful. :]
    Cooltad is offline
    Reply


    Thread Tools
    Display Modes

    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 21:18.


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