[Cerere Plugin] amx_nick

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 .
Post Reply
User avatar
nanelu
Membru, skill 0
Membru, skill 0
Posts: 23
Joined: 12 Dec 2020, 15:00
Detinator Steam: Nu
Fond eXtream: 0
Discord: nanelu#0970
Has thanked: 3 times
Contact:

10 Feb 2021, 22:43

Plugin Cerut: amx_nick
Descriere (adica ce face el mai exact): Am nevoie de un plugin amx_nick care sa schimbe numele direct, fara ca jucatorul respectiv sa mai trebuiasca sa iasa de pe server.
Serverul impune conditii strict HLDS/REHLDS?: Nu cred
Ai cautat pluginul?(daca da, precizeaza cum): Da, alliedmods.
Necesita mod special?: Nu
Configuratie server: -
RoyalServer 2
lexz
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 917
Joined: 02 Nov 2020, 01:57
Detinator Steam: Da
Fond eXtream: 0
Discord: lexzor#0630
Has thanked: 71 times
Been thanked: 136 times

11 Feb 2021, 09:02

Nu este vina pluginului de amx_nick, tu ai un plugin in server care blocheaza schimbarea numelui jucatorilor.
User avatar
nanelu
Membru, skill 0
Membru, skill 0
Posts: 23
Joined: 12 Dec 2020, 15:00
Detinator Steam: Nu
Fond eXtream: 0
Discord: nanelu#0970
Has thanked: 3 times
Contact:

11 Feb 2021, 19:17

lexz wrote:
11 Feb 2021, 09:02
Nu este vina pluginului de amx_nick, tu ai un plugin in server care blocheaza schimbarea numelui jucatorilor.
Am scos ce tinea de blocare, tot asa face.

Lista pluginuri:

Code: Select all

amx_who.amxx
advanced_bans.amxx


; Base Admin

multifastdl.amxx
admin.amxx		

; Base

admincmd.amxx		
adminslots.amxx		

; Menus

menufront.amxx		
plmenu.amxx		
mapsmenu.amxx		
pluginmenu.amxx		



; Chat / Messages

adminchat.amxx		
antiflood.amxx		
;scrollmsg.amxx		
adminvote.amxx
;amx_help.amxx

; Map related		

;mapchooser.amxx		
;timeleft.amxx
galileo.amxx		

; Configuration

pausecfg.amxx		
statscfg.amxx		
statsx.amxx		

; Pluginuri Custom - Pluginuri adaugate de client.

Precache_Manager.amxx                         

; Pluginuri de Baza/Efecte

multijump.amxx                                                                                       
bullet_damage.amxx                                                                                                                          
resetscore.amxx                                              
amx_lastip.amxx                                                                             
transfer.amxx                                            
ultimele_harti.amxx                                                                         
ad_manager.amxx                                         
;zp_celmaibun.amxx                                                              
;register.amxx                                                                                                                              
meniu_boost.amxx                                                                                  
nademodes.amxx 
silent_nades.amxx  
advanced_gag.amxx

; VIP Gold Members/Extra Items VIP

zm_vip.amxx                                               
vreauvip.amxx                                              
meniu_avantajeVIP.amxx 

; Arme debug

;zp_extra_dark_night.amxx debug
;zm_vip_extra_paladin.amxx debug 

; MOTD-uri

motd_abilitati.amxx debug
rang_admin_chat.amxx debug      
auto_join_on_connect.amxx
hud_customizer.amxx
;restrictnames.amxx
swear_filter.amxx
User avatar
Rainq
Membru, skill +2
Membru, skill +2
Posts: 681
Joined: 21 Jul 2015, 19:50
Detinator Steam: Da
CS Status: Retras
Detinator server CS: zm.extreamcs.com
SteamID: mrainq
Reputatie: Fost super moderator
Fost detinator ZM.eXtreamCS.COM
Fost Membru Club eXtreamCS (trei luni)
Fond eXtream: 0
Location: Bucharest
Discord: manuraiders
Has thanked: 29 times
Been thanked: 51 times
Contact:

17 Feb 2021, 20:26

esti sigur ca ai plugine doar in plugins.ini ,nu ai si alte fisiere ce contin plugine ? plugis-plague,zm,bb,dr,gg,etc.ini ?
Image
User avatar
GENERALU'
Membru, skill +3
Membru, skill +3
Posts: 1274
Joined: 27 Jul 2015, 15:35
Detinator Steam: Da
CS Status: dproto.dll
Detinator server CS: biohazard is comming
SteamID: generalu_extream
Reputatie: Fost Moderator
Nume anterior: VioreL @EXTREAMCS
Fond eXtream: 0
Location: Transilvania
Discord: generalu_extream2463
Has thanked: 57 times
Been thanked: 19 times

18 Feb 2021, 16:53

Verifica sa ai valorile default in admincmd
hakuu
Membru, skill 0
Membru, skill 0
Posts: 12
Joined: 20 Jun 2019, 17:41
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 4 times

20 Feb 2023, 13:50

Code: Select all

#include <amxmodx>
#include < amxmisc >

#define PLUGIN_NAME "amx_nick"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "Numele tau"

// functie pentru schimbarea numelui jucatorului
public Action:amx_nick(id, const String: name[])
{
    new targetId = get_user_id(name) // verifica daca exista jucatorul
    new oldName[32]
    get_user_name(id, oldName, sizeof(oldName))
    
    if(targetId == id)
    {
        client_print(id, print_chat, "Numele dvs. a fost deja schimbat in %s.", name)
        return Plugin_Handled
    }
    
    if(targetId < 0)
    {
        client_print(id, print_chat, "Jucatorul %s nu este online.", name)
        return Plugin_Handled
    }
    
    new newName[32]
    get_user_name(targetId, newName, sizeof(newName))
    
    if(StrEqual(name, newName, true)) // verifica daca numele nou este deja utilizat
    {
        client_print(id, print_chat, "Numele %s este deja utilizat de un alt jucator.", name)
        return Plugin_Handled
    }
    
    set_user_name(targetId, name, sizeof(name))
    client_print(id, print_chat, "Numele jucatorului %s a fost schimbat in %s.", oldName, name)
    
    return Plugin_Handled
}

public plugin_init()
{
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
    register_plugin_command("amx_nick", "schimba numele jucatorului", "amx_nick", ADMFLAG_KICK, "a")
}
Last edited by levin on 20 Feb 2023, 16:19, edited 1 time in total.
Reason: nu
User avatar
CyBer[N]eTicK
Membru, skill +1
Membru, skill +1
Posts: 190
Joined: 29 May 2020, 05:35
Detinator Steam: Da
CS Status: Strong & Original
Detinator server CS: BB.BLACKGAMES.RO
SteamID: /id/cybernetick_cbk/
Fond eXtream: 0
Location: Albania, tirana
Discord: cybernetick_cbk
Has thanked: 21 times
Been thanked: 18 times
Contact:

20 Feb 2023, 14:42

hakuu wrote:
20 Feb 2023, 13:50

Code: Select all

#include <amxmodx>
#include < amxmisc >

#define PLUGIN_NAME "amx_nick"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "Numele tau"

// functie pentru schimbarea numelui jucatorului
public Action:amx_nick(id, const String: name[])
{
    new targetId = get_user_id(name) // verifica daca exista jucatorul
    new oldName[32]
    get_user_name(id, oldName, sizeof(oldName))
    
    if(targetId == id)
    {
        client_print(id, print_chat, "Numele dvs. a fost deja schimbat in %s.", name)
        return Plugin_Handled
    }
    
    if(targetId < 0)
    {
        client_print(id, print_chat, "Jucatorul %s nu este online.", name)
        return Plugin_Handled
    }
    
    new newName[32]
    get_user_name(targetId, newName, sizeof(newName))
    
    if(StrEqual(name, newName, true)) // verifica daca numele nou este deja utilizat
    {
        client_print(id, print_chat, "Numele %s este deja utilizat de un alt jucator.", name)
        return Plugin_Handled
    }
    
    set_user_name(targetId, name, sizeof(name))
    client_print(id, print_chat, "Numele jucatorului %s a fost schimbat in %s.", oldName, name)
    
    return Plugin_Handled
}

public plugin_init()
{
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
    register_plugin_command("amx_nick", "schimba numele jucatorului", "amx_nick", ADMFLAG_KICK, "a")
}
De cât să te folosești de toată harababura aceasta de cod mai bine, te folosești de amx_nick cel default nu am mai văzut pana acum ca targetul sa fie mai mic de cat 0
edit: Crecă nici nu merge să schimbi numele cuiva cu asa ceva :lifting_eyes: :cold_sweat:
User avatar
kidd0x
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1054
Joined: 06 Oct 2018, 14:41
Detinator Steam: Da
SteamID: /id/kidd0x/
Reputatie: Utilizator neserios (tepar!)
Fond eXtream: 0
Location: Constangeles
Discord: kidd0x
Has thanked: 172 times
Been thanked: 81 times

21 Feb 2023, 13:23

CyBer[N]eTicK wrote:
20 Feb 2023, 14:42
hakuu wrote:
20 Feb 2023, 13:50

Code: Select all

#include <amxmodx>
#include < amxmisc >

#define PLUGIN_NAME "amx_nick"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "Numele tau"

// functie pentru schimbarea numelui jucatorului
public Action:amx_nick(id, const String: name[])
{
    new targetId = get_user_id(name) // verifica daca exista jucatorul
    new oldName[32]
    get_user_name(id, oldName, sizeof(oldName))
    
    if(targetId == id)
    {
        client_print(id, print_chat, "Numele dvs. a fost deja schimbat in %s.", name)
        return Plugin_Handled
    }
    
    if(targetId < 0)
    {
        client_print(id, print_chat, "Jucatorul %s nu este online.", name)
        return Plugin_Handled
    }
    
    new newName[32]
    get_user_name(targetId, newName, sizeof(newName))
    
    if(StrEqual(name, newName, true)) // verifica daca numele nou este deja utilizat
    {
        client_print(id, print_chat, "Numele %s este deja utilizat de un alt jucator.", name)
        return Plugin_Handled
    }
    
    set_user_name(targetId, name, sizeof(name))
    client_print(id, print_chat, "Numele jucatorului %s a fost schimbat in %s.", oldName, name)
    
    return Plugin_Handled
}

public plugin_init()
{
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
    register_plugin_command("amx_nick", "schimba numele jucatorului", "amx_nick", ADMFLAG_KICK, "a")
}
De cât să te folosești de toată harababura aceasta de cod mai bine, te folosești de amx_nick cel default nu am mai văzut pana acum ca targetul sa fie mai mic de cat 0
edit: Crecă nici nu merge să schimbi numele cuiva cu asa ceva :lifting_eyes: :cold_sweat:
Nici macar nu sunt functii amxx :(( :((
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

14 Mar 2023, 18:42

| Afiseaza codul
#include < amxmodx >
#include < amxmisc >

#define MAX_PLAYERS	32

public plugin_init ( )
{
	register_plugin ( "Nick Changer", "1.0", "LondoN eXtream" );
	register_concmd ( "amx_nick", "pfn_NameChanger", ADMIN_LEVEL_A, "" );
}

public pfn_NameChanger ( id, userLevel, cID )
{
	if ( !cmd_access ( id, userLevel, cID, 2 ) )
		return;

	new k [ MAX_PLAYERS ], j [ MAX_PLAYERS ], o;
	read_argv ( 1, k, charsmax ( k ) );
	read_argv ( 2, j, charsmax ( j ) );
	o = strlen ( k ) > 0 ? cmd_target ( id, k, CMDTARGET_ALLOW_SELF ) : EOS;
	set_user_info ( o, "name", j );
}
Last edited by levin on 14 Mar 2023, 20:18, edited 1 time in total.
Reason: nu i bn codat
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests