31.01.2013, 17:19
Then under the /ban command, add
PInfo[id][Banned] = 1;
That should work, then it will call onplayerdisconnect.
Edit: Also, change
Ban(id);
to
Kick(id);
as it will ban them from the server and just show "You are banned from this server.".
That way, you can add your own custom message under OnPlayerConnect.
PInfo[id][Banned] = 1;
That should work, then it will call onplayerdisconnect.
Edit: Also, change
Ban(id);
to
Kick(id);
as it will ban them from the server and just show "You are banned from this server.".
That way, you can add your own custom message under OnPlayerConnect.