[Rezolvat] Cerere plugin ban

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

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

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

12 Feb 2014, 16:32

Spune-mi ce comanda pentru ban vrei sa fie folosita si cate Argumente are (ex: Amx_banip <nume> <timp> <motiv>)
RoyalServer 2
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

12 Feb 2014, 16:35

GhosT *** wrote:Spune-mi ce comanda pentru ban vrei sa fie folosita si cate Argumente are (ex: Amx_banip <nume> <timp> <motiv>)
asta mi se pare ca si va fi una !! deoarece daca dai ban pe ip se primeste ca nu poti intra nici de pe steam nici de pe cs 1.6 simplu nu ?!
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

12 Feb 2014, 16:37

Apella wrote:
GhosT *** wrote:Spune-mi ce comanda pentru ban vrei sa fie folosita si cate Argumente are (ex: Amx_banip <nume> <timp> <motiv>)
asta mi se pare ca si va fi una !! deoarece daca dai ban pe ip se primeste ca nu poti intra nici de pe steam nici de pe cs 1.6 simplu nu ?!
Da .. Dar zi-mi comanda .. cum e .. :-@
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

12 Feb 2014, 16:58

GhosT *** wrote:
Apella wrote:
GhosT *** wrote:Spune-mi ce comanda pentru ban vrei sa fie folosita si cate Argumente are (ex: Amx_banip <nume> <timp> <motiv>)
asta mi se pare ca si va fi una !! deoarece daca dai ban pe ip se primeste ca nu poti intra nici de pe steam nici de pe cs 1.6 simplu nu ?!
Da .. Dar zi-mi comanda .. cum e .. :-@
aa pai amx_banip apella 120 TEAMKILL sau simplu prescurtat TK
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

12 Feb 2014, 20:36

sus..
scuzati pentru double post :(
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

13 Feb 2014, 16:45

SUS !!!!!!
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

14 Feb 2014, 15:51

SUSSSSSSSSSSSSSSSSSSSS
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

14 Feb 2014, 18:29

| Afiseaza codul
#include <amxmodx>

new const PLUGIN[] = "3 TK = BAN";
new const VERSION[] = "1.0";
new const AUTOR[] = "GhosT ***";

new TeamKills[33];

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTOR);
	
	register_event("DeathMsg", "DeathMsg", "a");
}
public DeathMsg()
{
	new iAttacker = read_data(1);
	new iVictim = read_data(2);
	
	if(get_user_team(iAttacker) == get_user_team(iVictim))
	{
		TeamKills[iAttacker] += 1;
		client_print(iAttacker, print_center, "%d Team Kills !", TeamKills[iAttacker]);
		
		if(TeamKills[iAttacker] >= 3)
		{
			new TargetBanName[32];
			get_user_name(iAttacker, TargetBanName, sizeof(TargetBanName) - 1);
			
			server_cmd("amx_banip %s 120 TeamKills(3)", TargetBanName);
			
			set_task(4.0, "ResetTeamKills", iAttacker);
			return PLUGIN_HANDLED;
		}
		
		return 0;
	}
	
	return 0;
}
public ResetTeamKills(iAttacker)
	TeamKills[iAttacker] = 0;
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

14 Feb 2014, 19:11

GhosT *** wrote:
| Afiseaza codul
#include <amxmodx>

new const PLUGIN[] = "3 TK = BAN";
new const VERSION[] = "1.0";
new const AUTOR[] = "GhosT ***";

new TeamKills[33];

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTOR);
	
	register_event("DeathMsg", "DeathMsg", "a");
}
public DeathMsg()
{
	new iAttacker = read_data(1);
	new iVictim = read_data(2);
	
	if(get_user_team(iAttacker) == get_user_team(iVictim))
	{
		TeamKills[iAttacker] += 1;
		client_print(iAttacker, print_center, "%d Team Kills !", TeamKills[iAttacker]);
		
		if(TeamKills[iAttacker] >= 3)
		{
			new TargetBanName[32];
			get_user_name(iAttacker, TargetBanName, sizeof(TargetBanName) - 1);
			
			server_cmd("amx_banip %s 120 TeamKills(3)", TargetBanName);
			
			set_task(4.0, "ResetTeamKills", iAttacker);
			return PLUGIN_HANDLED;
		}
		
		return 0;
	}
	
	return 0;
}
public ResetTeamKills(iAttacker)
	TeamKills[iAttacker] = 0;
MZ GOSTULE MERGE :x
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

14 Feb 2014, 19:41

Puteai sa dai si Image :D :-"

Ca doar numai eu m-am chinuit pentru tine ;)) :D :D>- :)
Apella
Membru, skill +1
Membru, skill +1
Posts: 445
Joined: 17 Oct 2013, 20:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 1 time
Contact:

14 Feb 2014, 19:49

GhosT *** wrote:Puteai sa dai si Image :D :-"

Ca doar numai eu m-am chinuit pentru tine ;)) :D :D>- :)
vaoleo scuze imd :))
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

14 Feb 2014, 19:53

Apella wrote:
GhosT *** wrote:Puteai sa dai si Image :D :-"

Ca doar numai eu m-am chinuit pentru tine ;)) :D :D>- :)
vaoleo scuze imd :))
Gata ca o dam in OFF. Rezolvat :)
Post Reply

Return to “Cereri”

  • Information