OnPlayerDisconnect
#1

Welcome. I have a question related to "OnPlayerDisconnect".
In cases of withdrawal of a problem with the game "OnPlayerDisconnect" is triggered immediately, but within 5-10 seconds.
PHP код:
#include <a_samp>
main() { }
public 
OnGameModeInit() return true;
public 
OnPlayerConnect(playerid) return printf("OnPlayerConnect: %d"playerid);
public 
OnPlayerDisconnect(playeridreason) return printf("OnPlayerDisconnect: %d"playerid); 
When connecting "OnPlayerConnect ID" is displayed instantly.
When you exit the game [/q(uit)] similarly, in an instant.
But when removing the task is not a small delay, you can check for yourself.
I need to reset the variables, is it wise to update them in "OnPlayerConnect"?
Reply


Messages In This Thread
OnPlayerDisconnect - by BossArturKA - 09.06.2015, 18:58
Re: OnPlayerDisconnect - by mamorunl - 10.06.2015, 08:49
Re: OnPlayerDisconnect - by BossArturKA - 10.06.2015, 20:37

Forum Jump:


Users browsing this thread: 1 Guest(s)