[Rezolvat] [ cerere ] plugins V.I.P EVENTS

Categoria cu cereri de pluginuri si nu numai.

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 .
POkee;x
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 13 Jul 2014, 09:46
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times
Contact:

17 Jul 2014, 13:44

Descriere plugin cerut: VIP EVENT
Alte informatii: la vip event sa apara un mesaj in stanga Event V.I.P FREE , sa fie setat de la ora 21:00 - 10:00. sa fie configurat pentru flag "t" . sa mai apara cateva mesaj cand primesc toti playeri VIP
Last edited by #Vali on 17 Jul 2014, 13:58, edited 2 times in total.
Reason: Rezolvat
RoyalServer 2
#Vali
Fost moderator
Fost moderator
Posts: 2611
Joined: 24 Jan 2012, 11:00
Detinator Steam: Da
SteamID: id/spryt3
Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
Location: root
Has thanked: 81 times
Been thanked: 144 times
Contact:

17 Jul 2014, 13:48

| Afiseaza codul
#include <amxmodx>

new bool:vip_free;

public plugin_init()
{
	register_plugin("VipEvent", "1.0", "cyby")
	check_time()
	set_task(60.0, "check_time", _, _, _, "b")
	set_task(1.0, "hud_mess", _, _, _, "b")
}

public check_time()
{
	new o;
	time(o, _, _)
	if(o >= 21 || o >= 10)
		vip_free = true
	else
		vip_free = false
		
	if(vip_free)
		server_cmd("amx_default_access ^"t^"")
	else
		server_cmd("amx_default_access ^"z^"")
	server_cmd("amx_reloadadmins")
}

public hud_mess()
{
	if(vip_free)
	{
		set_hudmessage(0, 255, 0, 0.00, 0.17, 0, 1.1, 1.0)
		show_hudmessage(0, "Event V.I.P Free !")
	}
}
POkee;x
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 13 Jul 2014, 09:46
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times
Contact:

17 Jul 2014, 13:52

multumesc , pluginul de vip trebuie sa il am pe flagul "t" ca sa mearga ?? mai trebuie sa setez ceva in amxx.cfg?
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2811
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 244 times
Been thanked: 129 times
Contact:

17 Jul 2014, 13:54

Daca ai accesul la VIP altul decat T, schimbi aici:

Code: Select all

server_cmd("amx_default_access ^"t^"")
In loc de T pui ce acces ai tu.
Nu, nu mai trebuie sa setezi nimic in AMXX.cfg
POkee;x
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 13 Jul 2014, 09:46
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times
Contact:

17 Jul 2014, 16:21

am adaugat si vipevent si pluginu de vip flag "t" si au vip toti de pe server nu de la ora care este setata
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

17 Jul 2014, 16:32

| Afiseaza codul
#include <amxmodx>

new const TAG[] = "[TAG]";

new bool:vip_free, g_msg_saytext;

public plugin_init()
{
	register_plugin("Free VIP Giver", "2.0", "cyby")
	check_time()
	set_task(60.0, "check_time", _, _, _, "b")
	set_task(1.0, "hud_mess", _, _, _, "b")
	
	g_msg_saytext = get_user_msgid("SayText");
}

public check_time()
{
	static preluare_ora[3], ora;
	get_time("%H", preluare_ora, 2)
	ora = str_to_num(preluare_ora)
	if(21 >= ora || ora <= 10)
	{
		if(!vip_free)
			color(0, ".v%s.g Eventul.e Free VIP.g a fost activat!", TAG)
		vip_free = true
		server_cmd("amx_default_access ^"t^"")
	}
	else
	{
		if(vip_free)
			color(0, ".v%s.g Eventul.e Free VIP.g a fost dezactivat!", TAG)
		vip_free = false
		server_cmd("amx_default_access ^"z^"")
	}
	server_cmd("amx_reloadadmins")
}

public hud_mess()
{
	if(vip_free)
	{
		set_hudmessage(random(0), random(255), random(0), 0.00, 0.17, 1, 1.0, 1.0, 0.1, 0.1)
		show_hudmessage(0, "Event V.I.P Silver FREEE !")
	}
}

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

	replace_all(msg, 190, ".v", "^4")
	replace_all(msg, 190, ".g", "^1")
	replace_all(msg, 190, ".e", "^3")

	if(id) players[0] = id; else get_players(players, count, "ch")
	{
		for(new i = 0; i < count; i++)
		{
			if(is_user_connected(players))
			{
				message_begin(MSG_ONE_UNRELIABLE, g_msg_saytext, _, players)
				write_byte(players);
				write_string(msg);
				message_end();
			}
		}
	}
}
POkee;x
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 13 Jul 2014, 09:46
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times
Contact:

17 Jul 2014, 22:46

la fel toti au vip nu conteaza ora setat 21:00 / 10:00 sa fie din cauza la vip ?

am rezolvat trebuia

if(21 <= ora || ora <= 10) in loc de if(21 >= ora || ora <= 10)

va multumesc pentru ajutor ! puteti da T.C
Off Shoot
Membru, skill 0
Membru, skill 0
Posts: 56
Joined: 08 Jul 2014, 12:26
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times
Contact:

23 Jul 2014, 21:45

Baietii daca am accesul vip pe mai multe flag-uri ce fac ? Eu am pe "abcefiju" Ma ajutati ?
User avatar
CsN^ ;x
Membru eXtream
Membru eXtream
Posts: 3560
Joined: 02 Apr 2012, 16:58
Detinator Steam: Nu
CS Status: Retras din domeniul Counter-Strike
Reputatie: Fost moderator
Location: Bucuresti
Has thanked: 797 times
Been thanked: 607 times

