[HELP] Deleting the accounts of everyone online - 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: [HELP] Deleting the accounts of everyone online (
/showthread.php?tid=168160)
[HELP] Deleting the accounts of everyone online -
xxxDunecatxxx - 15.08.2010
foreach(Player, i)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
Kick(i);
format(string, sizeof(string), "%s.ini", giveplayer);
fremove(string);
}
I made a command to delete the accounts of everyone online and it doesn't work well (doesn't kick and delete everyone, just a couple of people only), can someone tell me why?
thanks
Re: [HELP] Deleting the accounts of everyone online -
rbN. - 15.08.2010
Quote:
Originally Posted by xxxDunecatxxx
foreach(Player, i)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
Kick(i);
format(string, sizeof(string), "%s.ini", giveplayer);
fremove(string);
}
I made a command to delete the accounts of everyone online and it doesn't work, can someone tell me why?
thanks
|
Try that on OnPlayerConnect (without the foreach thingies ;P)?:
pawn Код:
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%s.ini", giveplayer);
fremove(string);
Kick(playerid);
return 1;
}
I think like that
Re: [HELP] Deleting the accounts of everyone online -
xxxDunecatxxx - 15.08.2010
Yes, but every time a player leaves my server, it updates their account. Meaning, the account recreates as they leave. So I want it to store their name first, kick them, and then remove their account so it actually deletes. But it won't work
Re: [HELP] Deleting the accounts of everyone online -
aNdReSk - 15.08.2010
just curious, why u wanna do that
Re: [HELP] Deleting the accounts of everyone online -
xxxDunecatxxx - 20.08.2010
Just to experiment