User
Pass
2FA
 
 

problema cfg_afc

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message2201
Tyger

[Born Wild]



Status: Offline
(since 17-05-2014 22:04)
Joined: 15 Jun 2009
Posts: 440, Topics: 30
Location: Romania

Reputation: 300.4
Votes: 10

Post Posted: 25-05-2010, 22:54:04 | Translate post to: ... (Click for more languages)

Am si eu pluginul asta:

Quote:

/* CFG Anti Flood Config by mut2nt@2009
* -= CVARS =-
* ----------------------------------------
* cfg_afc_mode 1/2/3 - Activat si ii da doar kick / Activat si ii da BAN PERMANENT / Activat si ii da sv_timeout + AFARA DIN CS
* ----------------------------------------
* For more plugins visit
* http://www.cfg.ro
*/

#include <amxmodx>
#include <amxmisc>

new g_identificare[][] =
{
"fullupdate",
"echo_off",
"gX4takingfire",
"echo_on",
"gX4sticktog",
"gX4regroup",
"gX4holdpos",
"gX4getout"
};

new toggle_mode

public plugin_init()
{
register_plugin("CFG Anti Flood Config", "1.0", "mut2nt");
register_cvar("cfg_afc", "1.0/mut2nt", FCVAR_SERVER);

for (new i=0; i<sizeof g_identificare; i++)
{
register_clcmd(g_identificare[i], "cmdban");
}

toggle_mode = register_cvar("cfg_afc_mode", "3");
}

public cmdban(id)
{
if (!is_user_connected(id))
{
return PLUGIN_HANDLED;
}

new name[32], userip[32];
get_user_name(id, name, 31);
get_user_ip(id, userip, 31, 1);

new userid2 = get_user_userid(id);


switch(get_pcvar_num(toggle_mode))
{
case 1:
{
server_cmd("kick #%d ^"Restrictionat pt FLOOD PERMANENT^"", userid2);
}

case 2:
{
server_cmd("kick #%d ^"Restrictionat pt FLOOD PERMANENT^";wait;addip 0.0 ^"%s^";wait;writeip", userid2, userip);
}

case 3:
{
client_cmd(id, "wait;cl_timeout 0;wait;cl_dlmax 1;wait;quit")
}
}

return PLUGIN_CONTINUE;
}


Daca cineva vrea sa faca un demo, cand scrie in consola record nume, pluginul il pedepseste ca si cum ar avea cfgflood, poate cineva sa il modifice sa nu mai faca treaba asta, adik sa se poata face demo cu acest plugin in server. Multumesc anticipat!!!!


Edited: Fara reclama in semnatura
0 0
  
Back to top
View user's profile Send private message
ion

[prin vacante]



Status: Offline
(since 10-12-2018 10:49)
Joined: 30 Jan 2008
Posts: 7503, Topics: 333
Location: Romania

Reputation: 1770.2
Votes: 191

 
Post Posted: 25-05-2010, 23:02:48 | Translate post to: ... (Click for more languages)

Scoate "fullupdate" din lista aceea.


0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Tyger

[Born Wild]



Status: Offline
(since 17-05-2014 22:04)
Joined: 15 Jun 2009
Posts: 440, Topics: 30
Location: Romania

Reputation: 300.4
Votes: 10

Post Posted: 25-05-2010, 23:17:56 | Translate post to: ... (Click for more languages)

a mers, mersi mult ion.mzk

Edited: Fara reclama in semnatura
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 02-12-2024, 08:51:28
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x