[rezolvat] Cerere anti-spam chat 3 secunde!

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
gloryous
Membru eXtream
Membru eXtream
Posts: 3611
Joined: 04 Aug 2012, 14:13
Detinator Steam: Da
CS Status: Lazy but smart!
Reputatie: Restrictie moderator
Membru Club eXtreamCS (4 luni)
Location: Luxembourg District
Has thanked: 160 times
Been thanked: 190 times
Contact:

23 Nov 2013, 20:10

Vreau un plugin care sa nu te lase sa scrii pe chat decat din 3 in 3 secunde! Va multumesc.
Rapidserver
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4380
Joined: 02 Apr 2009, 18:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 543 times
Been thanked: 820 times
Contact:

24 Nov 2013, 08:26

| Afiseaza codul
#include < amxmodx >

new g_Delay[ 33 ];

public plugin_init( )
{
	register_plugin "Anti Chat Spam", "1.0", "KronoS # GG" ;

	register_clcmd( "say", "Func_ChatHook" );
	register_clcmd( "say_team", "Func_ChatHook" );
}

public client_putinserver( index )
	g_Delay[ index ] = 0;

public Func_ChatHook( index )
{
	if ( g_Delay[ index ] != 0 )
	{
		client_print( index, print_chat, "[AMXX] Poti tasta o data la 3 secunde!" );

		return PLUGIN_HANDLED;
	}
	else
	{
		g_Delay[ index ] = 3;

		set_task( 3.0, "Func_RemoveBlock", index );
	}

	return PLUGIN_CONTINUE;
}

public Func_RemoveBlock( index )
{
	if ( is_user_connected( index ) && g_Delay[ index ] )
		g_Delay[ index ] = 0;
}
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
User avatar
gloryous
Membru eXtream
Membru eXtream
Posts: 3611
Joined: 04 Aug 2012, 14:13
Detinator Steam: Da
CS Status: Lazy but smart!
Reputatie: Restrictie moderator
Membru Club eXtreamCS (4 luni)
Location: Luxembourg District
Has thanked: 160 times
Been thanked: 190 times
Contact:

24 Nov 2013, 08:30

Iti multumesc mult de tot.TC!
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4380
Joined: 02 Apr 2009, 18:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 543 times
Been thanked: 820 times
Contact:

24 Nov 2013, 08:31

gloryous wrote:Iti multumesc mult de tot.TC!
Verifica codul din nou, gresisem ceva.
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests