Ir para conteúdo

IwarkFkz

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    IwarkFkz deu reputação a Kaiotp em [Talkaction] Lista de Staff   
    Uma talkaction que vai incrementar um pouco mais seu servidor. 
     
    !staff se estiver on parecera o seu nome e se não tiver aparecera um pequeno trecho 
     
    Em data/talkactions/talkactions.xml: 
    <talkaction words="!staff" event="script" value="staff.lua"/>
     
    Agora em data/talkactions/scripts: crie um arquivo chamado staff.lua e cole dentro: 
    function onSay(cid, words, param, channel)
            local Info = db.getResult("SELECT * FROM `players` WHERE `online` = '1' AND `group_id` > 1")
            local PlayerString = "Online Staff Members:\n"
            if Info:getID() ~= -1 then
                    local count, i = Info:getRows(false), 0
                       repeat
                       PlayerString = PlayerString .. Info:getDataString("name") .. " - "
                       if Info:getDataInt("group_id") == 2 then
                       PlayerString = PlayerString .. "Tutor"
                       elseif Info:getDataInt("group_id") == 3 then
                       PlayerString = PlayerString .. "Senior Tutor"        
                       elseif Info:getDataInt("group_id") == 4 then
                       PlayerString = PlayerString .. "Game Master"                
                       elseif Info:getDataInt("group_id") == 5 then
                       PlayerString = PlayerString .. "Community Manager"  
                       elseif Info:getDataInt("group_id") == 6 then
                       PlayerString = PlayerString .. "God"
                            end
                     PlayerString = PlayerString .. "\n"
                       until not(Info:next())
                                                      Info:free()
                       else
                       PlayerString = PlayerString .. "No staff online, try again later"
                       end
                       doPlayerPopupFYI(cid, PlayerString);
            return true
    end
      Bom Uso! 
     
    Creditos. 
    Kaiotp 
    Hiromath 
    AlexClusive
     

Informação Importante

Confirmação de Termo