Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[rezolvat]VIP EVENT FREE
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
1983
JBT3hNoLoGy
[Banned user]
Status: Offline
(since 01-09-2014 10:21)
Joined: 30 Jun 2014
Posts: 87
,
Topics: 41
Location:
Husi
Reputation:
-48.5
Votes
: 9
Posted: 26-07-2014, 20:40:42
| Translate post to:
... (
Click for more languages
)
Am vazut acest plugin pe net si am editat dar nu merge ceva:
Spoiler:
#include <amxmodx>
new const TAG[] = "[TAG]";
new bool:vip_free, g_msg_saytext;
public plugin_init()
{
register_plugin("Free VIP", "2.0", "T3hNoLoGy")
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(20 >= ora || ora <= 20:10)
if(12 >= ora || ora <= 12:05)
if(13 >= ora || ora <= 13:05)
{
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 ^"ht^"")
}
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 FREE - TEHNOLOGIC VIP !")
}
}
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[i]))
{
message_begin(MSG_ONE_UNRELIABLE, g_msg_saytext, _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Nimeni nu-i perfect =]]
--> PGL <---
0
0
Back to top
EDUTz
[HardcoreAmxxScripter]
Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306
,
Topics: 244
Location:
Jud. Miserupia, sat Bagadanc
Reputation:
4085
Votes
: 179
Posted: 27-07-2014, 01:55:59
| Translate post to:
... (
Click for more languages
)
iar te bagi si modifici pluginurile dupa capul tau...
Spoiler:
#include <amxmodx>
new const TAG[] = "[TAG]";
new bool:vip_free, g_msg_saytext;
public plugin_init()
{
register_plugin("Free VIP", "2.0", "T3hNoLoGy")
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], minute[3], ora, minut;
get_time("%H", preluare_ora, 2)
get_time("%M", minute, 2)
ora = str_to_num(preluare_ora)
minut = str_to_num(minute)
if((20 >= ora && minut <= 10 && ora < 21) || (12 >= ora && 14 < ora && minut <= 5))
{
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 ^"ht^"")
}
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 FREE - TEHNOLOGIC VIP !")
}
}
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[i]))
{
message_begin(MSG_ONE_UNRELIABLE, g_msg_saytext, _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM
0
0
Back to top
JBT3hNoLoGy
[Banned user]
Status: Offline
(since 01-09-2014 10:21)
Joined: 30 Jun 2014
Posts: 87
,
Topics: 41
Location:
Husi
Reputation:
-48.5
Votes
: 9
Posted: 27-07-2014, 09:43:27
| Translate post to:
... (
Click for more languages
)
apai cum naiba sa fac=))?
Nimeni nu-i perfect =]]
--> PGL <---
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
EDUTz
, 05 December 2014 11:41
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 28-04-2024, 13:58:30
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details