Quote:
Originally Posted by Bello
Ok then what place as said alucard?
|
Wow, this is sad. You can either do what he said or do this:
PHP Code:
public client_infochanged(id)
{
if( is_user_connected(id) )
{
static sName[32], NewName[32], ID[28]
get_user_name(id, sName, sizeof(sName)-1)
get_user_info(id, "name", NewName, sizeof(NewName)-1)
get_user_authid(id, ID, sizeof(ID)-1)
if(!equali(sName, NewName))
{
new lines = file_size(Direccion,1)
new file[1024], len
for(new i=0; i<=lines; i++)
{
read_file(Direccion, i , file, 1023, len)
if(equal(ID, file))
{
set_speak(id, 1)
if(!(contain(NewName, Muted[0]) != -1))
{
add(NewName, sizeof(sName)-1, Muted[1])
set_user_info(id, "name", NewName)
break
}
}
}
}
}
}
Mine is more efficient.
__________________