question

xavier horwood avatar image
xavier horwood asked

how do i get isBanned variable from user info,how do i get isBanned variables from user info

unreal
1 comment
10 |1200

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

xavier horwood avatar image xavier horwood commented ·

there is a error

0 Likes 0 ·

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Admin/Server API GetUserBans can get all bans for a user. You can invoke this server API method on CloudScript directly, then get “isBanned” variable via getting “GetUserBansResult->”BanData”(Array)->”Active” field value. If this player has never been banned, this “Active” field value will be null. Please click the link for API references.

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.