Jump to content

Lipee Lima

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Lipee Lima's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Opa, gostaria de saber como faço para que quando o rank for chamado ele organize em ordem por Kills. Tipo 1,2,3 e etc... function recebeKills () local data = getAccounts () local accTable = {} local killsTable = {} local deathsTable = {} local killDeath = {} local kill = 0 local death = 0 if not data[1] then triggerClientEvent (client, "showScores", client) return end for i, acc in ipairs (data) do table.insert (accTable, getAccountName (data[i])) if not getAccountData (data[i], "kills") then table.insert (killsTable, "0") kill = 0 else table.insert (killsTable, tostring (getAccountData (data[i], "kills"))) kill = tonumber (getAccountData (data[i], "kills")) end if not getAccountData (data[i], "deaths") then table.insert (deathsTable, "0") death = 0 else table.insert (deathsTable, tostring (getAccountData (data[i], "deaths"))) death = tonumber (getAccountData (data[i], "deaths")) end if death == 0 and kill == 0 then table.insert (killDeath, 0) else table.insert (killDeath, kill / death) end end triggerClientEvent (client, "showRank", client, accTable, killsTable, deathsTable, killDeath) end addEvent ("getRank", true) addEventHandler ("getRank", getRootElement(), recebeKills)
  2. Lipee Lima

    help chat

    Is there any way to disable tactics default chat?
  3. I wanted to know how do I disable the default mta T chat, I'm using a chat and when I send a message there are two messages that in this case are my chat and the mta default T chat. The script just below. function playerChat(message, messageType) if messageType == 0 then --Global (main) chat cancelEvent() local ID = getElementData(source, "ID") or "N/A" if isObjectInACLGroup("user."..getAccountName ( getPlayerAccount (source)), aclGetGroup ("Console") ) then outputChatBox("#DDA0DD* [#000000Fundador#DDA0DD] " ..getPlayerName(source).." ["..ID.."]: #FFFFFF"..message, root, 255, 0, 0, true ) outputServerLog("ChatLog: "..getPlayerName(source).." ["..ID.."]: "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually. elseif isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Adm" ) ) then outputChatBox("#DDA0DD* [#FF0000Administrador#DDA0DD] " ..getPlayerName(source).." ["..ID.."]: #FFFFFF"..message, root, 255, 0, 0, true ) outputServerLog("ChatLog: "..getPlayerName(source).." ["..ID.."]: "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually. elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#DDA0DD* [#9370DBPlayer#DDA0DD] " ..getPlayerName(source).." ["..ID.."]: #FFFFFF"..message, root, 255, 0, 0, true ) outputServerLog("ChatLog: "..getPlayerName(source).." ["..ID.."]: "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually. end end end addEventHandler("onPlayerChat", root, playerChat)
  4. Could you help me? I'm new to this.
  5. I was wondering how I can cancel HS damage without having to disable the HS system, could anyone help me? addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invinciblestaff") then cancelEvent() end end ) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invinciblestaff") then cancelEvent() end end ) addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invinciblestaff") then cancelEvent() end end ) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invinciblestaff") then cancelEvent() end end )
×
×
  • Create New...