[Cerere Plugin] EVENT FREE VIP
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Forum rules
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
- Alexandru P.
- Membru, skill 0
- Posts: 77
- Joined: 10 Apr 2020, 11:27
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Detinator server CS: CS.BHZD.RO
- Fond eXtream: 0
- Has thanked: 7 times
- Contact:
Plugin Cerut: Event free V.I.P
Descriere (adica ce face el mai exact): Doresc un plugin sa ofere free VIP intre orele 10:00 - 20:00 (pluginul de VIP are "flag" "x")
Serverul impune conditii strict HLDS/REHLDS?: HLDS
Ai cautat pluginul?(daca da, precizeaza cum): Da dar nu fuctioneaza
Necesita mod special?: Nu
Descriere (adica ce face el mai exact): Doresc un plugin sa ofere free VIP intre orele 10:00 - 20:00 (pluginul de VIP are "flag" "x")
Serverul impune conditii strict HLDS/REHLDS?: HLDS
Ai cautat pluginul?(daca da, precizeaza cum): Da dar nu fuctioneaza
Necesita mod special?: Nu
- robbencsgo
- Membru, skill 0
- Posts: 96
- Joined: 31 Aug 2019, 19:14
- Detinator Steam: Da
- CS Status: aimer
- SteamID: an prevat
- Fond eXtream: 0
- Has thanked: 9 times
- Been thanked: 11 times
- Contact:
Code: Select all
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
new start,
stop,
h
new bool:g_HaveVipBefore[33];
new bool:g_VipFreeON;
#define FLAGS "x"
public plugin_init()
{
register_plugin("VIP FREE", "4.0", "LOL")
start = register_cvar("vip_start", "20");
stop = register_cvar("vip_end", "10");
if(!g_VipFreeON)
{
set_task(30.0, "check", _, _, _, "b");
}
}
public check(id)
{
time( h, _, _ );
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");
g_HaveVipBefore[id] = false;
g_VipFreeON = true;
}
else
{
g_HaveVipBefore[id] = true;
}
if(h == get_pcvar_num(start) && !g_VipFreeON)
{
ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT STARTED ^04*****")
log_amx("[VIP] FREE VIP EVENT STARTED")
}
}
else if(h < get_pcvar_num(start) || h >= get_pcvar_num(stop))
{
if (!(g_HaveVipBefore[id]))
{
remove_user_flags(id, flags);
server_cmd("amx_reloadadmins");
g_VipFreeON = false;
}
if(h == get_pcvar_num(stop))
{
ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT ENDED ^04*****")
log_amx("[VIP] FREE VIP EVENT ENDED")
}
}
}
Last edited by JaiLBreaK on 08 Jul 2020, 15:13, edited 1 time in total.
Reason: Sa nu folosesti asta ca nu o sa iti mearga
Reason: Sa nu folosesti asta ca nu o sa iti mearga
Daca te-am ajutat, lasa si tu un +1
- Capy Trifoi
- Membru, skill 0
- Posts: 61
- Joined: 23 Apr 2020, 07:43
- Detinator Steam: Da
- CS Status: On
- Detinator server CS: RESPAWN.CS-GAME.RO
- SteamID: capymuncasitalent
- Fond eXtream: 0
- Has thanked: 5 times
- Been thanked: 5 times
si titlul anului pentru cel mai prost support se duce la tinerobbencsgo wrote: ↑07 Jul 2020, 13:32cu un mic search pe google doar modificai flagul..Code: Select all
#include <amxmodx> #include <amxmisc> #include <colorchat> new start, stop, h new bool:g_HaveVipBefore[33]; new bool:g_VipFreeON; #define FLAGS "x" public plugin_init() { register_plugin("VIP FREE", "4.0", "LOL") start = register_cvar("vip_start", "20"); stop = register_cvar("vip_end", "10"); if(!g_VipFreeON) { set_task(30.0, "check", _, _, _, "b"); } } public check(id) { time( h, _, _ ); 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"); g_HaveVipBefore[id] = false; g_VipFreeON = true; } else { g_HaveVipBefore[id] = true; } if(h == get_pcvar_num(start) && !g_VipFreeON) { ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT STARTED ^04*****") log_amx("[VIP] FREE VIP EVENT STARTED") } } else if(h < get_pcvar_num(start) || h >= get_pcvar_num(stop)) { if (!(g_HaveVipBefore[id])) { remove_user_flags(id, flags); server_cmd("amx_reloadadmins"); g_VipFreeON = false; } if(h == get_pcvar_num(stop)) { ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT ENDED ^04*****") log_amx("[VIP] FREE VIP EVENT ENDED") } } }
Last edited by Capy Trifoi on 10 Jul 2020, 12:12, edited 1 time in total.
- robbencsgo
- Membru, skill 0
- Posts: 96
- Joined: 31 Aug 2019, 19:14
- Detinator Steam: Da
- CS Status: aimer
- SteamID: an prevat
- Fond eXtream: 0
- Has thanked: 9 times
- Been thanked: 11 times
- Contact:
Vezi ca aiCapy Trifoi wrote: ↑10 Jul 2020, 11:42si titlul anului pentru cel mai prost support se duce la tinerobbencsgo wrote: ↑07 Jul 2020, 13:32cu un mic search pe google doar modificai flagul..Code: Select all
#include <amxmodx> #include <amxmisc> #include <colorchat> new start, stop, h new bool:g_HaveVipBefore[33]; new bool:g_VipFreeON; #define FLAGS "x" public plugin_init() { register_plugin("VIP FREE", "4.0", "LOL") start = register_cvar("vip_start", "20"); stop = register_cvar("vip_end", "10"); if(!g_VipFreeON) { set_task(30.0, "check", _, _, _, "b"); } } public check(id) { time( h, _, _ ); 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"); g_HaveVipBefore[id] = false; g_VipFreeON = true; } else { g_HaveVipBefore[id] = true; } if(h == get_pcvar_num(start) && !g_VipFreeON) { ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT STARTED ^04*****") log_amx("[VIP] FREE VIP EVENT STARTED") } } else if(h < get_pcvar_num(start) || h >= get_pcvar_num(stop)) { if (!(g_HaveVipBefore[id])) { remove_user_flags(id, flags); server_cmd("amx_reloadadmins"); g_VipFreeON = false; } if(h == get_pcvar_num(stop)) { ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT ENDED ^04*****") log_amx("[VIP] FREE VIP EVENT ENDED") } } }
Code: Select all
public mesaj(id)
{
client_print(id, print_chat, Mesaj")
}
Si in plus omul a cerut pentru flag-ul X nu bit :)
Daca te-am ajutat, lasa si tu un +1
- Capy Trifoi
- Membru, skill 0
- Posts: 61
- Joined: 23 Apr 2020, 07:43
- Detinator Steam: Da
- CS Status: On
- Detinator server CS: RESPAWN.CS-GAME.RO
- SteamID: capymuncasitalent
- Fond eXtream: 0
- Has thanked: 5 times
- Been thanked: 5 times
iarta-ma domnule ca te doare mana sa scoti 5 linii din cod...am dat edit sa nu te simti ofensatrobbencsgo wrote: ↑10 Jul 2020, 12:00Vezi ca aiCapy Trifoi wrote: ↑10 Jul 2020, 11:42si titlul anului pentru cel mai prost support se duce la tinerobbencsgo wrote: ↑07 Jul 2020, 13:32cu un mic search pe google doar modificai flagul..Code: Select all
#include <amxmodx> #include <amxmisc> #include <colorchat> new start, stop, h new bool:g_HaveVipBefore[33]; new bool:g_VipFreeON; #define FLAGS "x" public plugin_init() { register_plugin("VIP FREE", "4.0", "LOL") start = register_cvar("vip_start", "20"); stop = register_cvar("vip_end", "10"); if(!g_VipFreeON) { set_task(30.0, "check", _, _, _, "b"); } } public check(id) { time( h, _, _ ); 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"); g_HaveVipBefore[id] = false; g_VipFreeON = true; } else { g_HaveVipBefore[id] = true; } if(h == get_pcvar_num(start) && !g_VipFreeON) { ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT STARTED ^04*****") log_amx("[VIP] FREE VIP EVENT STARTED") } } else if(h < get_pcvar_num(start) || h >= get_pcvar_num(stop)) { if (!(g_HaveVipBefore[id])) { remove_user_flags(id, flags); server_cmd("amx_reloadadmins"); g_VipFreeON = false; } if(h == get_pcvar_num(stop)) { ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT ENDED ^04*****") log_amx("[VIP] FREE VIP EVENT ENDED") } } }
Dar tu nu ai definit mesajul :)Code: Select all
public mesaj(id) { client_print(id, print_chat, Mesaj") }
Si in plus omul a cerut pentru flag-ul X nu bit :)
- robbencsgo
- Membru, skill 0
- Posts: 96
- Joined: 31 Aug 2019, 19:14
- Detinator Steam: Da
- CS Status: aimer
- SteamID: an prevat
- Fond eXtream: 0
- Has thanked: 9 times
- Been thanked: 11 times
- Contact:
Vezi ca e cam hardcoded ce ai dat tu ca tre sa stai sa schimbi mereu peste tot orele + flag-ul daca vrei sa il schimbi, na ca te-a durut pe tine mana sa ii pui niste define-uri sa ii faci viata mai usoaraCapy Trifoi wrote: ↑10 Jul 2020, 12:13iarta-ma domnule ca te doare mana sa scoti 5 linii din cod...am dat edit sa nu te simti ofensatrobbencsgo wrote: ↑10 Jul 2020, 12:00Vezi ca aiCapy Trifoi wrote: ↑10 Jul 2020, 11:42
si titlul anului pentru cel mai prost support se duce la tine
Dar tu nu ai definit mesajul :)Code: Select all
public mesaj(id) { client_print(id, print_chat, Mesaj") }
Si in plus omul a cerut pentru flag-ul X nu bit :)
Code: Select all
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
const TASK_ID = 258;
new h;
new task_set = 0;
new Mesaj[]="^04[VIP-FREE] ^01Eventul ^04VIP Free ^01este ^03activ"
#define start_vip 10
#define stop_vip 22
new FLAG_VIP[]="x"
public plugin_init()
{
register_plugin("VIP Hour", "1.0", "compaq")
}
public client_putinserver(id)
{
new o, m, s;
time(o, m, s)
if((o >= start_vip && o < stop_vip))
{
if(get_user_flags(id) != read_flags(FLAG_VIP))
{
set_user_flags(id, read_flags(FLAG_VIP))
set_task(3.0, "mesaj", id)
}
if(!task_set)
{
set_task(60.0, "recheck", TASK_ID, _, _, "b");
task_set = 1;
}
}
}
public recheck()
{
time( h, _, _ );
if(h >= start_vip || h >= stop_vip)
{
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 mesaj(id)
{
ColorChat(id, GREEN, Mesaj)
}
Daca te-am ajutat, lasa si tu un +1
- Capy Trifoi
- Membru, skill 0
- Posts: 61
- Joined: 23 Apr 2020, 07:43
- Detinator Steam: Da
- CS Status: On
- Detinator server CS: RESPAWN.CS-GAME.RO
- SteamID: capymuncasitalent
- Fond eXtream: 0
- Has thanked: 5 times
- Been thanked: 5 times
Nu vad greutatea mare in ce am dat eu:))) daca omul a cerut un flag stabilit si ore stabilite banuiesc ca nu ii este greu sa modifice 5 liniirobbencsgo wrote: ↑10 Jul 2020, 12:22Vezi ca e cam hardcoded ce ai dat tu ca tre sa stai sa schimbi mereu peste tot orele + flag-ul daca vrei sa il schimbi, na ca te-a durut pe tine mana sa ii pui niste define-uri sa ii faci viata mai usoaraCapy Trifoi wrote: ↑10 Jul 2020, 12:13iarta-ma domnule ca te doare mana sa scoti 5 linii din cod...am dat edit sa nu te simti ofensatrobbencsgo wrote: ↑10 Jul 2020, 12:00
Vezi ca aiDar tu nu ai definit mesajul :)Code: Select all
public mesaj(id) { client_print(id, print_chat, Mesaj") }
Si in plus omul a cerut pentru flag-ul X nu bit :)
Oricum stam sa ne certam pe un fcking plugin de VIP Free, mai bine o lasam asa.Code: Select all
#include <amxmodx> #include <amxmisc> #include <colorchat> const TASK_ID = 258; new h; new task_set = 0; new Mesaj[]="^04[VIP-FREE] ^01Eventul ^04VIP Free ^01este ^03activ" #define start_vip 10 #define stop_vip 22 new FLAG_VIP[]="x" public plugin_init() { register_plugin("VIP Hour", "1.0", "compaq") } public client_putinserver(id) { new o, m, s; time(o, m, s) if((o >= start_vip && o < stop_vip)) { if(get_user_flags(id) != read_flags(FLAG_VIP)) { set_user_flags(id, read_flags(FLAG_VIP)) set_task(3.0, "mesaj", id) } if(!task_set) { set_task(60.0, "recheck", TASK_ID, _, _, "b"); task_set = 1; } } } public recheck() { time( h, _, _ ); if(h >= start_vip || h >= stop_vip) { 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 mesaj(id) { ColorChat(id, GREEN, Mesaj) }
Nu vad ca scrie nimic de un mesaj "Descriere (adica ce face el mai exact): Doresc un plugin sa ofere free VIP intre orele 10:00 - 20:00 (pluginul de VIP are "flag" "x")"
- Laurentiu P.
- Fost moderator
- Posts: 2550
- Joined: 10 Jul 2013, 21:26
- Detinator Steam: Da
- Reputatie: Fost super moderator
- Fond eXtream: 100
- Has thanked: 26 times
- Been thanked: 64 times
- Contact:
- Alexandru P.
- Membru, skill 0
- Posts: 77
- Joined: 10 Apr 2020, 11:27
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Detinator server CS: CS.BHZD.RO
- Fond eXtream: 0
- Has thanked: 7 times
- Contact:
Am incercat dar nu merge compilat local
error 017: undefined symbol "register_plugin"
error 017: undefined symbol "register_cvar"
error 017: undefined symbol "FCVAR_SERVER"
error 088: number of arguments does not match definition
fatal error 107: too many error messages on one line
- Capy Trifoi
- Membru, skill 0
- Posts: 61
- Joined: 23 Apr 2020, 07:43
- Detinator Steam: Da
- CS Status: On
- Detinator server CS: RESPAWN.CS-GAME.RO
- SteamID: capymuncasitalent
- Fond eXtream: 0
- Has thanked: 5 times
- Been thanked: 5 times
ti-am urcat si eu ceva...Capy Trifoi wrote: ↑10 Jul 2020, 11:42si titlul anului pentru cel mai prost support se duce la tinerobbencsgo wrote: ↑07 Jul 2020, 13:32cu un mic search pe google doar modificai flagul..Code: Select all
#include <amxmodx> #include <amxmisc> #include <colorchat> new start, stop, h new bool:g_HaveVipBefore[33]; new bool:g_VipFreeON; #define FLAGS "x" public plugin_init() { register_plugin("VIP FREE", "4.0", "LOL") start = register_cvar("vip_start", "20"); stop = register_cvar("vip_end", "10"); if(!g_VipFreeON) { set_task(30.0, "check", _, _, _, "b"); } } public check(id) { time( h, _, _ ); 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"); g_HaveVipBefore[id] = false; g_VipFreeON = true; } else { g_HaveVipBefore[id] = true; } if(h == get_pcvar_num(start) && !g_VipFreeON) { ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT STARTED ^04*****") log_amx("[VIP] FREE VIP EVENT STARTED") } } else if(h < get_pcvar_num(start) || h >= get_pcvar_num(stop)) { if (!(g_HaveVipBefore[id])) { remove_user_flags(id, flags); server_cmd("amx_reloadadmins"); g_VipFreeON = false; } if(h == get_pcvar_num(stop)) { ColorChat(0, GREEN, "^04***** ^03FREE VIP EVENT ENDED ^04*****") log_amx("[VIP] FREE VIP EVENT ENDED") } } }
- Alexandru P.
- Membru, skill 0
- Posts: 77
- Joined: 10 Apr 2020, 11:27
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Detinator server CS: CS.BHZD.RO
- Fond eXtream: 0
- Has thanked: 7 times
- Contact:
Inca nu am gasit solutia / pluginul ....
Ma ajuta cineva ?
Daca este necesar postez pluginul de VIP aici.
Ma ajuta cineva ?
Daca este necesar postez pluginul de VIP aici.
- robbencsgo
- Membru, skill 0
- Posts: 96
- Joined: 31 Aug 2019, 19:14
- Detinator Steam: Da
- CS Status: aimer
- SteamID: an prevat
- Fond eXtream: 0
- Has thanked: 9 times
- Been thanked: 11 times
- Contact:
posteaza-mi .SMA de la VIP si o sa ti-l fac eu direct din plugin-ul de vipAlexandru P. wrote: ↑19 Jul 2020, 14:53Inca nu am gasit solutia / pluginul ....
Ma ajuta cineva ?
Daca este necesar postez pluginul de VIP aici.
Daca te-am ajutat, lasa si tu un +1