Plugin Event VIP FREE [UPDATE - V3.0]

In jos

descarca Plugin Event VIP FREE [UPDATE - V3.0]

Mesaj Scris de DarkArms la data de Dum Noi 13, 2016 6:56 pm

Descriere : Da un anumit flag playerilor intre anumite ore
Descarcare : -
Nume : Event VIP FREE
Versiune : 2.0
Autor : cyby ( l-a creat fara mesaje,fara cvaruri si fara HUD ) ; LOL ( am adaugat mesajele,cvarurile si HUD-ul )
Link oficial : aici

Spoiler:
#include <amxmodx>
#include <amxmisc>

const TASK_ID = 258;

new task_set = 0;
new inceput,
   sfarsit,
   flag_vip,
h

public plugin_init()
{
register_plugin("Dam la saraci vip", "3.0", "cyby // editat de LOL")
   
register_dictionary("vip_free.txt")
inceput = register_cvar( "vip_start", "20" );
sfarsit = register_cvar( "vip_end", "23" )
flag_vip = register_cvar( "vip_flag", "524288" )

}

public client_putinserver(id)
{
new o, m, s;
time(o, m, s)
if(o >= get_pcvar_num( inceput ) && o < get_pcvar_num( sfarsit ))
{
if( get_user_flags(id) != get_pcvar_num( flag_vip ) )
{
set_user_flags(id, get_pcvar_num( flag_vip ))
set_task(3.0, "mesaj", id)
set_task(1.0, "hud_mess", _, _, _, "b")
set_task(60.0, "incepe", id)
set_task(60.0, "terminare", id)
}
if( !task_set )
{
set_task( 60.0, "recheck", TASK_ID, _, _, "b" ); // task pus la 1 minut pentru a functiona corect
task_set = 1;
}
}
}
public recheck()
{

time( h, _, _ );

if( h >= 23 )
{
new iPlayers[ 32 ], iNum, i;
get_players( iPlayers, iNum );

for( i = 0; i < iNum; i++ )
{
remove_user_flags( iPlayers[ i ] );
}

server_cmd( "amx_reloadadmins" );

remove_task( TASK_ID );
task_set = 0;
}
}
public incepe(id)
{
new o, m, s;
time(o, m, s)
if(o == get_pcvar_num( inceput ) )
ColorChat(id, "%L", LANG_SERVER, "MESAJ_INCEPUT")
}
public terminare(id)
{
new o, m, s;
time(o, m, s)
if(o == get_pcvar_num( sfarsit ) )
ColorChat(id,  "%L", LANG_SERVER, "MESAJ_SFARSIT")
}
public hud_mess()
{
new o, m, s;
time(o, m, s)
if(o >= get_pcvar_num( inceput ) && o < get_pcvar_num( sfarsit ))
{
set_hudmessage(random(256), random(256), random(256), 0.00, 0.17, 1, 1.0, 1.1, 0.1, 0.1, -1)
show_hudmessage(0, "%L", LANG_SERVER, "MESAJ_HUD")
}
}
public mesaj(id)
{
       if( get_user_flags(id) != get_pcvar_num( flag_vip ) )
{

ColorChat(id, "%L", LANG_SERVER, "MESAJ_INTRARE", get_pcvar_num( inceput ), get_pcvar_num( sfarsit ))

}
}
stock ColorChat(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!g", "^4");
replace_all(msg, 190, "!n", "^1");
replace_all(msg, 190, "!t", "^3");

if(id) players[0] = id;
else get_players(players, count, "ch"); {
for(new i = 0; i < count; i++) {
if(is_user_connected(players[i])) {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Instalare:

1. Fisierul vip_free.sma il puneti in addons/amxmodx/scripting
2. Fisierul vip_free.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
vip_free.amxx
4. Intrati in folderul addons/amxmodx/data/lang si adaugati sub numele de vip_free.txt :

Spoiler:
[ro]
MESAJ_INCEPUT = !t[FURIEN] !nEventul!t VIP FREE !na inceput !g!
MESAJ_SFARSIT = !t[FURIEN] !nEventul!t VIP FREE !ns-a terminat !g!
MESAJ_HUD = EVENT VIP FREE !
MESAJ_INTRARE = !t[FURIEN]!nAi primit!t VIP !npentru ca este event!t VIP FREE !nintre orele!g %d:00 !nsi!g %d:00 !n!
[en]
MESAJ_INCEPUT = !t[FURIEN] !nEventul!t VIP FREE !na inceput !g!
MESAJ_SFARSIT = !t[FURIEN] !nEventul!t VIP FREE !ns-a terminat !g!
MESAJ_HUD = EVENT VIP FREE !
MESAJ_INTRARE = !t[FURIEN]!nAi primit!t VIP !npentru ca este event!t VIP FREE !nintre orele!g %d:00 !nsi!g %d:00 !n!

P.S Trebuie sa aveti limba serverului ROMANA sau ENGLEZA !


Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):

   vip_start - ora la care incepe eventul
   vip_end - ora la care se termina
  NEW! vip_flag - flagul vipului

La cvar-ul vip_flag puneti numerele corespunzatoare flagului dorit de voi :

Spoiler:
1 - Flag "a"
2 - Flag "b"
4 - Flag "c"
8 - Flag "d"
16 - Flag "e"
32 - Flag "f"
64 - Flag "g"
128 - Flag "h"
256 - Flag "i"
512 - Flag "j"
1024 - Flag "k"
2048 - Flag "l"
4096 - Flag "m"
8192 - Flag "n"
16384 - Flag "o"
32768 - Flag "p"
65536 - Flag "q"
131072 - Flag "r"
262144 - Flag "s"
524288 - Flag "t"
1048576 - Flag "u"
33554432 - Flag "z"

DarkArms
Founders
Founders

Mesaje : 226
Data de inscriere : 23/09/2016
Varsta : 16
Localizare : Terra

http://lowgamers.forumgratuit.ro

Sus In jos

descarca Re: Plugin Event VIP FREE [UPDATE - V3.0]

Mesaj Scris de Dracu la data de Dum Noi 13, 2016 9:31 pm

Good Job!
avatar
Dracu
Moderators
Moderators

Mesaje : 193
Data de inscriere : 11/11/2016

Sus In jos

descarca Re: Plugin Event VIP FREE [UPDATE - V3.0]

Mesaj Scris de Tipu la data de Mier Noi 23, 2016 1:28 pm

Good Job!
avatar
Tipu
Administrators
Administrators

Mesaje : 151
Data de inscriere : 22/11/2016

Sus In jos

descarca Re: Plugin Event VIP FREE [UPDATE - V3.0]

Mesaj Scris de CelRau la data de Dum Noi 27, 2016 7:58 pm

Good Job!
avatar
CelRau
Registered user
Registered user

Mesaje : 184
Data de inscriere : 26/11/2016

Sus In jos

descarca Re: Plugin Event VIP FREE [UPDATE - V3.0]

Mesaj Scris de Continut sponsorizat


Continut sponsorizat


Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum