Quote:
Originally Posted by Enrory
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 )
}