i tried to modyfy that stock but on execution it killed my test server =3
Code:
stock unregname(const arg2[])
{
new extencion[8], realfile[128], tempfile[128], len
new arg11[32], arg12[32]
copy(realfile, 127, g_steam_file)
copy(tempfile, 127, g_steam_file)
len = strlen(tempfile)
copy(extencion, 7, tempfile[len-4])
tempfile[len-4] = '^0'
formatex(tempfile, 127, "%s_temp%s", tempfile, extencion)
new file = fopen(tempfile, "wt")
new vault = fopen(realfile, "rt")
new data[128]
while( !feof(vault) )
{
fgets(file, data, 63);
parse(data, arg11, 31, arg12, 31);
if( arg12[31] == arg2[31] ) continue
fputs(file, data)
}
fclose(file)
fclose(vault)
delete_file(realfile)
while( !rename_file(tempfile, realfile, 1) ) { }
}