Categoria cu cereri de pluginuri si nu numai.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
Spank
- Membru, skill +2
- Posts: 656
- Joined: 14 Apr 2010, 14:30
- Detinator Steam: Da
- Detinator server CS: Clasic.Promns.Ro
- SteamID: Danyel11
- Location: Sibiu
- Has thanked: 62 times
- Been thanked: 4 times
03 Nov 2013, 19:39
Salut, am cautat pe tot site-ul dar nu am gasit un plugin pentru hpk bun, doresc ca acest plugin sa fie setat la 120 si adminii sa nu fie scanati pe ping, pluginul sa fie in limba romana.
-
FaTzZu
- Fost moderator
- Posts: 1206
- Joined: 22 Dec 2012, 18:37
- Detinator Steam: Da
- Reputatie: Fost moderator ajutator
- Has thanked: 114 times
- Been thanked: 168 times
03 Nov 2013, 19:58
- | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "HPK"
#define VERSION "0.0.1"
public plugin_init( )
{
register_plugin(PLUGIN, VERSION, "FaTzZu");
}
public client_PreThink(id)
{
new Name [ 32 ];
get_user_name(id, Name ,31);
static ping,loss;
get_user_ping(id, ping, loss);
if( ping > 120 && !is_user_admin(id)){
server_cmd("kick %s",Name);
client_print(0, print_chat, "%s a primit kick pentru ping prea mare", Name);
}
}
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.
#RETIRED.
-
Spank
- Membru, skill +2
- Posts: 656
- Joined: 14 Apr 2010, 14:30
- Detinator Steam: Da
- Detinator server CS: Clasic.Promns.Ro
- SteamID: Danyel11
- Location: Sibiu
- Has thanked: 62 times
- Been thanked: 4 times
03 Nov 2013, 20:01
Adminii au imunitate?
-
FaTzZu
- Fost moderator
- Posts: 1206
- Joined: 22 Dec 2012, 18:37
- Detinator Steam: Da
- Reputatie: Fost moderator ajutator
- Has thanked: 114 times
- Been thanked: 168 times
03 Nov 2013, 20:01
Da :)
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.
#RETIRED.
-
munir
- Membru eXtream
- Posts: 3193
- Joined: 30 Aug 2012, 22:16
- Detinator Steam: Da
- CS Status: Fost scripter
- Detinator server CS: Nu
- SteamID: -
- Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
- Location: Bucuresti
- Has thanked: 342 times
- Been thanked: 571 times
-
Contact:
03 Nov 2013, 20:05
FaTzZu wrote:- | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "HPK"
#define VERSION "0.0.1"
public plugin_init( )
{
register_plugin(PLUGIN, VERSION, "FaTzZu");
}
public client_PreThink(id)
{
new Name [ 32 ];
get_user_name(id, Name ,31);
static ping,loss;
get_user_ping(id, ping, loss);
if( ping > 120 && !is_user_admin(id)){
server_cmd("kick %s",Name);
client_print(0, print_chat, "%s a primit kick pentru ping prea mare", Name);
}
}
Trebuie sa incluzi
fakemeta si sa inregistrezi un
forward in
plugin_init( ) ca pluginul sa functioneze.
Code: Select all
register_forward( FM_PlayerPreThink, "client_PreThink" );
Btw, mi se pare suspect; pluginul pus de tine seamana cu cel creat de lordofnothing.
Retras
-
Spank
- Membru, skill +2
- Posts: 656
- Joined: 14 Apr 2010, 14:30
- Detinator Steam: Da
- Detinator server CS: Clasic.Promns.Ro
- SteamID: Danyel11
- Location: Sibiu
- Has thanked: 62 times
- Been thanked: 4 times
03 Nov 2013, 20:07
falseq, nu stiu cum sa fac... ceva mai simplu...daca se poate.
-
munir
- Membru eXtream
- Posts: 3193
- Joined: 30 Aug 2012, 22:16
- Detinator Steam: Da
- CS Status: Fost scripter
- Detinator server CS: Nu
- SteamID: -
- Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
- Location: Bucuresti
- Has thanked: 342 times
- Been thanked: 571 times
-
Contact:
03 Nov 2013, 20:09
- | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include < fakemeta >
#define PLUGIN "HPK"
#define VERSION "0.0.1"
public plugin_init( )
{
register_plugin(PLUGIN, VERSION, "FaTzZu");
register_forward( FM_PlayerPreThink, "client_PreThink" );
}
public client_PreThink(id)
{
new Name [ 32 ];
get_user_name(id, Name ,31);
static ping,loss;
get_user_ping(id, ping, loss);
if( ping > 120 && !is_user_admin(id)){
server_cmd("kick %s",Name);
client_print(0, print_chat, "%s a primit kick pentru ping prea mare", Name);
}
}
Retras
-
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
03 Nov 2013, 20:41
- | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "HPK"
#define VERSION "0.0.1"
new bool:g_latenta[33];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "FaTzZu")
register_forward(FM_PlayerPreThink, "fm_prethink")
}
public fm_prethink(id)
{
static ping, loss;
get_user_ping(id, ping, loss)
if(ping > 120 && !is_user_admin(id) && is_user_connected(id) && !g_latenta[id])
{
new name[32];
get_user_name(id, name, charsmax(name) - 1)
g_latenta[id] = true
server_cmd("kick #%d ^"Ai pingul prea mare.^"", get_user_userid(id))
color(0, ".v[TAG].e %s.g a primit kick pentru ping prea mare.", name)
}
}
public client_disconnect(id)
g_latenta[id] = false
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, get_user_msgid("SayText"), _, players)
write_byte(players)
write_string(msg)
message_end()
}
}
}
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
Spank
- Membru, skill +2
- Posts: 656
- Joined: 14 Apr 2010, 14:30
- Detinator Steam: Da
- Detinator server CS: Clasic.Promns.Ro
- SteamID: Danyel11
- Location: Sibiu
- Has thanked: 62 times
- Been thanked: 4 times
03 Nov 2013, 21:22
Are un bug sau ceva pluginul, cand intra un player cu lagul 130 ii da kick si apare de 5-6 ori in chat asa :
- | Afiseaza codul
[AgN] jabb0k' # AlexXx [;x] a primit kick pentru ca avea ping prea mare
[AgN] jabb0k' # AlexXx [;x] a primit kick pentru ca avea ping prea mare
[AgN] jabb0k' # AlexXx [;x] a primit kick pentru ca avea ping prea mare
[AgN] jabb0k' # AlexXx [;x] a primit kick pentru ca avea ping prea mare
[AgN] jabb0k' # AlexXx [;x] a primit kick pentru ca avea ping prea mare
[AgN] jabb0k' # AlexXx [;x] a primit kick pentru ca avea ping prea mare
[AgN] jabb0k' # AlexXx [;x] a primit kick pentru ca avea ping prea mare
-
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
03 Nov 2013, 21:41
La ce versiune? La a mea?
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
Spank
- Membru, skill +2
- Posts: 656
- Joined: 14 Apr 2010, 14:30
- Detinator Steam: Da
- Detinator server CS: Clasic.Promns.Ro
- SteamID: Danyel11
- Location: Sibiu
- Has thanked: 62 times
- Been thanked: 4 times
-
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
03 Nov 2013, 21:57
- | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "HPK"
#define VERSION "0.0.1"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "FaTzZu")
set_task(1.0, "check_ping", _, _, _, "b")
}
public check_ping()
{
new jucatori[32], num;
get_players(jucatori, num, "c")
if(get_playersnum() < 1)
return;
new id;
for(new i = 0; i < num; i++)
{
id = jucatori
if(!is_user_connected(id) || is_user_admin(id))
continue
static ping, loss;
get_user_ping(id, ping, loss)
if(ping > 120)
{
new name[32];
get_user_name(id, name, charsmax(name) - 1)
server_cmd("kick #%d ^"Ai pingul prea mare.^"", get_user_userid(id))
color(0, ".v[TAG].e %s.g a primit kick pentru ping prea mare.", name)
}
}
}
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, get_user_msgid("SayText"), _, players)
write_byte(players)
write_string(msg)
message_end()
}
}
}
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
Users browsing this forum: No registered users and 35 guests