I give up
If you want Lapo to help you, follow this posting rules and let him know the sfs basic version etc..
Moderator Functions NOT WORKING
I use as2.0 and my code works:
Code: Select all
if (smartfox.amIModerator){
trace("Welcome Moderator.")
}else{
trace("I'm a standard user")
}
-
- Posts: 87
- Joined: 07 Aug 2009, 11:01
rjgtav wrote:I use as2.0 and my code works:Code: Select all
if (smartfox.amIModerator){
trace("Welcome Moderator.")
}else{
trace("I'm a standard user")
}
Yes that works for me to however it wont ban or kick
-
- Posts: 87
- Joined: 07 Aug 2009, 11:01
In order for the moderator function to work properly the User must login with the same name and password specified in the configuration.
Example:
The User must login with those same name and password.
If you do so, it will work.
The same goes for kicking and banning.
Make sure that you handle the onAdminMessage event to correctly show the Kicking/Banning message.
Example:
Code: Select all
<Moderators status="on">
<Mod name="Albert" pwd="Einstein" />
</Moderators>
The User must login with those same name and password.
If you do so, it will work.
The same goes for kicking and banning.
Make sure that you handle the onAdminMessage event to correctly show the Kicking/Banning message.
-
- Posts: 87
- Joined: 07 Aug 2009, 11:01
-
- Posts: 87
- Joined: 07 Aug 2009, 11:01
-
- Posts: 87
- Joined: 07 Aug 2009, 11:01
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 93 guests