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

Auto rename ppl with "Player" in their name.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xOscar
BANNED
Join Date: Nov 2012
Old 11-24-2012 , 17:25   Auto rename ppl with "Player" in their name.
Reply With Quote #1

Hey, I want to rename all players with "Player" in their name.
Not when the player spawns, directly when the player joins, and if the player change name to "Player" it should also rename it.

To "CHANGE_NICK".

...............................
I know, you can find this by searching, but every code is very messed up with special functions etc.

Last edited by xOscar; 11-24-2012 at 17:27.
xOscar is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 11-24-2012 , 17:31   Re: Auto rename ppl with "Player" in their name.
Reply With Quote #2

Hope that's no slowhacking..

Try this:

PHP Code:
#include <amxmodx>

#define VERSION        "0.1"

public plugin_init()
{
    
register_plugin("Nick Changer"VERSION"Justin");
}

public 
client_putinserver(id)
{
    new 
szName[32];
    
get_user_name(idszName31);
    
    if (
equal(szName"Player"))
        
server_cmd("amx_nick ^"%s^" ^"CHANGE_NICK^""szName);

Torge is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-24-2012 , 17:32   Re: Auto rename ppl with "Player" in their name.
Reply With Quote #3

Search the forum.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 11-24-2012 , 17:35   Re: Auto rename ppl with "Player" in their name.
Reply With Quote #4

Quote:
Originally Posted by wickedd View Post
Search the forum.
I think that's bit too late..
Torge is offline
xOscar
BANNED
Join Date: Nov 2012
Old 11-24-2012 , 17:37   Re: Auto rename ppl with "Player" in their name.
Reply With Quote #5

Quote:
Originally Posted by wickedd View Post
Search the forum.
Spoiler


On Topic:
Thanks for the code, but I think you can use cstrike?

Last edited by xOscar; 11-24-2012 at 17:38.
xOscar is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 11-24-2012 , 17:44   Re: Auto rename ppl with "Player" in their name.
Reply With Quote #6

Quote:
Originally Posted by xOscar View Post
Spoiler


On Topic:
Thanks for the code, but I think you can use cstrike?
What do you mean ?
Torge is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-24-2012 , 18:05   Re: Auto rename ppl with "Player" in their name.
Reply With Quote #7

Look he finally got caught ban evading.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 11-24-2012 , 20:13   Re: Auto rename ppl with "Player" in their name.
Reply With Quote #8

Why he got ban xD?
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 11-25-2012 , 06:17   Re: Auto rename ppl with "Player" in their name.
Reply With Quote #9

Quote:
Originally Posted by Torge View Post
Hope that's no slowhacking..

Try this:

PHP Code:
#include <amxmodx>

#define VERSION        "0.1"

public plugin_init()
{
    
register_plugin("Nick Changer"VERSION"Justin");
}

public 
client_putinserver(id)
{
    new 
szName[32];
    
get_user_name(idszName31);
    
    if (
equal(szName"Player"))
        
server_cmd("amx_nick ^"%s^" ^"CHANGE_NICK^""szName);

Totally Wrong!
PHP Code:
#include <amxmodx>

public client_authorized(id)
{
    static 
szName[32]
    
get_user_name(idszNamecharsmax(szName))
    
    if(
equali(szName"Player"))
        
set_user_info(id"name""I'm noob :)")

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster 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 01:32.


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