Raised This Month: $51 Target: $400
 12% 

Name Replacer


Post New Thread Reply   
 
Thread Tools Display Modes
silvko
Member
Join Date: Apr 2008
Old 11-03-2010 , 19:11   Re: Name Replacer
Reply With Quote #41

WARNING: THE NameChanger.amxx in the first Post is MODIFED! The File does not match the original source code!!!

Last edited by Exolent[jNr]; 11-04-2010 at 01:33. Reason: Removed large text.
silvko is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-04-2010 , 01:33   Re: Name Replacer
Reply With Quote #42

Quote:
Originally Posted by silvko View Post
WARNING: THE NameChanger.amxx in the first Post is MODIFED! The File does not match the original source code!!!
What are you talking about? There is no .amxx file attached.
The one you download from "Get Plugin" is a compiled version from "Get Source" and it is compiled each time the "Get Plugin" is used.
The compiler used is the same as the AMXX webcompiler so there's no malicious code added.
What lead you to believe that the compiled version is modified?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
silvko
Member
Join Date: Apr 2008
Old 11-05-2010 , 12:08   Re: Name Replacer
Reply With Quote #43

Quote:
Originally Posted by Exolent[jNr] View Post
What are you talking about? There is no .amxx file attached.
The one you download from "Get Plugin" is a compiled version from "Get Source" and it is compiled each time the "Get Plugin" is used.
The compiler used is the same as the AMXX webcompiler so there's no malicious code added.
What lead you to believe that the compiled version is modified?

look at the size of this plugin, 1.9 mb. When i compiled this plugin it has a size of 5.9 kb.

If the compiler is the same, so why it has a different file size?

Last edited by silvko; 11-05-2010 at 17:01.
silvko is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-05-2010 , 12:33   Re: Name Replacer
Reply With Quote #44

The source code is only 4.5kb and the compiled copy is 5.9kb. Nothing is wrong with it. Where are you seeing 1.9mb?

EDIT: I see what you are talking about now. That is an issue with the WebCompiler, not his plugin.

EDIT2: Issue is only with the link on the forums, when using the webcompiler and uploading the file directly, file size is correct
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 11-05-2010 at 12:42.
YamiKaitou is offline
silvko
Member
Join Date: Apr 2008
Old 11-05-2010 , 16:54   Re: Name Replacer
Reply With Quote #45

Quote:
Originally Posted by YamiKaitou View Post
The source code is only 4.5kb and the compiled copy is 5.9kb. Nothing is wrong with it. Where are you seeing 1.9mb?

EDIT: I see what you are talking about now. That is an issue with the WebCompiler, not his plugin.

EDIT2: Issue is only with the link on the forums, when using the webcompiler and uploading the file directly, file size is correct
The filesize is 1.9 (1.82 mb exactly) also under windows. It's a different file.



When i compile the source myself, the filesize is correct. You're right.
silvko is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-05-2010 , 17:24   Re: Name Replacer
Reply With Quote #46

Downloaded the source code. Removed existing code. Reuploaded the source code. Compiles correctly now.

Happy now?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
silvko
Member
Join Date: Apr 2008
Old 11-06-2010 , 16:35   Re: Name Replacer
Reply With Quote #47

Quote:
Originally Posted by YamiKaitou View Post
Downloaded the source code. Removed existing code. Reuploaded the source code. Compiles correctly now.

Happy now?
sry i have reported this bug or whatever.

very bad moderator. Moderator not recommended.
silvko is offline
neoRT
Senior Member
Join Date: May 2011
Old 06-11-2011 , 04:55   Re: Name Replacer
Reply With Quote #48

Server tried to send invalid command:"name "Change your name"
why it doesn`t work on steam?
Edit: fixed and now works on steam too. here`s the source

#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Name Replacer"
#define VERSION "1.0"
#define AUTHOR "anakin_cstrike"
#define NAMES 32
new g_NameList[2][NAMES][32],g_Count;
public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR);
public plugin_cfg()
{
new iDir[64],iFile[64];
get_configsdir(iDir,sizeof iDir - 1);
formatex(iFile,sizeof iFile - 1, "%s/name_list.txt",iDir);
if(!file_exists(iFile))
write_file(iFile, "[Name Replacer]", -1);

new szFile = fopen(iFile, "rt"),Buffer[512];
while(!feof(szFile))
{
fgets(szFile, Buffer,sizeof Buffer - 1);
if(!Buffer[0] || Buffer[0] == ';' || strlen(Buffer) < 3)
continue;

trim(Buffer);
strtok(Buffer,g_NameList[0][g_Count],sizeof g_NameList[][] - 1,g_NameList[1][g_Count],sizeof g_NameList[][] - 1, ';',0);
g_Count++;
}
fclose(szFile);
}
public client_putinserver(id) set_task(10.0,"verify",id);
public verify(id)
{
if(!is_user_connected(id))
return PLUGIN_CONTINUE;
new name[32],i;
get_user_name(id,name,sizeof name - 1);
for(i = 0;i < g_Count;i++)
{
if(equali(name,g_NameList[0][i]))
{
client_print(id,print_chat,"That name is not allowed here! Changing name to ^"%s^"",g_NameList[1][i]);
// client_cmd(id,"setinfo name ^"%s^"",g_NameList[1][i]);
set_user_info(id,"name", g_NameList[1][i])
}
}
return PLUGIN_CONTINUE;
}
public client_infochanged(id)
{
new newname[32],oldname[32],i;
get_user_info(id,"name",newname, sizeof newname - 1);
get_user_name(id,oldname,sizeof oldname - 1);
if(equali(newname,oldname))
return PLUGIN_CONTINUE;
for(i = 0;i < g_Count;i++)
{
if(equali(newname,g_NameList[0][i]))
{
client_print(id,print_chat,"That name is not allowed here! Changing name to ^"%s^"",g_NameList[1][i]);
set_user_info(id,"name", g_NameList[1][i])
// client_cmd(id,"setinfo name ^"%s^"",);
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE;
}

Last edited by neoRT; 08-22-2011 at 03:25.
neoRT is offline
NuRo.LnT
Junior Member
Join Date: Nov 2012
Location: Romania
Old 02-02-2013 , 04:20   Re: Name Replacer
Reply With Quote #49

don't work if i put ~;www.etc.com , don't work , help ?
NuRo.LnT is offline
vendetta90
Junior Member
Join Date: Aug 2012
Old 11-04-2014 , 16:36   Re: Name Replacer
Reply With Quote #50

I have a problem with the plugin NameReplacer .
I have added on Player;my server that s ok but . i added (1)Player;my server and that doesn t work , i mean the server don t change the nick of (1)player
vendetta90 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode