Page 1 of 1

how to ban/kick people

Posted: 15 Aug 2010, 23:20
by skybucks100
I was wondering... Is there a way to ban people if they dont get banned by the auto ban? Or if they broke one of your rules How could i ban them?

Posted: 16 Aug 2010, 00:48
by BigFIsh
With user being a 'moderator', you can manually ban a user by doing something like this:

var dataObj = {}
dataObj.id = userId.toString()
dataObj.msg = "Your msg"

smartFox.sendXtMessage("$dmn", "ban", dataObj) //ban a user

smartFox.sendXtMessage("$dmn", "kick", dataObj) //kick a user

Posted: 16 Aug 2010, 00:52
by skybucks100
BigFIsh wrote:With user being a 'moderator', you can manually ban a user by doing something like this:

var dataObj = {}
dataObj.id = userId.toString()
dataObj.msg = "Your msg"

smartFox.sendXtMessage("$dmn", "ban", dataObj) //ban a user

smartFox.sendXtMessage("$dmn", "kick", dataObj) //kick a user


Is there a way i could make a website like... www.mybanningwebsiteexample.com/bannauser.(what ever it would be)

Re:

Posted: 06 Oct 2013, 19:41
by WoWoX
skybucks100 wrote:
BigFIsh wrote:With user being a 'moderator', you can manually ban a user by doing something like this:

var dataObj = {}
dataObj.id = userId.toString()
dataObj.msg = "Your msg"

smartFox.sendXtMessage("$dmn", "ban", dataObj) //ban a user

smartFox.sendXtMessage("$dmn", "kick", dataObj) //kick a user


Is there a way i could make a website like... http://www.mybanningwebsiteexample.com/bannauser.(what ever it would be)

Yes, you could set your game up with a database and use PHP to ban users.

Re: how to ban/kick people

Posted: 11 Jan 2014, 16:15
by zachofthegolden1
When banning a user for example on my game i have 2 ways of banning. One of them is a function in my main extension set to kick the user and set active to 0 in the database so on login if active = 0 show permenant ban message. Or you could use the one that is part of smartfox mentioned above for tempory bans etc.