It is currently 20 Nov 2018 18:39



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 7 posts ] 
 Cerere Plugin vip free 
Author Message
Membru, skill +3
Membru, skill +3
User avatar

Joined: 20 May 2016 16:28
Posts: 1495
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: GO.TRIED.RO
Fond eXtream: 0
As dori si eu un plugin de vip intre orele 7-12 dimineata .
Vip ul meu are flagul "r" asa ca sa ofere ce primeste flagul "r" adica beneficii de vip :))
Sa apara in stanga sus in colt cu verde VIP FREE ON ! , doar intre orele mentionate mai sus !
Daca stiti un plugin si mi l puteti edita lasati l aici direct editat.

_________________
Detinator : # Go.Tried.Ro #


10 Jun 2018 12:14
Profile multumesc YIM WWW
Membru, skill +3
Membru, skill +3
User avatar

Joined: 20 May 2016 16:28
Posts: 1495
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: GO.TRIED.RO
Fond eXtream: 0
cineva?

_________________
Detinator : # Go.Tried.Ro #


10 Jun 2018 20:38
Profile multumesc YIM WWW
Membru, skill +1
Membru, skill +1
User avatar

Joined: 30 Jul 2016 21:28
Posts: 402
Location: Botosani
Detinator Steam: Da
CS Status: Muncă
Detinator server CS: Frcso.Play-Arena.Ro
SteamID: Privat
Fond eXtream: 0
E bine gogule ?
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

new start,
stop,
minutes,
h,
m

new bool: HaveVipBefore[33];

#define FLAGS "r"

public plugin_init()
{
register_plugin("VIP FREE", "4.0", "LOL")

start = register_cvar( "vip_start", "7" );
stop = register_cvar( "vip_end", "12" )
minutes = register_cvar( "vip_minutes", "00" ) // nu modificati

set_task( 60.0, "check", _, _, _, "b" );

}

public client_putinserver(id)
{
check(id)
}
public check(id)
{

time( h, m, _ );
new flags = read_flags(FLAGS)

if(h >= get_pcvar_num( start ) && h < get_pcvar_num( stop ))
{
if(!(get_user_flags(id) & flags ))
{
set_user_flags(id, flags)
server_cmd( "amx_reloadadmins" );
HaveVipBefore[id] = false;
}else{
HaveVipBefore[id] = true;
}
if(h == get_pcvar_num( start ) && m == get_pcvar_num( minutes ))
{
ColorChat(0, "!g***** !tFREE VIP EVENT STARTED !g*****")
log_amx("***** FREE VIP EVENT STARTED *****")
}

set_hudmessage(random(256), random(256), random(256),0.02, 0.2, 1, _, 59.0, _, _, -1)
show_hudmessage(0, "Event VIP Free^n Start 07:00 Stop 12:00")
}
else if(h < get_pcvar_num( start ) || h >= get_pcvar_num( stop ))
{
if (!(HaveVipBefore[id]))
{
remove_user_flags(id, flags);
server_cmd( "amx_reloadadmins" );
}
if(h == get_pcvar_num( stop ) && m == get_pcvar_num( minutes ))
{
ColorChat(0, "!g***** !tFREE VIP EVENT ENDED !g*****")
log_amx("***** FREE VIP EVENT ENDED *****")
}
}
}

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();
}
}
}
}

_________________
Nu ne oprim din joacă atunci când îmbătrânim ci îmbătrânim când încetăm să ne mai jucăm.


10 Jun 2018 21:38
Profile multumesc
Membru, skill +3
Membru, skill +3
User avatar

Joined: 20 May 2016 16:28
Posts: 1495
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: GO.TRIED.RO
Fond eXtream: 0
-ToTo- wrote:
E bine gogule ?
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

new start,
stop,
minutes,
h,
m

new bool: HaveVipBefore[33];

#define FLAGS "r"

