OnPlayerConnect:playercount++;if(playercount > oldcount)dini_Int(//blah blah blah);OnPlayerDisconnect:playercount--;