question

dcherac avatar image
dcherac asked

How can I change a players statistics ?

Whenever I change a player stat value it resets, back to the original value , is there a way to override the player stats on the leaderboard as an admin and set custom values?

Player DataLeaderboards and StatisticsCustom Game ServersPlayer Inventory
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

·
Hernando avatar image
Hernando answered

Our recommendation is to turn off " Allow client to post player statistics" and only update statistics via CloudScript, so that you can have appropriate checks in server-side logic to look for cheating (max/min scores, time since last statistic report, etc.). More information about security please see this: https://community.playfab.com/questions/8637/security-on-updating-statistics-from-client-cloud.html

Besides, The API that can update the player statistics value is not included in Admin collection, so you should call Server.UpdatePlayerStatistics in CloudScript.

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.