Restrict Names

Descărcări de pluginuri și discuții despre acestea.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
TheOne1812
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 228
Joined: 13 Apr 2018, 22:57
Detinator Steam: Da
CS Status: Add Me @ Steam for Anything
Detinator server CS: GO.FURIENS.RO
SteamID: STEAM_0:1:65095681
Fond eXtream: 0
Location: On Forum
Has thanked: 5 times

06 Aug 2020, 23:36

Nume plugin: Restricted Names
Descriere: Jucatorii care intra pe server avand unele cuvinte in nume, de exemplu reclama la o alta comunitate sau la alt server li se schimba numele in "SCHIMBA NUMELE"
Autor: kRatoss
Versiune: 1.0
Link oficial: pluginuri-general/restrict-names-t369772.html

Instalare:
1. Compilati sursa
2. Fisierul "name_restrict.smx" se adauga in "addons/sourcemod/plugins"
3. Creati un fisier numit "restricted_names.txt" si il puneti "addons/sourcemod/configs"

Nu are comenzi sau convar-uri

Configul ar trebui sa arate ceva de genu:

Code: Select all

extreamcs.com
jucausii.ro
baietibunilacounter.ro
server.fantoma.ro
Pluginul cauta in case insensitive deci e de ajuta sa puneti de exemplu extreamcs.com si pluginul va recunoaste si eXtreamCS.com, ExtReaMcs.cOm, etc..
Puteti pune si .ro ca sa blocati toate domeniile linkurile cu domeniu .ro, la fel si cu .com, etc ..

Sursa:

Code: Select all

#pragma semicolon 1

#include <sourcemod>
#include <sdktools>

#pragma newdecls required

ArrayList g_hNames;

public Plugin myinfo = 
{
	name = "Name Restrict",
	author = "kRatoss"
};

public void OnPluginStart()
{
	g_hNames = CreateArray(MAX_NAME_LENGTH);
}

public void OnClientPostAdminCheck(int Client)
{
	char Name[MAX_NAME_LENGTH], RestrictedNames[MAX_NAME_LENGTH];
	if (GetClientName(Client, Name, sizeof(Name)))
	{
		int Size = GetArraySize(g_hNames);
		for (int Iter = 0; Iter < Size; Iter++)
		{
			GetArrayString(g_hNames, Iter, RestrictedNames, sizeof(RestrictedNames));
			if(StrContains(Name, RestrictedNames, false) != -1)
			{
				SetClientName(Client, "SCHIMBA NUMELE");
				break;
			}
		}
	}
}

public void OnMapEnd()
{
	ClearArray(g_hNames);
}

public void OnMapStart()
{
	Handle pFile;
	char Path[PLATFORM_MAX_PATH], Line[MAX_NAME_LENGTH];
	BuildPath(Path_SM, Path, sizeof(Path), "configs/restricted_names.txt");
	if(FileExists(Path))
	{
		pFile = OpenFile(Path, "rt");
		if (pFile != INVALID_HANDLE)
		{
			while (!IsEndOfFile(pFile) && ReadFileLine(pFile, Line, sizeof(Line)))
			{
				TrimString(Line);
				PushArrayString(g_hNames, Line);
			}
			CloseHandle(pFile);
		}
	}
	else
	{
		SetFailState("Nu am putut gasi fisierul <%s>", Path);
	}
}
GO.FURIENS.RO - Furien Mod pe Counter-Strike:Global Offensive
- SHOP, GRENADE MODES, SOUNDS, WALLHANG & MORE -
---------------------------------------------------------------------------------------------
Cateva din pluginuri mele gratis.
Rapidserver
User avatar
Jucator
Membru, skill +1
Membru, skill +1
Posts: 286
Joined: 15 Jul 2017, 20:38
Detinator Steam: Da
Fond eXtream: 0
Location: PornHUB
Has thanked: 34 times
Been thanked: 13 times
Contact:

29 Aug 2020, 02:10

Cine este kRatoss? Nu am auzit de el....
Unde stau +ss
| Afiseaza codul
MILSUGI?ai luat țeapă 
User avatar
The Kalu
eXtream Mod
eXtream Mod
Posts: 12724
Joined: 09 Oct 2010, 11:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 207 times
Been thanked: 419 times
Contact:

29 Aug 2020, 07:16

Jucator wrote:
29 Aug 2020, 02:10
Cine este kRatoss? Nu am auzit de el....
Este un nume al unui caracter mitologic cu origini din grecia antica, maibexact din Sparta...Sparta de ma-ta care te-a nascut, copil fara creier.
User avatar
Jucator
Membru, skill +1
Membru, skill +1
Posts: 286
Joined: 15 Jul 2017, 20:38
Detinator Steam: Da
Fond eXtream: 0
Location: PornHUB
Has thanked: 34 times
Been thanked: 13 times
Contact:

