SA-MP Forums Archive
Deleting or doenst saving account file? Before kicking - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Deleting or doenst saving account file? Before kicking (/showthread.php?tid=144252)



Deleting or doenst saving account file? Before kicking - Mechscape - 26.04.2010

Код:
public OnPlayerConnect(playerid)
{
	new plname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, plname, sizeof(plname));
	new namestring = strfind(plname, "_", true);
 	if(namestring == -1)
	{
		SendClientMessage(playerid, COLOR_YELLOW2, "[NIMIKONTROLLIJA] Su nimi ei ole sobiv!");
		SendClientMessage(playerid, COLOR_YELLOW2, "[NIMIKONTROLLIJA] Su nimi peab olema formaatides Eesnimi_Perenimi.");
		Kick(playerid);
		return 1;
	}
	return 1;
}
How do make, it before kick will deletes account and kicked or smth?
Theres still saving accounts, when anyone comes without _ and kicked, then saved accounts to users folder.


Re: Deleting or doenst saving account file? Before kicking - Mechscape - 26.04.2010

.