Raised This Month: $32 Target: $400
 8% 

Save scores


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Plugin ID:
169
Plugin Version:
6.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Players will not lose their scores when they reconnect to the server
    Unapprover:
    Reason for Unapproving:
    there are posts saying this doesn't work
    Old 08-27-2007 , 16:34   Save scores
    Reply With Quote #1

    Save scores

    Description:
    Players will not lose their scores when they reconnect to the server, all scores saved will reseted on mapstart

    Cvars
    • sm_savescore_allow (default: 1) - Enable / Disable this plugin
    • sm_savescore_time (default: 0) - The maximum amount of seconds the plugin will remember the scores
    • sm_savescore_cash (default: 1) - Make the plugin also remember money
    • sm_savescore_spec (default: 1) - Save player money when they go to spec and back to a team

    Change log
    • August 27, 2007 (1.0, 2.0)
      • Initial release
      • Added adt_array
    • August 29, 2007 (3.0)
      • Added spectator saving money
    • August 29, 2007 (4.0)
      • Fixed player not connected saving information
      • stooped using adt_array, not reliable enough
    • August 30, 2007 (5.0)
      • Fixed player not in game saving information (*sigh*)
    • September 4, 2007 (5.0)
      • Player information will no longer be saved during map changes
    Attached Files
    File Type: sp Get Plugin or Get Source (scoreremember.sp - 1957 views - 5.1 KB)
    File Type: sp Get Plugin or Get Source (scorerememberBETA.sp - 1263 views - 5.2 KB)
    __________________
    http://www.nican132.com
    I require reputation!

    Last edited by Nican; 12-09-2007 at 16:42.
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 08-27-2007 , 16:46   Re: Save scores
    Reply With Quote #2

    Nice one! Thank you.

    Stops players from rejoining just to reset a poor score.

    About the saving of cash: will this also save cash (for the defined sm_savescore_time) for players that move to spec?
    __________________
    Extreme_One is offline
    pRED*
    Join Date: Dec 2006
    Old 08-27-2007 , 17:18   Re: Save scores
    Reply With Quote #3

    Not sure if you want to bother with this but you could have a play with dynamic arrays if you wanted (see adt_array.inc).

    With this you wouldn't need to hardcode the number of spaces to reserve people and it would only use as much memory as was needed. Not a massive gains due to only saving integers but ...
    pRED* is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 08-27-2007 , 17:23   Re: Save scores
    Reply With Quote #4

    Extreme:
    Hm... no
    Do you think I should add that feature?

    pRED:
    Ok... Let me first learn adt_array :O


    3.
    Why doesn't anybody post comments on my webpage D:
    I worked so hard to make that work
    __________________
    http://www.nican132.com
    I require reputation!

    Last edited by Nican; 08-27-2007 at 17:33.
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    API
    Veteran Member
    Join Date: May 2006
    Old 08-27-2007 , 19:37   Re: Save scores
    Reply With Quote #5

    Nice plugin :]
    Approved.
    __________________
    API is offline
    Send a message via AIM to API
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 08-28-2007 , 00:31   Re: Save scores
    Reply With Quote #6

    Just a note, this might make it into the core.
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.
    ^BuGs^ is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 08-28-2007 , 00:47   Re: Save scores
    Reply With Quote #7

    You mean the plugin or the "SetMoney"/"setfrags" thing?

    Because if it the plugin, I am going to go crazy, because it will the second thing (out of 4) that I make and someone is going to take make it better somehow
    __________________
    http://www.nican132.com
    I require reputation!
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 08-28-2007 , 12:00   Re: Save scores
    Reply With Quote #8

    Quote:
    Originally Posted by Nican View Post
    Extreme:
    Hm... no
    Do you think I should add that feature?
    Well it would stop those from going to spec after placing a BET rejoining their team and acheiving an additional $800.

    (I know there's a plugin that does this but I'd rather use 1 plugin than 2 to do the same thing)
    I'd also find it useful as admins often need to go to spec for whatever reason and end up losing accumulated money.

    Perhaps you could add a cvar...

    sm_savescore_cash_spec
    __________________
    Extreme_One is offline
    Yogi Beer
    Junior Member
    Join Date: Jul 2007
    Old 08-28-2007 , 17:20   Re: Save scores
    Reply With Quote #9

    Quote:
    Originally Posted by Nican View Post
    Extreme:
    Hm... no
    Do you think I should add that feature?

    pRED:
    Ok... Let me first learn adt_array :O


    3.
    Why doesn't anybody post comments on my webpage D:
    I worked so hard to make that work
    lol @ no.3 want to get more visitors. Nice pluging tho and I agree with the saving cash in spec mode too. Will put on the server now.
    Yogi Beer is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 08-28-2007 , 17:52   Re: Save scores
    Reply With Quote #10

    And there I go change a great set of things...
    __________________
    http://www.nican132.com
    I require reputation!
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    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 03:53.


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