AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Save scores (https://forums.alliedmods.net/showthread.php?t=60137)

Nican 08-27-2007 16:34

Save scores
 
8 Attachment(s)
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

Extreme_One 08-27-2007 16:46

Re: Save scores
 
Nice one! Thank you.

Stops players from rejoining just to reset a poor score. :up:

About the saving of cash: will this also save cash (for the defined sm_savescore_time) for players that move to spec?

pRED* 08-27-2007 17:18

Re: Save scores
 
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 ...

Nican 08-27-2007 17:23

Re: Save scores
 
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

API 08-27-2007 19:37

Re: Save scores
 
Nice plugin :]
Approved.

^BuGs^ 08-28-2007 00:31

Re: Save scores
 
Just a note, this might make it into the core.

Nican 08-28-2007 00:47

Re: Save scores
 
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

Extreme_One 08-28-2007 12:00

Re: Save scores
 
Quote:

Originally Posted by Nican (Post 524038)
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 :wink:

Yogi Beer 08-28-2007 17:20

Re: Save scores
 
Quote:

Originally Posted by Nican (Post 524038)
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.

Nican 08-28-2007 17:52

Re: Save scores
 
And there I go change a great set of things...


All times are GMT -4. The time now is 00:57.

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