[Cerere Plugin]Russian Name

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

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

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
glmmlg
Membru, skill +1
Membru, skill +1
Posts: 151
Joined: 14 Feb 2014, 06:16
Detinator Steam: Da
Detinator server CS: Da
Location: Timisoara
Has thanked: 1 time
Contact:

20 Feb 2019, 21:06

Plugin Cerut: Schimbare nume
Descriere (adica ce face el mai exact): As dorii si eu pluginul acela care daca ai nume rusesc , turcesc ... sa il schimbe in alt nume. Multumesc
Serverul ruleaza (HLDS/ReHLDS): HLDS
Versiune AMX Mod X: 1.8.2
Modul Serverului: Classic
Last edited by Rainq on 21 Feb 2019, 20:35, edited 3 times in total.
Reason: Editat dupa model
Envato
e931ff07
Membru, skill 0
Membru, skill 0
Posts: 34
Joined: 13 Jan 2019, 02:01
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

20 Feb 2019, 23:55

glmmlg wrote:Plugin Cerut: Schimbare nume
Descriere (adica ce face el mai exact): As dorii si eu pluginul acela care daca ai nume rusesc , turcesc ... sa il schimbe in alt nume. Multumesc
Serverul ruleaza (HLDS/ReHLDS): -
Versiune AMX Mod X: -
Modul Serverului: -
Poftim.
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "New Plugin"
#define VERSION "1.0"

#define	TASK_NAME	06091993

new const g_szDefaultName[ ] = "ce nick vrei";

new g_szRestrictedThings[ ][ ] =
{
	"http://",
	".ro",
	"aici modifici numele care vrei să-l schimbe", 
	".ua", 
	".com", 
	".net", 
	".org", 
	".biz", 
	".info", 
	".su", 
	":270",
	".",
	",",
	"["
}


public plugin_init( )
{
	register_plugin( PLUGIN, VERSION, "Askhanar" );
	
	// Add your code here...
}

public client_putinserver( id )
{
	if( is_user_bot( id ) || is_user_hltv( id ) )
		return;
		
	if( !task_exists( id + TASK_NAME ) )
		set_task( 1.5, "TaskCheckName", id + TASK_NAME );
		
}

public TaskCheckName( id )
{
	id -= TASK_NAME;
	if( !is_user_connected( id ) )
		return;
		
	new szName[ 32 ];
	get_user_name( id, szName, sizeof ( szName ) -1 );
	
	for( new i = 0; i < sizeof ( g_szRestrictedThings ); i++ )
	{
		if( containi( szName, g_szRestrictedThings[ i ] ) != -1 )
		{
			
			//client_cmd( id, "name ^"%s^"", g_szDefaultName );
			set_user_info( id, "name", g_szDefaultName );
			
		}
	}
}
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2148
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 73 times
Been thanked: 329 times
Contact:

21 Feb 2019, 00:17

| Afiseaza codul
[code]
#include <amxmodx>

new const Allowed_Symbs[][]=
{
	"a",
	"b",
	"c",
	"d",
	"e",
	"f",
	"g",
	"h",
	"i",
	"j",
	"k",
	"l",
	"m",
	"n",
	"o",
	"p",
	"q",
	"r",
	"s",
	"t",
	"u",
	"w",
	"x",
	"y",
	"z",
	"v",

	"ă",
	"î",
	"ș",
	"ț",
	"â",

	"0",
	"1",
	"2",
	"3",
	"4",
	"5",
	"6",
	"7",
	"8",
	"9",
	
	"~",
	"`",
	"!",
	"#",
	"@",
	"$",
	"%",
	"^"",
	"&",
	"*",
	"(",
	")",
	"-",
	"_",
	"=",
	"+",
	"[",
	"{",
	"]",
	"}",
	";",
	":",
	"'",
	"\",
	"|",
	",",
	"<",
	".",
	">",
	"/",
	"?"
}


public client_connect(id)
{
	if(!is_user_bot(id))
	{
		new name[32]
		get_user_info(id,"name",name,charsmax(name))
		for(new i;i<sizeof Allowed_Symbs;i++)	if(!containi(name,Allowed_Symbs))	set_user_info(id,"name","unnamed")
	}
}[/code]
Nu-mi mai dați cerere pe Steam doar pentru a mă avea în lista de prieteni, sau să-mi cereți ajutorul(nu fac nimic contracost!), faceți cerere aici.
INACTIV MOMENTAN
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 51 guests