/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Options welcomed"
#define VERSION "1.2"
#define AUTHOR "loleN~"
#define HUD set_hudmessage (200, 150, 0, 0.02, 0.24, 0, 6.0, 12.0)
new onoff
new adminhide
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_dictionary("welcomed.txt")
onoff = register_cvar("amx_welcomed","1")
adminhide = register_cvar("amx_adminhide","0")
}
public client_connect(id)
{
switch(is_user_admin(id))
{
case 0:
{
if(!get_pcvar_num(onoff)){
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_PLAYER_CONNECT", name)
}
}
case 1:
{
if(!get_pcvar_num(onoff)){
if(get_pcvar_num(adminhide)==0)
{
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_ADMIN_CONNECT", name)
}
if(get_pcvar_num(adminhide)==1)
{
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_PLAYER_CONNECT", name)
}
}
}
}
}
public client_putinserver(id)
{
switch(is_user_admin(id))
{
case 0:
{
if(!get_pcvar_num(onoff)){
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_PLAYER_GAME", name)
}
}
case 1:
{
if(!get_pcvar_num(onoff)){
if(get_pcvar_num(adminhide)==0)
{
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_ADMIN_GAME", name)
}
if(get_pcvar_num(adminhide)==1)
{
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_PLAYER_GAME", name)
}
}
}
}
}
public client_disconnect(id)
{
switch(is_user_admin(id))
{
case 0:
{
if(!get_pcvar_num(onoff)){
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_PLAYER_DISCONNECT", name)
}
}
case 1:
{
if(!get_pcvar_num(onoff)){
if(get_pcvar_num(adminhide)==0)
{
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_ADMIN_DISCONNECT", name)
}
if(get_pcvar_num(adminhide)==1)
{
new name [32]
get_user_name(id, name, 31)
HUD
show_hudmessage(0, "%L",LANG_PLAYER,"MSG_PLAYER_DISCONNECT", name)
}
}
}
}
}
Wiem ze bd w **** błędów kiedyś ludź


Dodatki SourceMod



Temat jest zamknięty



loleN.amxx






