| | |
| | | if tjgTime:
|
| | | curPlayer.SendGameServerRefreshState(IPY_GameWorld.CDBPlayerRefresh_HappyPoint, tjgTime)
|
| | |
|
| | | # 如果被禁言的,上线同步前端
|
| | | if curPlayer.GetGMForbidenTalk():
|
| | | curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_ForbidenTalk, curPlayer.GetGMForbidenTalk(), False)
|
| | | return
|
| | |
|
| | |
|
| | |
| | | def SetGMForbidenTalk(curPlayer, value):
|
| | | curPlayer.SetGMForbidenTalk(value)
|
| | | curPlayer.SendGameServerRefreshState(ShareDefine.CDBPlayerRefresh_ForbidenTalk, value)
|
| | | curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_ForbidenTalk, value, False)
|
| | | return
|
| | |
|
| | |
|
| | |
| | | def __CheckTalk(curPlayer, content, length, tick, checkGMForbidenTalk = True, checkSameMsg = True):
|
| | | if checkGMForbidenTalk and GetGMToolForbidTalk(curPlayer):
|
| | | #GeRen_chenxin_921745 对不起,您已被GM禁言,发送信息失败
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_921745")
|
| | | #PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_921745")
|
| | | return False
|
| | |
|
| | | #间隔时间
|
| | |
| | | curFindPlayer_GMOper.Sync_SaveToDB()
|
| | |
|
| | | PlayerControl.SetGMForbidenTalk(curFindPlayer, 1)
|
| | | PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_80731", [lastTime])
|
| | | #PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_80731", [lastTime])
|
| | | return
|
| | | #---------------------------------------------------------------------
|
| | | #执行结果
|
| | |
| | |
|
| | | #直接禁
|
| | | PlayerControl.SetGMForbidenTalk(curFindPlayer, 1)
|
| | | PlayerControl.NotifyCode(curFindPlayer , "ForbidIP_Talk" )
|
| | | #PlayerControl.NotifyCode(curFindPlayer , "ForbidIP_Talk" )
|
| | | return
|
| | | #---------------------------------------------------------------------
|
| | | ## 执行结果
|
| | |
| | | curFindPlayer_GMOper.Sync_SaveToDB()
|
| | |
|
| | | PlayerControl.SetGMForbidenTalk(curFindPlayer, 1)
|
| | | PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_80731", [lastTime])
|
| | | #PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_80731", [lastTime])
|
| | |
|
| | | curFindName = curFindPlayer.GetPlayerName()
|
| | | #流向
|
| | |
| | | break
|
| | |
|
| | | PlayerControl.SetGMForbidenTalk(curFindPlayer, 0)
|
| | | PlayerControl.NotifyCode(curFindPlayer, "GeRen_liubo_97211")
|
| | | #PlayerControl.NotifyCode(curFindPlayer, "GeRen_liubo_97211")
|
| | | return ''
|
| | |
|
| | |
|
| | |
| | |
|
| | | if result:
|
| | | PlayerControl.SetGMForbidenTalk(curFindPlayer, 0)
|
| | | PlayerControl.NotifyCode(curFindPlayer, "Player_Operate_RegainTalk")
|
| | | #PlayerControl.NotifyCode(curFindPlayer, "Player_Operate_RegainTalk")
|
| | |
|
| | | return
|
| | | #---------------------------------------------------------------------
|
| | |
| | |
|
| | | #直接禁
|
| | | PlayerControl.SetGMForbidenTalk(curFindPlayer, 0)
|
| | | PlayerControl.NotifyCode(curFindPlayer , "RestoreIP_Talk" )
|
| | | #PlayerControl.NotifyCode(curFindPlayer , "RestoreIP_Talk" )
|
| | | return
|
| | | #---------------------------------------------------------------------
|
| | | #执行结果
|