[HELP] Deleting the accounts of everyone online
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

just curious, why u wanna do that
Reply
#5

Just to experiment
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)