26.08.2012, 01:43
I'm busy IRL < Take these basically all you need
Код:
new string[128], giveplayerid; new playername[MAX_PLAYER_NAME]; SetPlayerName(giveplayerid, newname); OnPlayerStatsUpdate(giveplayerid); format(newname, sizeof(newname), "users/%s.ini", playername); fremove(newname); if(doesAccountExist(playername)) // If it doesn't get removed, blank the file with write io and check its length when a player attempts to authenticate (it'll be 0) { new File: BlankTheFile = fopen(newname, io_write); SendClientMessageEx(playerid, COLOR_GRAD2, "The old account couldn't be removed completely (it's been blanked for future use)."); fclose(BlankTheFile);