roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
1.3 tfs.
some players are disconnected from the game, and this message appears in the log.
(edited out the real IP shown below)
How can I set a storage in the player before it is disconnected for this reason?
player:setStorageValue(9010, 1) -- SOMETHING LIKE THIS (BUT I NEED IN C++)
some players are disconnected from the game, and this message appears in the log.
(edited out the real IP shown below)
Code:
255.255.255.0 disconnected for exceeding packet per second limit.
C++:
if ((++packetsSent / timePassed) > static_cast<uint32_t>(g_config.getNumber(ConfigManager::MAX_PACKETS_PER_SECOND))) {
std::cout << convertIPToString(getIP()) << " disconnected for exceeding packet per second limit." << std::endl;
close();
return;
}
player:setStorageValue(9010, 1) -- SOMETHING LIKE THIS (BUT I NEED IN C++)
Last edited by a moderator: