-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new parameter to OnRconLoginAttempt callback #892
Comments
I suggested something similar earlier, but with separate callbacks
UPD: Oh btw,
actually we cannot be sure which playerid it is even using a loop because if the server allow many players from the same IP, a loop will find only one of the players on this IP address. That's why I also think about adding "playerid"-ful analogue of those callbacks for in-game rcon manipulations is a not so bad idea. |
Unfortunately adding new parameters to existing callbacks is a compiler error. Weirdly even just changing the names (not types) of existing ones is an error. The other option is a function like I'm sure there are good answers to all these questions, they just need working out. However, whatever the solution there's still going to be duplicated code too. A |
Well it's also a good variant. Just doing it like with OnPlayerWeaponShot and GetPlayerLastShotVectors, where the second is also updated every shot, being useful inside OPWS and keep containing extended data about the last bullet further (until the new shot rewrite it). So, this seems a good idea for me too. If considering both OnRconLoginAttempt and OnRconCommand, the naming can be related to "interaction", something like "get player interacted with rcon" (just the idea, not literally this name). |
Pintar |
Good point. Edit: |
Add the
playerid
parameter after thesuccess
parameter to OnRconLoginAttempt callback.I know we can get the player id by loop through players' ip
The text was updated successfully, but these errors were encountered: