Raised This Month: $168 Target: $400
 42% 

search Welcome Message plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Enrory
Member
Join Date: Nov 2016
Location: Austria
Old 08-26-2017 , 08:30   search Welcome Message plugin
Reply With Quote #1

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?
__________________
Enrory is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 08-27-2017 , 08:51   Re: search Welcome Message plugin
Reply With Quote #2

post the plugin that shows the message for everyone
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is online now
Enrory
Member
Join Date: Nov 2016
Location: Austria
Old 08-27-2017 , 13:51   Re: search Welcome Message plugin
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=19094
__________________
Enrory is offline
xExperienced
Member
Join Date: Jun 2017
Location: USA
Old 08-29-2017 , 04:57   Re: search Welcome Message plugin
Reply With Quote #4

Quote:
Originally Posted by Enrory View Post
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 )
}
xExperienced is offline
Enrory
Member
Join Date: Nov 2016
Location: Austria
Old 09-09-2017 , 11:51   Re: search Welcome Message plugin
Reply With Quote #5

ok thanks can you edit this?

Is for Half-life mod (sven coop) and have no csx or rank.
__________________
Enrory is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 09-13-2017 , 13:59   Re: search Welcome Message plugin
Reply With Quote #6

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
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 09-13-2017 at 14:00.
aron9forever is online now
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 14:28.


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