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

[Request Plugin] Steam ID Counter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TazZ.amxx
Member
Join Date: Jun 2009
Old 07-15-2009 , 05:49   [Request Plugin] Steam ID Counter
Reply With Quote #1

Hi,

I am looking for a Plugin, that displays how often a player has joined my server.


I think its possible to create by counting/registering the Steam ID, or isnīt it?

Maybe you have an idea..


Greetings from GERMANY by TazZ.amxx
TazZ.amxx is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-15-2009 , 06:38   Re: [Request Plugin] Steam ID Counter
Reply With Quote #2

Why don't you install Psychostats for example, you will get such stats about a player.
__________________
Arkshine is offline
TazZ.amxx
Member
Join Date: Jun 2009
Old 07-15-2009 , 06:57   Re: [Request Plugin] Steam ID Counter
Reply With Quote #3

thx for the idea,

but with psychostats I will need a mySQL Database, or something like that.
This plugin is too overload for my idea.
TazZ.amxx is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 07-15-2009 , 07:47   Re: [Request Plugin] Steam ID Counter
Reply With Quote #4

Not tested, but should work (nvault module needed):
PHP Code:
#include <amxmodx>
#include <nvault>

new const g_name[] = "id_counter";

public 
plugin_init()
{
    
register_plugin("id_counter""1.0""TazZ.amxx");
    
register_clcmd("say""cmdHookSay");
}

public 
client_putinserver(id)
{
    new 
nvault_open(g_name);

    if (
v  == -1)
    {
        return;
    }

    new 
auth[32];
    new 
res[8];
    
get_user_authid(idauthsizeof (auth));
    
nvault_get(vauthressizeof (res));

    new 
num str_to_num(res);

    if (!
num)
    {
        
nvault_set(vauth"1");
    }
    else
    {
        
formatex(ressizeof (res), "%i"num++);
        
nvault_set(vauthres);
    }

    
nvault_close(v);
}

public 
cmdHookSay(id)
{
    new 
cmd[8];
    
read_args(cmdsizeof (cmd));
    
remove_quotes(cmd);

    if (
equal(cmd"/get"))
    {
        new 
nvault_open(g_name);

        if (
== -1)
        {
            return;
        }

        new 
auth[32];
        new 
res[8];
        
get_user_authid(idauthsizeof (auth));
        
nvault_get(vauthressizeof (res));
        
nvault_close(v);

        
client_print(idprint_chat"You joined this server %i time(s)."str_to_num(res));
    }

TheRadiance is offline
Send a message via ICQ to TheRadiance
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-15-2009 , 07:50   Re: [Request Plugin] Steam ID Counter
Reply With Quote #5

Could be better to not count when a player joins 2 times on the same map.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 07-15-2009 , 08:14   Re: [Request Plugin] Steam ID Counter
Reply With Quote #6

I just don't know exactly what he wants
TheRadiance is offline
Send a message via ICQ to TheRadiance
TazZ.amxx
Member
Join Date: Jun 2009
Old 07-15-2009 , 08:45   Re: [Request Plugin] Steam ID Counter
Reply With Quote #7

thx guys!

What I seek is:
I (admin) want to see, how often a player has joined my server (maybe the player has changed his name).

@TheRadiance:
Do you have created this code extra for me?
I have no scripting experience, but I think I understand a bit^^
In the line:
PHP Code:
lient_print(idprint_chat"You joined this server %i time(s)."str_to_num(res)); 
Is this message displayed to all player ingame, or only for the one who joins? Better is: all player can read this!

Will the plugin operating by counting the Steam ID?

What can I do with this code, now? Do I have to compile it?

Last edited by TazZ.amxx; 07-15-2009 at 08:54.
TazZ.amxx is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 07-15-2009 , 08:59   Re: [Request Plugin] Steam ID Counter
Reply With Quote #8

Quote:
Originally Posted by TazZ.amxx View Post
thx guys!

What I seek is:
I (admin) want to see, how often a player has joined my server (maybe the player has changed his name).

@TheRadiance:
Do you have created this code extra for me?
I have no scripting experience, but I think I understand a bit^^
In the line:
PHP Code:
lient_print(idprint_chat"You joined this server %i time(s)."str_to_num(res)); 
Is this message displayed to all player ingame, or only for the one who joins? Better is: all player can read this!

Will the plugin operating by counting the Steam ID?

What can I do with this code, now? Do I have to compile it?
Give us know exactly which way of print you want (when player connects or disconnects, who will see this message etc...);

Quote:
Do you have created this code extra for me?
yeah
TheRadiance is offline
Send a message via ICQ to TheRadiance
TazZ.amxx
Member
Join Date: Jun 2009
Old 07-15-2009 , 09:18   Re: [Request Plugin] Steam ID Counter
Reply With Quote #9

Requirements:

-displayed at connection
-displayed for all players ingame and to the one who joines
-position: at the bottom on left side. Not centered!
-colour of the word "NOOBY " and "12" should be in green
-make it possible to edit the text (called "string"?) for me, like itīs possible in the GHW Connect Messages-Plugin (see the first CVAR)

For Example:
Quote:
Player NOOBY played here: 12 times
the underlined word is recognized by the plugin.
(Is this right in the english language? Maybe correct the sentence)

Do you need other informations about my running plugins, or configs? Ask me, I will post them.

how can I thank you for the work?

Last edited by TazZ.amxx; 07-15-2009 at 13:10.
TazZ.amxx is offline
TazZ.amxx
Member
Join Date: Jun 2009
Old 07-20-2009 , 08:55   Re: [Request Plugin] Steam ID Counter
Reply With Quote #10

are you still working? ^^
TazZ.amxx is offline
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 02:31.


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