23 Jul 2014, 21:48

Off Shoot wrote:Baietii daca am accesul vip pe mai multe flag-uri ce fac ? Eu am pe "abcefiju" Ma ajutati ?
Modifica ce e cu rosu.
| Afiseaza codul
#include <amxmodx>

new const TAG[] = "[TAG]";

new bool:vip_free, g_msg_saytext;

public plugin_init()
{
	register_plugin("Free VIP Giver", "2.0", "cyby")
	check_time()
	set_task(60.0, "check_time", _, _, _, "b")
	set_task(1.0, "hud_mess", _, _, _, "b")
	
	g_msg_saytext = get_user_msgid("SayText");
}

public check_time()
{
	static preluare_ora[3], ora;
	get_time("%H", preluare_ora, 2)
	ora = str_to_num(preluare_ora)
	if(18 >= ora || ora <= 11) //18:00 inceputul si 11:00 sfrasitu
	{
		if(!vip_free)
			color(0, ".v%s.g Este ora.e 18:00.g!!Toti jucatori aveti vip free!", TAG)
		vip_free = true
		server_cmd("amx_default_access ^"abcefiju^"") //flagu pentru vip
	}
	else
	{
		if(vip_free)
			color(0, ".v%s.g Este ora.e 11:00.g!!Eventul free s-a sfarsit!", TAG)
		vip_free = false
		server_cmd("amx_default_access ^"z^"") //flagu pentru final
	}
	server_cmd("amx_reloadadmins")
}

public hud_mess()
{
	if(vip_free)
	{
		set_hudmessage(random(0), random(255), random(0), 0.00, 0.17, 1, 1.0, 1.0, 0.1, 0.1)
		show_hudmessage(0, "Event V.I.P FREEE !")
	}
}

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

	replace_all(msg, 190, ".v", "^4")
	replace_all(msg, 190, ".g", "^1")
	replace_all(msg, 190, ".e", "^3")

	if(id) players[0] = id; else get_players(players, count, "ch")
	{
		for(new i = 0; i < count; i++)
		{
			if(is_user_connected(players))
			{
				message_begin(MSG_ONE_UNRELIABLE, g_msg_saytext, _, players)
				write_byte(players);
				write_string(msg);
				message_end();
			}
		}
	}
}
Addons HNS level,gravity,xp DOWNLOAD ( e țeapă)
https://5filme.com/ - un simplu site de filme pentru timpul liber
Off Shoot
Membru, skill 0
Membru, skill 0
Posts: 56
Joined: 08 Jul 2014, 12:26
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times
Contact:

23 Jul 2014, 22:36

VIPFREE.sma(28) : warning 216: nested comment
VIPFREE.sma(35) : warning 216: nested comment
VIPFREE.sma(71) : error 001: expected token: "*/", but found "-end of file-"
VIPFREE.sma(71) : error 001: expected token: "}", but found "-end of file-"
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

23 Jul 2014, 22:49

| Afiseaza codul
#include <amxmodx>

new const TAG[] = "[TAG]";

new bool:vip_free, g_msg_saytext;

public plugin_init()
{
	register_plugin("Free VIP Giver", "2.0", "cyby")
	check_time()
	set_task(60.0, "check_time", _, _, _, "b")
	set_task(1.0, "hud_mess", _, _, _, "b")
	
	g_msg_saytext = get_user_msgid("SayText");
}

public check_time()
{
	static preluare_ora[3], ora;
	get_time("%H", preluare_ora, 2)
	ora = str_to_num(preluare_ora)
	if(18 >= ora || ora <= 11) 
	{
		if(!vip_free)
			color(0, ".v%s.g Este ora.e 18:00.g!!Toti jucatori aveti vip free!", TAG)
		vip_free = true
		server_cmd("amx_default_access ^"abcefiju^"")
	}
	else
	{
		if(vip_free)
			color(0, ".v%s.g Este ora.e 11:00.g!!Eventul free s-a sfarsit!", TAG)
		vip_free = false
		server_cmd("amx_default_access ^"z^"")
	}
	server_cmd("amx_reloadadmins")
}

public hud_mess()
{
	if(vip_free)
	{
		set_hudmessage(random(0), random(255), random(0), 0.00, 0.17, 1, 1.0, 1.0, 0.1, 0.1)
		show_hudmessage(0, "Event V.I.P FREEE !")
	}
}

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

	replace_all(msg, 190, ".v", "^4")
	replace_all(msg, 190, ".g", "^1")
	replace_all(msg, 190, ".e", "^3")

	if(id) players[0] = id; else get_players(players, count, "ch")
	{
		for(new i = 0; i < count; i++)
		{
			if(is_user_connected(players))
			{
				message_begin(MSG_ONE_UNRELIABLE, g_msg_saytext, _, players)
				write_byte(players);
				write_string(msg);
				message_end();
			}
		}
	}
}
a pus comentariile gresit,trebuie cu /* comentariu */ nu cum ai facut tu ;)

eu le-am sters de tot.
Off Shoot
Membru, skill 0
Membru, skill 0
Posts: 56
Joined: 08 Jul 2014, 12:26
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times
Contact:

24 Jul 2014, 09:11

Man am bagat pluginul merge impecabil dar daca vrea sa intre un player normal pe sv ii cere parola ...ce sa fac?
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests