15.05.2010, 15:14 
	
	
	Код:
stock pAddGateKeys(name[], faction)
{
	new filestr[128],string[128];
    if(faction == 0) return 1;
    if(faction == 1){format(string,sizeof(string),"D-RP/Factions/LSPD_Keys.cfg");}
	new File:file = fopen(string,io_append);
	if (file)
	{
	  while(fread(file,filestr,sizeof(filestr)))
	  {
	  	if (strfind(filestr, name, true) != -1)
	  	{
	  	}
	  	else
	  	{
				format(string,128,"%s\r\n", name);
				fwrite(file,string);
	  	}
	  }
	}
	fclose(file);
	return 1;
}



