Kick/Ban
#1

Hey guys,

do you know what variable kick and ban comes under, is it OnPlayerDisconnect?

I'm trying to save a variable, but doesn't sometimes work when we ban someone from the server, or kick.

Am I correct?
Reply
#2

try saving your variables in the ban or kick command.
Reply
#3

Save the variable before kick...

pawn Код:
CMD:kicktest(playerid) // Only an exemple
{
    Kicked[playerid] = true;
    Kick(playerid);
    return 1;
}
Also, reason 2 at OnPlayerDisconnect, means kick or banned.

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(reason == 2) SendClientMessageToAll(-1,"A bitch got kicked or banned off from the server.");
    return 1;
}
Reply
#4

What's the point of "Kicked[playerid] = true;"?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)