Raised This Month: $ Target: $400
 0% 

Nick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 02-03-2010 , 06:22   Nick
Reply With Quote #1

How to do i change the person nick ?
zombieplague is offline
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 02-03-2010 , 06:40   Re: Nick
Reply With Quote #2

amx_nick "Client Nick To" "My Name Is Nick "
__________________



Last edited by SpILL; 02-03-2010 at 06:50.
SpILL is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 02-03-2010 , 06:55   Re: Nick
Reply With Quote #3

Quote:
Originally Posted by SpILL View Post
amx_nick "Client Nick To" "My Name Is Nick "
No i mean like the code not the plugin.

Like client_cmd( id, "name blabla" )
zombieplague is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-03-2010 , 07:55   Re: Nick
Reply With Quote #4

Well thats how. You just posted the code.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 02-03-2010 , 08:14   Re: Nick
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
Well thats how. You just posted the code.
But i have error when compiling

PHP Code:
new name33 ]
get_user_nameidname32 )
 
client_cmdid"name %s | asdasda "name 
zombieplague is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 02-03-2010 , 08:15   Re: Nick
Reply With Quote #6

Is that your whole code?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
zombieplague
Veteran Member
Join Date: Apr 2009
Old 02-03-2010 , 09:48   Re: Nick
Reply With Quote #7

Quote:
Originally Posted by crazyeffect View Post
Is that your whole code?
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init( )
{
    
register_plugin"Name Info" "1.0""zombieplague" )
    
register_forwardFM_SpectatorThnk"Specting" )
}

public 
Spectingid 
{
    if ( 
user_is_aliveid )
    {
        new 
name33 ]
        
get_user_nameidname32 )
        
        
client_cmdid"name %s | what"name 
    }

zombieplague is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-03-2010 , 09:58   Re: Nick
Reply With Quote #8

I think you should use set_user_info instead of client_cmd, like this:
PHP Code:
new name[32]
get_user_name(idnamecharsmax(name))
new 
newName[32]
format(newNamecharsmax(newName), "%s | what"name);
set_user_info(id"name"newName
EDIT: And by the way, why name changing isn't considered slow-hacking?
Seta00 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-03-2010 , 10:38   Re: Nick
Reply With Quote #9

Your error is not with the name changing.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-03-2010 , 10:46   Re: Nick
Reply With Quote #10

PHP Code:
FM_SpectatorThnk     - >     FM_SpectatorThink
if ( user_is_aliveid )     - >     if ( is_user_aliveid ) ) 
SnoW is offline
Send a message via MSN to SnoW
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 07:29.


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