question

elephrates avatar image
elephrates asked

Client API set statistic

To set statistic ie at end game say you got 500 score, I use the set statistics, but is this the proper way to do ti as to allow the client access it says it may allow players to cheat. But whats the alternative or correct method?

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

As the Tournaments & Leaderboards quickstart - PlayFab | Microsoft Learn mentions that, the option “Allow client to post player statistics” should not be used in a live game, as it gives the client authority over values submitted. This is only valid for cases where there is no concern that players may cheat their statistics. If statistics need to be secure, they should only be updated via a server authoritative operation, such as a Cloud Script or custom game server. So, to ensure the safety, players can call server API UpdatePlayerStatistics to update their statistics via Azure Function.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.