AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HL1 Servers (HLDS) (https://forums.alliedmods.net/forumdisplay.php?f=131)
-   -   search Welcome Message plugin (https://forums.alliedmods.net/showthread.php?t=300695)

Enrory 08-26-2017 08:30

search Welcome Message plugin
 
Hello I am looking for a simple plugin (amxx).

If a Player Join, the player see the message. Only this player.
I found some but the message is for everyone on same time.
Can anyone help me?

aron9forever 08-27-2017 08:51

Re: search Welcome Message plugin
 
post the plugin that shows the message for everyone

Enrory 08-27-2017 13:51

Re: search Welcome Message plugin
 
https://forums.alliedmods.net/showthread.php?t=19094

xExperienced 08-29-2017 04:57

Re: search Welcome Message plugin
 
Quote:

Originally Posted by Enrory (Post 2544452)
Hello I am looking for a simple plugin (amxx).

If a Player Join, the player see the message. Only this player.
I found some but the message is for everyone on same time.
Can anyone help me?

Here u go :

Code:

#include <amxmodx>
#include <amxmisc>
#include <csx>

#define PLUGIN "Welcome Plugin 2017"
#define VERSION "1.0"
#define AUTHOR "X"


public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
}

public client_putinserver(id)
{
        if(!is_user_bot(id) && is_user_connected(id))
                set_task(3.0,"message",id)
}
public message(id)
{
        new name[33]
        new stats[8]
        new body[8]
        new rank_pos = get_user_stats( id, stats, body )
        new rank_max = get_statsnum( )
       
        get_user_name(id,name,charsmax(name))
        set_dhudmessage(51, 255, 255, -1.0, -1.0, 0, 2.0, 3.0, 0.8, 0.8)
        show_dhudmessage(id, "%s Welcome to our server !")
        client_print_color(id,print_team_default,"^4 ^3 %s ^4Welcome ^3To ^4our Server. ^1| ^4Your ^3Rank ^1is ^4%d ^3from ^4%d ",name,rank_pos, rank_max )
}


Enrory 09-09-2017 11:51

Re: search Welcome Message plugin
 
ok thanks can you edit this?

Is for Half-life mod (sven coop) and have no csx or rank.

aron9forever 09-13-2017 13:59

Re: search Welcome Message plugin
 
ok nevermind I thought you found a simple plugin but you posted a gigantic one compared to what you need
here try this

Code:
#include <amxmodx> #pragma semicolon 1 static const WELCOME_MESSAGE[] = "Welcome to my server!"; public plugin_init() {   register_plugin("Simplest Welcome Message", "1.0", "aron9forever aka Carnacior"); } public client_putinserver(id) {   set_task(3.0, "display_message", id); } public display_message(id) {   client_print(id, print_chat, WELCOME_MESSAGE); }

Just edit the text with whatever you want. Let me know if you want colors, that changes stuff a bit

Enrory 09-24-2017 07:11

Re: search Welcome Message plugin
 
Thanks this plugin work good :)


All times are GMT -4. The time now is 18:24.

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