29 Aug 2020, 16:24

The Kalu wrote:
29 Aug 2020, 07:16
Jucator wrote:
29 Aug 2020, 02:10
Cine este kRatoss? Nu am auzit de el....
Este un nume al unui caracter mitologic cu origini din grecia antica, maibexact din Sparta...Sparta de ma-ta care te-a nascut, copil fara creier.
Mult îmi pasa :clapping_hands:

Parca aveam nuca acum am creier? =))))
=))))) și eu mă numesc Cezar din Roma și în 2020 Scriptez plugin-uri cs:go
Unde stau +ss
| Afiseaza codul
MILSUGI?ai luat țeapă 
User avatar
TheOne1812
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 228
Joined: 13 Apr 2018, 22:57
Detinator Steam: Da
CS Status: Add Me @ Steam for Anything
Detinator server CS: GO.FURIENS.RO
SteamID: STEAM_0:1:65095681
Fond eXtream: 0
Location: On Forum
Has thanked: 5 times

31 Aug 2020, 16:12

The Kalu wrote:
29 Aug 2020, 07:16
Este un nume al unui caracter mitologic cu origini din grecia antica, maibexact din Sparta...Sparta de ma-ta care te-a nascut, copil fara creier.
=)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Jucator wrote:
29 Aug 2020, 16:24
The Kalu wrote:
29 Aug 2020, 07:16
Jucator wrote:
29 Aug 2020, 02:10
Cine este kRatoss? Nu am auzit de el....
Este un nume al unui caracter mitologic cu origini din grecia antica, maibexact din Sparta...Sparta de ma-ta care te-a nascut, copil fara creier.
și eu mă numesc Cezar din Roma și în 2020 Scriptez plugin-uri cs:go
bv frate
https://prnt.sc/u90clu
GO.FURIENS.RO - Furien Mod pe Counter-Strike:Global Offensive
- SHOP, GRENADE MODES, SOUNDS, WALLHANG & MORE -
---------------------------------------------------------------------------------------------
Cateva din pluginuri mele gratis.
User avatar
The Kalu
eXtream Mod
eXtream Mod
Posts: 12724
Joined: 09 Oct 2010, 11:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 207 times
Been thanked: 419 times
Contact:

31 Aug 2020, 16:23

TheOne1812 wrote:
31 Aug 2020, 16:12
bv frate
https://prnt.sc/u90clu
Am facut o mica corelationare cu numele si sparta, s-a potrivit perfect pentru el. :boundlessly_laughing: :boundlessly_laughing:
Moonlight
Membru, skill 0
Membru, skill 0
Posts: 1
Joined: 02 Sep 2020, 00:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0

02 Sep 2020, 01:15

The Kalu wrote:
31 Aug 2020, 16:23
TheOne1812 wrote:
31 Aug 2020, 16:12
bv frate
https://prnt.sc/u90clu
Am facut o mica corelationare cu numele si sparta, s-a potrivit perfect pentru el. :boundlessly_laughing: :boundlessly_laughing:

=)))) tot eu n am înțeles caterinca
User avatar
The Kalu
eXtream Mod
eXtream Mod
Posts: 12724
Joined: 09 Oct 2010, 11:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 207 times
Been thanked: 419 times
Contact:

02 Sep 2020, 09:57

Moonlight wrote:
02 Sep 2020, 01:15
The Kalu wrote:
31 Aug 2020, 16:23
TheOne1812 wrote:
31 Aug 2020, 16:12
bv frate
https://prnt.sc/u90clu
Am facut o mica corelationare cu numele si sparta, s-a potrivit perfect pentru el. :boundlessly_laughing: :boundlessly_laughing:

=)))) tot eu n am înțeles caterinca
Cum sa o intelegi cand esti prajit la creier?
User avatar
Sorinel
Fost moderator
Fost moderator
Posts: 4937
Joined: 25 Aug 2014, 20:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Christmas, A k c 3 n 7
Fond eXtream: 0
Location: Ploiesti
Been thanked: 9 times

02 Sep 2020, 10:56

Baaa 😂😂
User avatar
MdFk. =]
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 657
Joined: 06 Sep 2014, 16:19
Detinator Steam: Da
Reputatie: Utilizator neserios (tepar)
Fond eXtream: 0
Been thanked: 7 times

14 Sep 2020, 03:03

Post Reply

Return to “Pluginuri”

  • Information