Jump to content

can any one fix for me those


FiGo

Recommended Posts

function gangChatStaff(player, cmd, ...)
    local gang = getPlayerGang(player)
    if (isPlayerMuted(player)) then
     outputChatBox("You are muted!", plr, 255, 0, 0) return end
    if (not canPlayerDoActionInSquad(player, "GroupStaffChat")) then return end
    if (not gang) then return end
    if (not ...) then return end
    local message = table.concat({...}, " ")
    local r, g, b = getGangChatColor(gang)
    local message2 = "(SSC) "..getPlayerName(player)..": #FFFFFF"..message
    for k, v in pairs(getGangMembers(gang)) do
     if (canPlayerDoActionInSquad(k, "GroupStaffChat")) then
      outputChatBox(message2.."", k, r, g, b, true)
      exports.CIPadmin:writePlayerLog(player, "SSC (Squad) "..getPlayerName(player)..": ".. table.concat({...}, " "), "squads")
  end
 end
    exports.CIPadmin:outputOnlineStaff("SSC ("..gang..") "..getPlayerName(player)..": ".. table.concat({...}, " "), 255, 255, 255)
end
addCommandHandler("ssc", gangChatStaff)
function editGroupMOTD(player, cmd, ...)
    local gang = getPlayerGang(player)
    if (not canPlayerDoActionInGroup(player, "gmotd")) then return end
    if (not gang) then return end
    if (not ...) then return end
    local message = table.concat({...}, " ")
    local r, g, b = getGangChatColor(gang)
    local message2 = "(GMOTD) "..getPlayerName(player).." has set the GMOTD to: #FFFFFF"..message
    if (canPlayerDoActionInGroup(player, "smotd")) then
        local accountGmotd = getAccount("intercore")
        setAccountData(accountGmotd, "groupMOTD"..gang, getPlayerName(player)..": "..message)
        messageGang(gang, message2)
        exports.CIPtexts:output("You successfully changed group MOTD", player, 0, 255, 0, false)
    end
end
addCommandHandler("smotd", editGroupMOTD)
function showGroupMOTD()
    local gang = getPlayerGang(source)
    local account = getAccount("intercore")
    if (not gang) then return end
    local message = getAccountData(account, "groupMOTD"..gang)
    local message2 = "(GMOTD) "..message
    local r, g, b = getGangChatColor(gang)
    outputChatBox(message2, source, r, g, b)
end
addEventHandler("onPlayerLogin", getRootElement(), showGroupMOTD)
 
Anyone plz fix me this
Link to comment
2 hours ago, FiGo said:
function gangChatStaff(player, cmd, ...)
    local gang = getPlayerGang(player)
    if (isPlayerMuted(player)) then
     outputChatBox("You are muted!", plr, 255, 0, 0) return end
    if (not canPlayerDoActionInSquad(player, "GroupStaffChat")) then return end
    if (not gang) then return end
    if (not ...) then return end
    local message = table.concat({...}, " ")
    local r, g, b = getGangChatColor(gang)
    local message2 = "(SSC) "..getPlayerName(player)..": #FFFFFF"..message
    for k, v in pairs(getGangMembers(gang)) do
     if (canPlayerDoActionInSquad(k, "GroupStaffChat")) then
      outputChatBox(message2.."", k, r, g, b, true)
      exports.CIPadmin:writePlayerLog(player, "SSC (Squad) "..getPlayerName(player)..": ".. table.concat({...}, " "), "squads")
  end
 end
    exports.CIPadmin:outputOnlineStaff("SSC ("..gang..") "..getPlayerName(player)..": ".. table.concat({...}, " "), 255, 255, 255)
end
addCommandHandler("ssc", gangChatStaff)
function editGroupMOTD(player, cmd, ...)
    local gang = getPlayerGang(player)
    if (not canPlayerDoActionInGroup(player, "gmotd")) then return end
    if (not gang) then return end
    if (not ...) then return end
    local message = table.concat({...}, " ")
    local r, g, b = getGangChatColor(gang)
    local message2 = "(GMOTD) "..getPlayerName(player).." has set the GMOTD to: #FFFFFF"..message
    if (canPlayerDoActionInGroup(player, "smotd")) then
        local accountGmotd = getAccount("intercore")
        setAccountData(accountGmotd, "groupMOTD"..gang, getPlayerName(player)..": "..message)
        messageGang(gang, message2)
        exports.CIPtexts:output("You successfully changed group MOTD", player, 0, 255, 0, false)
    end
end
addCommandHandler("smotd", editGroupMOTD)
function showGroupMOTD()
    local gang = getPlayerGang(source)
    local account = getAccount("intercore")
    if (not gang) then return end
    local message = getAccountData(account, "groupMOTD"..gang)
    local message2 = "(GMOTD) "..message
    local r, g, b = getGangChatColor(gang)
    outputChatBox(message2, source, r, g, b)
end
addEventHandler("onPlayerLogin", getRootElement(), showGroupMOTD)
 
Anyone plz fix me this

Please Use lua tag ,

and let us to see debug ..

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...