29.07.2016, 20:53
OnPlayerFullyConnect
Now, there is OnPlayerConnect, but that calls on the second connection, not the third where "Connected to: name.", That's when the server can handle the connections with the client such as dialogs responses etc, this will also work with InterpolateCamera
This is a simple code, but people has been struggling with this problem where a player connect, and receives the login dialog, and they type their password really really fast, then they need to wait a few seconds depending on the server connection rate with the client.
Now, there is OnPlayerConnect, but that calls on the second connection, not the third where "Connected to: name.", That's when the server can handle the connections with the client such as dialogs responses etc, this will also work with InterpolateCamera
PHP Code:
forward OnPlayerFullyConnect(playerid);
public OnPlayerConnect(playerid)
SetTimerEx("OnPlayerFullyConnect", 0001, false, "i", playerid);
public OnPlayerFullyConnect(playerid) {
..
}