AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help scripting (https://forums.alliedmods.net/showthread.php?t=40423)

grosu 06-27-2006 11:58

help scripting
 
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?

VEN 06-27-2006 13:50

Re: help scripting
 
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")
    }




All times are GMT -4. The time now is 08:06.

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