public plugin_init()
{
register_plugin("VIP FREE", "4.0", "LOL")

start = register_cvar( "vip_start", "7" );
stop = register_cvar( "vip_end", "12" )
minutes = register_cvar( "vip_minutes", "00" ) // nu modificati

set_task( 60.0, "check", _, _, _, "b" );

}

public client_putinserver(id)
{
check(id)
}
public check(id)
{

time( h, m, _ );
new flags = read_flags(FLAGS)

if(h >= get_pcvar_num( start ) && h < get_pcvar_num( stop ))
{
if(!(get_user_flags(id) & flags ))
{
set_user_flags(id, flags)
server_cmd( "amx_reloadadmins" );
HaveVipBefore[id] = false;
}else{
HaveVipBefore[id] = true;
}
if(h == get_pcvar_num( start ) && m == get_pcvar_num( minutes ))
{
ColorChat(0, "!g***** !tFREE VIP EVENT STARTED !g*****")
log_amx("***** FREE VIP EVENT STARTED *****")
}

set_hudmessage(random(256), random(256), random(256),0.02, 0.2, 1, _, 59.0, _, _, -1)
show_hudmessage(0, "Event VIP Free^n Start 07:00 Stop 12:00")
}
else if(h < get_pcvar_num( start ) || h >= get_pcvar_num( stop ))
{
if (!(HaveVipBefore[id]))
{
remove_user_flags(id, flags);
server_cmd( "amx_reloadadmins" );
}
if(h == get_pcvar_num( stop ) && m == get_pcvar_num( minutes ))
{
ColorChat(0, "!g***** !tFREE VIP EVENT ENDED !g*****")
log_amx("***** FREE VIP EVENT ENDED *****")
}
}
}

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();
}
}
}
}

foarte foarte bine , da pana ai facut tu am rezolvat eu =))))))))) dar oricum mersi

_________________
Detinator : # Go.Tried.Ro #


11 Jun 2018 09:35
Profile multumesc YIM WWW
Online
Jan Darmu'
Jan Darmu'
User avatar

Joined: 25 Aug 2014 21:31
Posts: 6024
Location: Ploiesti
Detinator Steam: Da
CS Status: All i ever wanted was a Rolly Rolly
SteamID: Jandarmeria
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fost Moderator ajutator
Fost Super Moderator
eXtream Mod
Fost Intermediar
Nume anterior : Christmas,
A k c 3 n 7
Fond eXtream: 0
Pai daca asteptati totul mura-n gura cum sa nu?

_________________
ImageImage

Lista intermediari
Nu ezita sa ma contactezi la 112 pentru interventii speciale: S.I.A.S
REGULI GENERALE
REGULILE SECTIUNII ANUNTURI



11 Jun 2018 14:34
Profile multumesc
Membru, skill +3
Membru, skill +3
User avatar

Joined: 20 May 2016 16:28
Posts: 1495
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: GO.TRIED.RO
Fond eXtream: 0
Sorinel wrote:
Pai daca asteptati totul mura-n gura cum sa nu?

Uite ca am vazut pe net cum se face acest plugin este vreo problema daca am cerut si aici?
el s a gasit sa ma ajute ca ma cunoaste si are bunul simt da uni nu prea , cer si eu aici ce este mai greu este vreo problema?si vezi ca faci off topic ;)

_________________
Detinator : # Go.Tried.Ro #


11 Jun 2018 16:07
Profile multumesc YIM WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 18 Jan 2017 09:47
Posts: 44
Detinator Steam: Da
CS Status: Butonez pe aici...
Detinator server CS: Da
SteamID: Privat.
Fond eXtream: 0
daca tu vrei sa ti faci un server si nici macar nu stii sa pui un flag la un plugin facut de o gramada de oameni si pe care-l gasesti peste tot pe internet atunci ce sa mai zic... Daca era ceva mai greu mai ziceam, si dupa ce ca omu iti ofera deja o sursa facuta mura-n gura mai si comentezi ca pana ti-a facut el ai gasit tu, daca cautai de la bun inceput nu mai trebuia sa astepti.


14 Jun 2018 18:36
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: dim2k, LondoN eXtream and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group