Jump to content

Search the Community

Showing results for tags 'anti flood'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. Eu configuro tudo certinho o anti flood e mesmo assim da erro, eu envio a mensagem, não aparece a mensagem mas aparece a mensagem do anti flood dizendo "Você tem que esperar 5 segundos para digitar novamente!" Você pode ver nessa imagem: http://prntscr.com/n8k9vw Meu código é esse: ComandoDoChatGlobal = "twitter" local timerTempo = {} local timerChamar = 5000 function adminchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then if timerTempo[thePlayer] and timerTempo[thePlayer] + timerChamar > getTickCount() then outputChatBox ( "Aguarde 5 segundos para digitar novamente!", thePlayer, 255, 0, 0) return else timerTempo[thePlayer] = getTickCount() end local ID = getElementData(player, "ID") or "N/A" if getElementData (thePlayer, "Staff") then outputChatBox("#00BFFF[#00BFFFTwitter#00BFFF] #26539d*Staff -#ffffff "..getPlayerName(thePlayer).."["..ID.."]#ffffff:#ffffff "..message, player, 255, 255, 255, true) elseif not getElementData (thePlayer, "Staff") then outputChatBox("#00BFFF[#00BFFFTwitter#00BFFF]#ffffff "..getPlayerName(thePlayer).."["..ID.."]#ffffff:#ffffff "..message, player, 255, 255, 255, true) end end end end end addCommandHandler ( ComandoDoChatGlobal, adminchat )
×
×
  • Create New...