Raised This Month: $ Target: $400
 0% 

Name change event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xion
Junior Member
Join Date: Jul 2006
Old 07-01-2007 , 12:01   Name change event
Reply With Quote #1

Is there an event for when someone changed their name? I looked on the Wiki but no luck. I tried registering the clcmd name, but also no luck:

PHP Code:
register_clcmd("name""makeLoginBar"0
How can i do it?

Ta,
Mitcb
xion is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 07-01-2007 , 12:11   Re: Name change event
Reply With Quote #2

I think you can use client_infochanged(id), but I'm not sure.
mateo10 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-01-2007 , 14:48   Re: Name change event
Reply With Quote #3

@matte - You'r right!

Code:
public client_infochanged(id)
{
 if(!is_user_connected(id))
  return 0;
 
 new newname[32], oldname[32]
 
 get_user_name(id, oldname, 31)
 get_user_info(id, "name", newname, 31)
 
 if(!equali(newname,oldname))
 {
      //do stuffs when change name
 }
}
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 07-01-2007 at 15:09.
Alka 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 21:23.


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