Sorry.. i donīt know why canīt edit the other post :/ (Im logged)
If a player into the server have got name CAT... and the server put him [TAG] - CAT... when a player put him 123, the plugin put him [TAG] - 123...
But if a player have got name 123 when entering in the server, the plugin canīt change the nick.. :S
This is very crazy! OMG
If any donīt know why, and can help.. i post the plugin
Code:
#include <amxmodx>
#include <engine>
#include <amxmisc>
#include <fakemeta>
new Plugin_Author[] = "start";
new Plugin_Version[] = "1.0";
new Plugin_Name[] = "lol"
public plugin_init()
{
register_plugin(Plugin_Name,Plugin_Version,Plugin_Author);
}
public client_putinserver(id)
{
set_task(1.0,"fnCheck1",id)
}
public client_infochanged(id)
{
new name[32];
get_user_name(id, name, 31);
if(containi(name, "[TAG] - ") > -1)
{
return PLUGIN_HANDLED;
}
else
{
client_cmd(id,"name ^"[TAG] - %s^"",name);
}
}
public fnCheck1(id)
{
new name[32];
get_user_name(id, name, 31);
if(containi(name, "[TAG] - ") > -1)
{
return PLUGIN_HANDLED;
}
else
{
client_cmd(id,"name ^"[TAG] - %s^"",name);
}
}