B-Wine
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.
B-Wine
Regulament Forum
------------------------
Linkuri Utile
------------------------
Portal Forum
------------------------
Index Forum
------------------------
Join/Leave Labels=0
Subiecte similare
Conectare

Mi-am uitat parola

Căutare
 
 

Rezultate pe:
 


Rechercher Cautare avansata

Top postatori
SnoppyN1 (750)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
Valy (226)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
Crilyng (45)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
NoName (15)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
L0ckdawN (13)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
CataliN1 (12)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
rarRE (11)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
endo (8)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
coLdZ0r (7)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 
Liqua (6)
Join/Leave EmptyJoin/Leave I_voting_barJoin/Leave Empty 

Noiembrie 2024
LunMarMierJoiVinSamDum
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Parteneri
BN

Join/Leave

In jos

Join/Leave Empty Join/Leave

Mesaj Scris de SnoppyN1 Sam Mai 22, 2010 6:19 pm

Descriere: Arata cine se conecteaza, daca s-a conectat sau daca a parasit serverul sub forma unor mesaje HUD. Dupa cum observati culorile pe care le-am folosit in scrierea acestui topic nu sunt puse la intamplare, ele definesc exact acele momente specificate mai sus!

Descarcare: Megaupload | Mediafire

Nume: Join Leave
Versiune: 1.3 (modificata de mine)

Instalare:
1. Fisierul join_leave.sma il puneti in addons/amxmodx/scripting
2. Fisierul join_leave.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Code:
join_leave.amxx


Cvar-uri:se adauga in fisierul amxmodx\configs\amxx.cfg
Code:
amx_join_leave 1


Cam atat!

New Sma creat de mine...

/*
Join/Leave Message 1.3 by BigBaller

Just shows a basic Tsay like message to all players when user
is connecting, has established connection and disconnected from your server.

Just upload into your amxx/plugins folder
Add join_leave.amx in your amxx/plugins.ini

Restart server or change map.

ENJOY!

*New, You are able to turn messages off and on using the cvar
amx_join_leave

1 = On
0 = Off

Plugin by default is 1

Change Log
v 1.0 - Started with basic messages.
v 1.1 - Created a cvar to disable messages (cvar is amx_join_leave 1|0)
v 1.2 - Moved the messages up, they conflicted with plugins such as StatsX and PTB
*/

#include

public plugin_init() {
register_plugin("Join/Leave Message","1.2","BigBaller")
register_cvar("amx_join_message", " [ %name% ] se conecteaza...! Bafta la fraguri")
register_cvar("amx_joined_message", "[ %name% ] e gata sa joace!")
register_cvar("amx_leave_message", "[ %name% ] a iesit, nu a jucat rau ")
register_cvar("amx_join_leave","1")
}

public client_connect(id){
new user[32], len
user[0] = id
len = get_user_name(id,user[1],31)
set_task(2.0, "join_msg", 0, user,len + 2)
return PLUGIN_CONTINUE
}

public client_putinserver(id){
new user[32], len
user[0] = id
len = get_user_name(id,user[1],31)
set_task(2.0, "joined_msg", 0, user,len + 2)
return PLUGIN_CONTINUE
}

public client_disconnect(id){
new user[32], len
user[0] = id
len = get_user_name(id, user[1], 31)
set_task(2.0, "leave_msg", 0, user, len + 2)
return PLUGIN_CONTINUE
}

public join_msg(user[]) {
if (get_cvar_num("amx_join_leave")==0){
return PLUGIN_HANDLED
}
if (get_cvar_num("amx_join_leave")==1){
new message[192]
get_cvar_string("amx_join_message", message, 191)
replace(message, 191, "%name%", user[1])
set_hudmessage(255, 255, 255, 0.05, 0.40, 0, 6.0, 6.0, 0.5, 0.15, 3)
show_hudmessage(0, message)
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}

public joined_msg(user[]) {
if (get_cvar_num("amx_join_leave")==0){
return PLUGIN_HANDLED
}
if (get_cvar_num("amx_join_leave")==1){
new message[192]
get_cvar_string("amx_joined_message", message, 191)
replace(message, 191, "%name%", user[1])
set_hudmessage(0, 255, 0, 0.05, 0.40, 0, 6.0, 6.0, 0.5, 0.15, 3)
show_hudmessage(0, message)
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}

public leave_msg(user[]) {
if (get_cvar_num("amx_join_leave")==0){
return PLUGIN_HANDLED
}
if (get_cvar_num("amx_join_leave")==1){
new message[192]
get_cvar_string("amx_leave_message", message, 191)
replace(message, 191, "%name%", user[1])
set_hudmessage(179, 5, 5, 0.05, 0.40, 0, 6.0, 6.0, 0.5, 0.15, 3)
show_hudmessage(0, message)
return PLUGIN_CONTINUE
}
SnoppyN1
SnoppyN1
B-Wine Fondator
B-Wine Fondator

Status : The chosen one!
Sex : masculin
Posts : 750
Puncte : 10005890
Voturi : 3070
Joined : 14/10/2009
Varsta : 30
Location : Bistrita
Detinator Steam : Da
Warn : 0%

https://b-wine.forumgratuit.ro

Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum