Cerere Plugin Vip_free

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
PGL-kaZzy
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 09 Mar 2019, 18:04
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 2 times

08 Sep 2019, 09:34

Plugin Cerut: Vip_free
Descriere (adica ce face el mai exact):Vreau un plugin vip_free cu aceste flaguri "abcde" vip_free sa fie de la ora 21 pana la 10 dimineata si sa arate in hud cand va fi vip free
Serverul ruleaza (HLDS/ReHLDS):Dproto
Versiune AMX Mod X:AMX MOD X
Modul Serverului:ZOMBIE
Last edited by PGL-kaZzy on 08 Sep 2019, 17:42, edited 1 time in total.
IG-BOOST.org - Instagram Followers Best, Cheap, Reliable
User avatar
Reycku
Membru, skill 0
Membru, skill 0
Posts: 72
Joined: 26 Jan 2019, 02:11
Detinator Steam: Da
Detinator server CS: Da
SteamID: reyck
Fond eXtream: 0
Been thanked: 2 times
Contact:

08 Sep 2019, 10:24

User avatar
PGL-kaZzy
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 09 Mar 2019, 18:04
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 2 times

08 Sep 2019, 17:42

Nu merge
Altcineva pls
User avatar
ForWWarD
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 393
Joined: 25 Feb 2017, 12:29
Detinator Steam: Da
CS Status: Intunericul meu e lumina ta,
Detinator server CS: NORD.PLAY-ARENA.RO
SteamID: /cafeanord
Reputatie: Utilizator neserios (tepar)
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
Contact:

09 Sep 2019, 21:50

Code: Select all

#include <amxmodx>

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

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 ^"abcde^"")
}
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  !")
}
}

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

Return to “Cereri”

  • Information