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

Can't Find this Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KaH
New Member
Join Date: Jul 2013
Old 07-26-2013 , 10:39   Can't Find this Plugin
Reply With Quote #1

Well I been Searching for this Plugin after Playing in some Servers with it But I Cannot Find It :/


Pics of Plugins:






the welcome message & leaving message !

Last edited by KaH; 07-26-2013 at 10:39.
KaH is offline
hamood 400
BANNED
Join Date: Aug 2011
Location: Moon!
Old 07-26-2013 , 10:58   Re: Can't Find this Plugin
Reply With Quote #2

which plugins 0.o ?
hamood 400 is offline
Send a message via MSN to hamood 400
KaH
New Member
Join Date: Jul 2013
Old 07-26-2013 , 11:07   Re: Can't Find this Plugin
Reply With Quote #3

Quote:
Originally Posted by hamood 400 View Post
which plugins 0.o ?

The Welcome & Leaving Message.
KaH is offline
Old 07-26-2013, 11:08
Balck
This message has been deleted by Balck.
KaH
New Member
Join Date: Jul 2013
Old 07-26-2013 , 11:10   Re: Can't Find this Plugin
Reply With Quote #4

Quote:
Originally Posted by Balck View Post

Quote:
Originally Posted by KaH View Post
The Welcome & Leaving Message.
KaH is offline
iljos
BANNED
Join Date: Jun 2012
Location: Albania,Durres
Old 07-26-2013 , 11:30   Re: Can't Find this Plugin
Reply With Quote #5

Use AMX super 4.2

and look into
PHP Code:
amx_super.cfg 
iljos is offline
Send a message via MSN to iljos Send a message via Yahoo to iljos Send a message via Skype™ to iljos
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-26-2013 , 11:43   Re: Can't Find this Plugin
Reply With Quote #6

Try this :

PHP Code:
/*
* Enter and Leave Message
*  v 0.1
*
*  by [MUPPETS] Gonzo
*   [email protected]
*
* some code was taken from
* welcome_hudmsg by JustinHoMi
*
* Traduit par c@n3d@
*/

#include < amxmodx >

native get_user_stats(indexstats[], bodyhits[8]);

new 
amx_enter_messageamx_leave_messagepcvar_hostnameamx_enter_message_coloramx_leave_message_coloramx_enter_message_soundamx_leave_message_sound;

new const 
namePattern[] = "%name%";
new const 
hostnamePattern[] = "%hostname%";
new const 
rankPattern[] = "%rankpos%";

new 
g_iXstats;

enum
{
    
_None,
    
_Normal,
    
_Dodx,
}

new 
g_bConnected[33 char];

new 
g_szConnectSound[256], g_szDisconnectSound[256];

public 
plugin_init()
{
    
register_plugin("Enter-Leave Message""0.4.2""[MUPPETS] Gonzo");

    
amx_enter_message register_cvar("amx_enter_message""%name% has joined!^nEnjoy the server.");
    
amx_enter_message_color register_cvar("amx_enter_message_color""50 255 50");
    
amx_leave_message register_cvar("amx_leave_message""%name% has left!^nHope to see you back sometime.");
    
amx_leave_message_color register_cvar("amx_enter_message_color""255 50 120");
    
amx_leave_message_sound register_cvar("amx_leave_message_sound""buttons/bell.wav");

    
pcvar_hostname get_cvar_pointer("hostname");

    if(    
IsModuleLoaded("csx")
    ||    
IsModuleLoaded("tfcx")
    ||    
IsModuleLoaded("tsx")    )
    {
        
g_iXstats _Normal
    
}
    else if( 
IsModuleLoaded("dodx") )
    {
        
g_iXstats _Dodx
    
}
}

IsModuleLoaded(const library[])
{
    return 
LibraryExists(libraryLibType_Library)
}

public 
plugin_precache()
{
    
amx_enter_message_sound register_cvar("amx_enter_message_sound""buttons/blip.wav");
    new 
szFile[256];
    
get_pcvar_string(amx_enter_message_soundg_szConnectSoundcharsmax(g_szConnectSound));
    
formatex(szFilecharsmax(szFile), "sound/%s"g_szConnectSound);
    if( 
file_exists(szFile) )
    {
        
precache_sound(g_szConnectSound);
    }
    else
    {
        
g_szConnectSound[0] = EOS;
    }

    
get_pcvar_string(amx_leave_message_soundg_szDisconnectSoundcharsmax(g_szDisconnectSound));
    
formatex(szFilecharsmax(szFile), "sound/%s"g_szDisconnectSound);
    if( 
file_exists(szFile) )
    {
        
precache_sound(g_szDisconnectSound);
    }
    else
    {
        
g_szDisconnectSound[0] = EOS;
    }
}

