Postado Janeiro 19, 2015 10 anos Como colocar para ADM falar em vermelho no Help chat ?? estou falando como se fosse player D: valendo rep+
Postado Janeiro 19, 2015 10 anos Em \data\chatchannels\scripts Substitua seu HELP.LUA por local CHANNEL_HELP = 7 local muted = createConditionObject(CONDITION_CHANNELMUTEDTICKS)setConditionParam(muted, CONDITION_PARAM_SUBID, CHANNEL_HELP)setConditionParam(muted, CONDITION_PARAM_TICKS, 3600000)function onSpeak(cid, type, message)local playerAccountType = Player(cid):getAccountType()if(Player(cid):getLevel() == 1 and playerAccountType == ACCOUNT_TYPE_NORMAL) thenPlayer(cid):sendCancelMessage("You may not speak into channels as long as you are on level 1.")return falseendif(getCreatureCondition(cid, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP)) thenPlayer(cid):sendCancelMessage("You are muted from the Help channel for using it inappropriately.")return falseendif(playerAccountType >= ACCOUNT_TYPE_TUTOR) thenif(string.sub(message, 1, 6) == "!mute ") thenlocal targetName = string.sub(message, 7)local target = Player(name):getId(targetName) if(target ~= false) thenif(playerAccountType > target:getAccountType()) then if(not getCreatureCondition(target, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP)) thendoAddCondition(target, muted)sendChannelMessage(CHANNEL_HELP, TALKTYPE_CHANNEL_R1, getPlayerName(target) .. " has been muted by " .. getPlayerName(cid) .. " for using Help Channel inappropriately.")elsePlayer(cid):sendCancelMessage("That player is already muted.")endelsePlayer(cid):sendCancelMessage("You are not authorized to mute that player.")endelsePlayer(cid):sendCancelMessage(RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE)endreturn falseelseif(string.sub(message, 1, 8) == "!unmute ") thenlocal targetName = string.sub(message, 9)local target = Player(name):getId(targetName)if(target ~= false) thenif(playerAccountType > getPlayerAccountType(target)) thenif(getCreatureCondition(target, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP)) thendoRemoveCondition(target, CONDITION_CHANNELMUTEDTICKS, CHANNEL_HELP)sendChannelMessage(CHANNEL_HELP, TALKTYPE_CHANNEL_R1, getPlayerName(target) .. " has been unmuted by " .. getPlayerName(cid) .. ".")elsePlayer(cid):sendCancelMessage("That player is not muted.")endelsePlayer(cid):sendCancelMessage("You are not authorized to unmute that player.")endelsePlayer(cid):sendCancelMessage(RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE)endreturn falseendendif(type == TALKTYPE_CHANNEL_Y) thenif(playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) thentype = TALKTYPE_CHANNEL_Oendelseif(type == TALKTYPE_CHANNEL_O) thenif(playerAccountType < ACCOUNT_TYPE_TUTOR and not getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) thentype = TALKTYPE_CHANNEL_Yendelseif(type == TALKTYPE_CHANNEL_R1) thenif(playerAccountType < ACCOUNT_TYPE_GAMEMASTER and not getPlayerFlagValue(cid, PlayerFlag_CanTalkRedChannel)) thenif(playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(cid, PlayerFlag_TalkOrangeHelpChannel)) thentype = TALKTYPE_CHANNEL_Oelsetype = TALKTYPE_CHANNEL_Yendendendreturn type end REGRAS l ATENDIMENTO Atenciosamente, Mxtn
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.