Raised This Month: $ Target: $400
 0% 

immunity to change tag admin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
algoasi
Member
Join Date: Nov 2008
Location: Pluton
Old 04-08-2009 , 11:05   immunity to change tag admin
Reply With Quote #1

I have this script. but I do not want to change the name of the admin?

can you help?



PHP Code:
#include <amxmodx> 
PHP Code:
[left]#include <amxmisc>#define PLUGIN "TAGNAME"
#define VERSION "1.0"
#define AUTHOR "algoasi"
public plugin_init()
   
register_plugin(PLUGINVERSIONAUTHOR)public client_putinserver(id)
   
set_task(3.0,"change",id);
   
public 
change(id)
{
   if(!
is_user_connected(id))
      return 
0;
     
   new 
name[32], buffer[32];
   
get_user_name(id,name,31);
   
   if(
containi(name,"[tag]") != -1)
      return 
0;
     
   
formatex(buffer,sizeof buffer 1"[tag] *%s"name);
   
client_cmd(id"name ^"%s^""buffer);
   
   return 
1;
}public 
client_infochangedid )
{
   new 
newname32 ], oldname32 ], buffer[32];
   
get_user_info(id"name"newname31 );
   
get_user_name(idoldname31 );
   
   if(
equalinewnameoldname ) )
      return 
PLUGIN_CONTINUE;
     
   if(
containi(newname,"[tag]") != -1)
      return 
PLUGIN_CONTINUE;
     
   
formatex(buffer,sizeof buffer 1"[tag] *%s"newname);
   
client_cmd(id"name ^"%s^""buffer);
   
   return 
PLUGIN_CONTINUE;
}[/
left

Last edited by algoasi; 04-08-2009 at 11:08.
algoasi is offline
Send a message via MSN to algoasi
 



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:21.


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