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

Frag_Saver


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
-Acid-
Senior Member
Join Date: Feb 2009
Old 05-22-2009 , 21:14   Frag_Saver
Reply With Quote #1

Frag_Saver 2.0
What this plugin does is simple. It will save your frags "Kill" on map change, disconnect, server crash etc... We all know there is a plugin already call Remember the Scoreby Nextra.
His uses mysql, and some people dont know how to use mysql. SO this one is easier to use/install, and my uses nvalut!!

Modules:

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <nvault>

How to install:

Install as any other plugin. Start server play some rounds. Change map/disconnect or w/e, connect back to server and should only see your Frags "Kills" save.

Note:This will only save a players kills.
Attached Files
File Type: sma Get Plugin or Get Source (Frag_Saver.sma - 1186 views - 2.4 KB)
__________________

Last edited by -Acid-; 06-25-2009 at 20:36.
-Acid- is offline
D-TOX
Member
Join Date: Mar 2008
Old 05-22-2009 , 22:07   Re: Frag_Saver
Reply With Quote #2

And this isnt his plugin ? I mean, have you made a new one that's exactly the same only without mysql ? connection ? Or have you re-coded his, and removed mysql ?
D-TOX is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 05-22-2009 , 22:10   Re: Frag_Saver
Reply With Quote #3

Interesting, may I ask why your post is all bold and non-attractive?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
-Acid-
Senior Member
Join Date: Feb 2009
Old 05-22-2009 , 22:14   Re: Frag_Saver
Reply With Quote #4

@D-Tox: Its not the same code its all new, no copy.

@Drufzog: I like Bold! =) But if i have to change it i will.
__________________
-Acid- is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-22-2009 , 22:19   Re: Frag_Saver
Reply With Quote #5

You need to open a vault before you can use it.

g_iVault = nvault_open( "vaultname" );

Also, how about saving deaths too? People are going to be able to produce some pretty neat scores by disconnecting only to keep their frags but reset deaths.
__________________
Bugsy is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 05-22-2009 , 22:26   Re: Frag_Saver
Reply With Quote #6

@Bugsy: Okay fix it. Okay i did ur idea i like ur idea. This is waht i did is it good?
PHP Code:
public cmdUpdateScoreBoard(id)
{
    
message_beginMSG_ALL g_iMsgScoreInfo );
    
write_byteid );
    
write_shortget_user_fragsid ) );
    
write_shortget_user_deathsid ) );
    
write_short);
    
write_shortget_user_teamid ) );
    
message_end( );

__________________
-Acid- is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-22-2009 , 22:30   Re: Frag_Saver
Reply With Quote #7

You're not even using that function in your plugin

Have you tested this plugin at all?
__________________
Bugsy is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 05-22-2009 , 22:34   Re: Frag_Saver
Reply With Quote #8

PHP Code:
new g_szAuthID[33][33];
new 
g_iBot[33];
new 
g_iFrags[33];
new 
g_pEnabled;
new 
g_iVault;
new 
g_iMsgScoreInfo;
new const 
g_szVaultFile[] = "frag_saver";

public 
plugin_init()
{
    
register_plugin"Frag_Saver" "2.0" "-Acid-" );
    
    
    
register_event"ScoreInfo" "fwEvScoreInfo" "a" );
    
    
g_pEnabled register_cvar"fs_enabled" "1" );
    
g_iMsgScoreInfo get_user_msgid"ScoreInfo" ); 
Isn't that how u do it?
__________________
-Acid- is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-22-2009 , 22:36   Re: Frag_Saver
Reply With Quote #9

That gets the msg ID that is used in the cmdUpdateScoreBoard function but does not automatically make the call for you when needed. You are using the native functions for set_frags\deaths that have the scoreboard updating built-in. Manually updating the scoreboard is typically only needed when updating a score via set_pev( id , pev_frags , new_frags ) or a similar manual method.
__________________
Bugsy is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 05-22-2009 , 23:04   Re: Frag_Saver
Reply With Quote #10

# Bugsy am having trouble with it, and yea i have test it and it works with saving frags not deaths.
__________________
-Acid- 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 09:19.


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