public 
client_putinserver(id)
{
    if( !
is_user_bot(id) && !is_user_hltv(id) )
    {
        
g_bConnected{id} = true;
        
set_task(2.0"enter_msg"id);
    }
}

public 
enter_msg(id)
{
    if( 
is_user_connected(id) )
    {
        
ShowMessage(idamx_enter_messageamx_enter_message_colorg_szConnectSound);
    }
}

public 
client_disconnect(id)
{
    if( 
g_bConnected{id} )
    {
        
g_bConnected{id} = false;

        if( 
task_exists(id) )
        {
            
remove_task(id);
        }
        else 
        {
            
ShowMessage(idamx_leave_messageamx_leave_message_colorg_szDisconnectSound);
        }
    }
}

ShowMessage(idpcvarMessagepcvarColor, const szSound[])
{
    new 
message[192];
    
get_pcvar_string(pcvarMessagemessagecharsmax(message));

    if( 
message[0] )
    {
        new 
color[12], red[4], green[4], blue[4]
        
get_pcvar_string(pcvarColorcolorcharsmax(color));
        
parse(colorredcharsmax(red), greencharsmax(green), bluecharsmax(blue))
        new 
pos contain(messagenamePattern);
        if( 
pos != -)
        {
            new 
name[32];
            
get_user_name(idnamecharsmax(name));
            
replace(message[pos], charsmax(message)-posnamePatternname);
        }

        if( (
pos contain(messagehostnamePattern)) != -)
        {
            new 
hostname[64];
            
get_pcvar_string(pcvar_hostnamehostnamecharsmax(hostname));
            
replace(message[pos], charsmax(message)-poshostnamePatternhostname);
        }

        if( (
pos contain(messagerankPattern)) != -)
        {
            new 
szRank[32];
            
formatex(szRankcharsmax(szRank), "%d"get_user_rank(id));
            
replace(message[pos], charsmax(message)-posrankPatternszRank);
        }

        
replace_all(messagecharsmax(message), "\n""^n");

        
set_hudmessage(str_to_num(red), str_to_num(green), str_to_num(blue), 0.050.5506.06.00.50.15, -1);
        
show_hudmessage(0message);
    }

    if( 
szSound[0] )
    {
        
client_cmd(0"spk %s"szSound);
    }
}

get_user_rank(id)
{
    switch( 
g_iXstats )
    {
        case 
_Normal:
        {
            new 
stats[8], hits[8];
            return 
get_user_stats(idstatshits);
        }
        case 
_Dodx:
        {
            new 
stats[9], hits[8];
            return 
get_user_stats(idstatshits);
        }
    }
    return 
0;

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-27-2013 at 16:04.
ConnorMcLeod is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 07-26-2013 , 12:42   Re: Can't Find this Plugin
Reply With Quote #7

No it has nothing to do with that Balck.
Look Kah, this isn't a plugin. This is a regular addon that comes with AMX MOD X.
If you turn your multiplayer game into a dedicated server and a real person (not a bot) enters, that message will appear.
As simple as that
PM me for more questions ;)
__________________
BLacking98 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-26-2013 , 18:39   Re: Can't Find this Plugin
Reply With Quote #8

Quote:
Originally Posted by BLacking98 View Post
Look Kah, this isn't a plugin. This is a regular addon that comes with AMX MOD X.
If you turn your multiplayer game into a dedicated server and a real person (not a bot) enters, that message will appear.
AMXX does not include this feature by default. A plugin is required to accomplish this
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-27-2013 , 04:34   Re: Can't Find this Plugin
Reply With Quote #9

Quote:
Originally Posted by BLacking98 View Post
PM me for more questions ;)
Sounds really stupid.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 07-28-2013 , 08:44   Re: Can't Find this Plugin
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
Sounds really stupid.

God I'm offering help x)
__________________
BLacking98 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 07:14.


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