14.02.2013, 15:10
I am using this and it works perfectly:
pawn Код:
CMD:deleteaccount(playerid, params[])
{
new accName[MAX_PLAYER_NAME], str[50], string[128];
if(sscanf(params,"s[24]", accName)) return SendClientMessage(playerid, -1 , "Usage: /deleteaccount [Accountname]");
format(str, sizeof(str), "Users/%s.ini", accName);
if(!fexist(str)) return SendClientMessage(playerid, -1 , "That account name doesn't exist!");
fremove(str);
format(string, sizeof(string), "You have successfully deleted %s's account." ,accName);
SendClientMessage(playerid, -1, string);
return 1;
}