Posts: 260
Threads: 55
Joined: Jun 2008
Reputation:
0
Ban(playerid); don't go in OnPlayerDisconnect, why?
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Because the script can't ban a disconnected player.
Posts: 139
Threads: 7
Joined: Feb 2009
Reputation:
0
this is just a stupid question. to post about.
Posts: 371
Threads: 9
Joined: Sep 2007
Reputation:
0
You ban a player when he disconnects? It's the other way around.
Posts: 1,043
Threads: 28
Joined: Nov 2007
Reputation:
0
I actually had a little lol there. I can see what you mean though, but no. If a player disconnects, you can't ban them.
So use the Ban(playerid/giveplayerid) in a command, forcing the OnPlayerDisconnect callback to execute.
Posts: 139
Threads: 7
Joined: Feb 2009
Reputation:
0
no he called my gay so i said it was stupid to ask .
Posts: 1,043
Threads: 28
Joined: Nov 2007
Reputation:
0
Just forget this, he's got his answer, end of discussion.