Raised This Month: $ Target: $400
 0% 

I Need Block Name Change Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
serdar598
Member
Join Date: Feb 2011
Old 01-25-2012 , 14:43   I Need Block Name Change Plugin
Reply With Quote #1

I Need Block Name Change Plugin
Please Help Me
serdar598 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 01-25-2012 , 14:47   Re: I Need Block Name Change Plugin
Reply With Quote #2

search for block name...
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
serdar598
Member
Join Date: Feb 2011
Old 01-25-2012 , 15:38   Re: I Need Block Name Change Plugin
Reply With Quote #3

I could not find
serdar598 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-25-2012 , 15:40   Re: I Need Block Name Change Plugin
Reply With Quote #4

I think i have posted such plugin like 10 times in the past 3 monthes, let's search again.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 01-25-2012 , 17:35   Re: I Need Block Name Change Plugin
Reply With Quote #5

http://forums.alliedmods.net/showthread.php?p=154865
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
naXe
BANNED
Join Date: May 2009
Location: Poland/Kwidzyn
Old 01-26-2012 , 17:47   Re: I Need Block Name Change Plugin
Reply With Quote #6

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_plugin("Block name change","1.0","grankee")
    
register_message(get_user_msgid("SayText"), "message")
}
public 
message()
{
    new 
arg[32]
    
get_msg_arg_string(2arg31)
    if(
containi(arg,"name")!=-1)
    {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE
}
public 
client_infochanged(id)
{
    new 
newname[32],oldname[32]
    
get_user_info(id"name"newname,31)
    
get_user_name(id,oldname,31)
    if(!
is_user_connected(id) || is_user_bot(id)) return PLUGIN_CONTINUE
    
if(!equali(newnameoldname))
    {
        
set_user_info(id,"name",oldname)
        
client_print(id print_chat "[AMXX] Prohibition of nick change!")
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE

naXe is offline
Send a message via AIM to naXe
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 02:41.


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