Categoria cu cereri de pluginuri si nu numai.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
27 Jan 2014, 16:23
- | Afiseaza codul
#include <amxmodx>
new delay;
public plugin_init()
{
register_clcmd("say", "hook_chat")
delay = 0
set_task(1.0, "remove_delay", _, _, _, "b")
}
public hook_chat(id)
{
static chat[192];
read_argv(1, chat, charsmax(chat))
if(contain(chat, "lag"))
{
if(!delay)
{
server_cmd("sv_unlag ^"1^"")
console_print(0, "SV_UNLAG 1 AUTOMAT!")
delay = 60
}
}
}
public remove_delay()
{
if(delay > 0)
delay--
else
delay = 0
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
mr.f3lyx
- Membru, skill +2
- Posts: 610
- Joined: 10 Nov 2013, 20:24
- Detinator Steam: Da
- Location: Palermo, Italy
- Has thanked: 69 times
- Been thanked: 17 times
27 Jan 2014, 16:31
poti adauga comanda asta cand scrie playerul :D
- | Afiseaza codul
culoare_scris(0, "!team[!normalFPN!team] !normalServer-ul a setat automat !verdesv_unlag !normalpe valoarea !verde1")
- | Afiseaza codul
stock culoare_scris(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!verde", "^4")
replace_all(msg, 190, "!normal", "^1")
replace_all(msg, 190, "!team", "^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, get_user_msgid("SayText"), _, players)
write_byte(players);
write_string(msg);
message_end();
}
}
}
}
-
#Vali
- 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:
27 Jan 2014, 22:44
- | Afiseaza codul
#include <amxmodx>
new delay;
public plugin_init()
{
register_clcmd("say", "hook_chat")
delay = 0
set_task(1.0, "remove_delay", _, _, _, "b")
}
public hook_chat(id)
{
static chat[192];
read_argv(1, chat, charsmax(chat))
if(contain(chat, "lag"))
{
if(!delay)
{
server_cmd("sv_unlag ^"1^"")
console_print(0, "SV_UNLAG 1 AUTOMAT!")
culoare_scris(0, "!team[!normalFPN!team] !normalServer-ul a setat automat !verdesv_unlag !normalpe valoarea !verde1")
delay = 60
}
}
}
public remove_delay()
{
if(delay > 0)
delay--
else
delay = 0
}
stock culoare_scris(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!verde", "^4")
replace_all(msg, 190, "!normal", "^1")
replace_all(msg, 190, "!team", "^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, get_user_msgid("SayText"), _, players)
write_byte(players);
write_string(msg);
message_end();
}
}
}
}
-
Users browsing this forum: No registered users and 21 guests