Raised This Month: $ Target: $400
 0% 

help scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
grosu
New Member
Join Date: Jun 2006
Old 06-27-2006 , 11:58   help scripting
Reply With Quote #1

Hello,

I am rather new to amxmodx scripting. How can i make a plugin to execute a command when a player changes his/her name?
grosu is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-27-2006 , 13:50   Re: help scripting
Reply With Quote #2

PHP Code:
public client_infochanged(id)
{
    new 
newname[32], oldname[32]
    
get_user_name(idoldname31)
    
get_user_info(id"name"newname31)
    if (!
equal(newnameoldname)) {
        
// name changed, execute command: speak hello to that player
        
client_cmd(id"spk hello")
    }

VEN 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 08:08.


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