Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: spam
1. anty spam
witam chc? zrobi? system anty spam lecz nie chc? ?e po 1 napisaniu w??cza si? anty spam tylko po wys?aniu 10 wiadomo?ci na okres 30 s kod [lua]
--[[
Resource: OURGame
Developers: Split <[email protected]>
Copyright <[email protected]> 2015-2016
You have no right to use this code without my permission.
]]
wiadomosci= {}
words = {"22003",":220","78.157","23.235","22015","22010","22020","22017","mtasa://"}

local czas = 1*60*1000 --1 minuta


local getplayernamex = getPlayerName

local function getPlayerName(plr)
if not plr then return end
if isElement(plr) then
return getplayernamex(plr):gsub("#%x%x%x%x%x%x","")
end
end

function getPlayerName2(plr)
if not plr then return end
if isElement(plr) then
return getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
end
end

local function wtf(player)
if not player then return end
if isElement ( player ) then
if not wiadomosci[player] then return end
wiadomosci[player].text = nil;
wiadomosci[player].warnings = 0
end
end


function sprawdzmute(plr,msg)
if not wiadomosci[plr] then
wiadomosci[plr] = {
lastmessage = { },
text = { },
toggle = false,
unmute = { },
warnings = 0,
}
end
if wiadomosci[plr].warnings >= 6 then
kickPlayer(plr,"SPAM")
tr...
2. Nie dziala anty spam do
Witam mam mianowicie problem kiedy chce dodac tak? funkcj?:

 function cmd_blokada(plr)
  if 
getElementData(plr"mutespamer") == 2 then return end
  setElementData
(plr"mutespamer"2)
  
setTimer(function()
    
setElementData(plr"mutespamer"false)
  
end30001


Do komendy -

addCommandHandler('do', function(sourcecmd, ...)
    
local text=table.concat({...}, ' ')
    if 
not text then return end
        
if ninjaban(textthen
        triggerClientEvent
(root"admin:rendering"root"* "..getPlayerName(source).."("..getElementData(source,"id")..") zosta?(a) wyrzucony(a) przez system. Powod: Reklama")
        
kickPlayer (source"System:Reklama")
        return 
end
    local msg
=table.concat({...}, " ")
    
local x,y,z=getElementPosition(source)
    
local sphere=createColSphere(x,y,z30)
    
local players=getElementsWithinColShape(sphere'player')
    
destroyElement(sphere)

    for 
i,v in ipairs(players) do
        
outputChatBox("*(( "..getPlayerName(source):gsub("#%x%x%x%x%x%x","").." "..msg.."))"v25551102)
        
triggerClientEvent("onDebugMessage"resourceRoot"*(( "..getPlayerName(source):gsub("#%x%x%x%x%x%x","").." "..msg.."))",1"/ME")
    
end
end
)


Mo?e kto? pom?c? :/ Wynagrodz? piwkiem + respekt.
3. ANTY SPAM CMD
Witam ot?? prosi?bym o skrypt ANTY-SPAM CMD, chodzi mi g??wnie o to je?eli kto? komu? spamowa? by na /pm to ?eby go kickowa?o, bardzo prosz?. Za dobry skrypt stawiam zimne piwko !
4. Skrypt na spam
Witam posiadam skrypt na anty spam, dzia?a tylko tak ?e jak kto? zaspami na czacie to dostaje mute, ale jak zrobi? go tak aby te? dodawa?o mute jak zaspami na pm? Tak jakby anty reklama

Kod:

 
&#65279;antiSpam = {} 
function antiChatSpam() 
    if 
isTimer(antiSpam[source]) then
        cancelEvent
()  
        
outputChatBox("#ffffff"..getPlayerName(source).." #ff6600Zosta?e? wyciszony za spam na chacie! ( 30 sekund )"source2552550,true
        
setPlayerMuted(sourcetrue)
        
setTimer autoUnmute150001source)
    else
        
antiSpam[source] = setTimer(function(sourceantiSpam[source] = nil end15001source
    
end
end
addEventHandler
("onPlayerChat"rootantiChatSpam)


function 
autoUnmute player )
    if ( 
isElement player ) and isPlayerMuted player ) ) then
        setPlayerMuted 
playerfalse )
        
outputChatBox ("#FFFFFF"..getPlayerName player ).." #ff6600Zosta?e? odciszony !",player2552550,true )
    
end
end
5. Spam
Witam na serwerze jest cz?sto atak w postaci spamu reklam? :/
I teraz pytanie jak zrobic Anty spam?
Chodzi mi ze jak ktos napisze Bardzo szybko z 20 razy /global albo /pm To dostanie bana za Reklame
6. anty spam
Poda z was kto? funkcje i zdarzenia kt?re s? potrzebne na zrobienie anty-spamera?











:piwo: w nagrode
7. Spam
Witam, mam tutaj sw?j skrawek kodu kt?ry mi nie dzia?a, wpisuj? go na razie w freeroama i nic, gdy bindami spami? nic si? nie blokuje, prosi?bym o poprawk? kodu lub o jaki? lepszy kod.


addEventHandler
("onPlayerChat",root,function ()
if 
getElementData(source,"blockspam"then
local sekundy 
getElementData(source,"blockspam")
cancelEvent()
outputChatBox("Odczekaj "..sekundy.." zanim co? napiszesz.",source,255,255,255,true)
else
local player source
setElementData
(source,"blockspam",5)
setTimer(function () setElementData(player,"blockspam",4end,1000,1)
setTimer(function () setElementData(player,"blockspam",3end,2000,1)
setTimer(function () setElementData(player,"blockspam",2end,3000,1)
setTimer(function () setElementData(player,"blockspam",1end,4000,1)
setTimer(function () setElementData(player,"blockspam",nilend,5000,1)
end
end
)
8. Anty Spam Mute
Witam! Chce zrobi? skrypt kt?ry mutuje graczy na 2min po tym jak dadz? 3 wiadomo?ci pod rz?d, lecz nie wiem jak ;/

Wiem, ?e musze u?y? funkcji setPlayerMuted i setTimer

Prosi?bym o jakie? naprowadzenie mnie jak to zrobic
9. [INNE] Anty Przeklinanie, spam, flood, ip, www
Siema, pobra?em taki skrypt ale niestety nie dzia?a. wszystkie przekle?stwa s? w pliku w scriptfiles. Ale da si? skomplikowa? i wrzuci? na serwer, ale nie dzia?a.
Je?li kto? wie jak prosz? aby jeszcze by?o co? takiego, ?e jak kto? przeklnie to si? napisze: " Kocham Head Admina steo :) " <<< tak ?eby mu przypa? zrobi? troch? ;]

Oto kod:


#include <a_samp>
#include <zcmd>
#include <dini>

new lastplayer,
lasttimer,
lastip[18];

static iPlayerChatTime[20];
static szPlayerChatMsg[20][128];

#define SCM SendClientMessage
#define SCMTA SendClientMessageToAll
#define Loop(%1,%2) for(new %1 = 0; %1 < %2; %1++)

#define COLOR_WHITE 0xFFFFFFC8
#define COLOR_LVIOLET 0x8080FFC8
#define COLOR_LGREEN 0x00FF00C8

#define WHITE "{FFFFFF}"
#define L_VIOLET "{8080FF}"
#define YELLOW "{DDDD22}"
#define L_GREEN "{00FF00}"


new Swears[50][128];
new num_words = 0;

public OnFilterScriptInit()
{
print(" *** Anti spam by Combat Loaded ***");
print(" *** Anti Swear by Combat Loaded ***");
print(" *** Anti flood by Combat Loaded ***");
print(" *** Anti ad by Combat Loaded ***");
print(" *** Anti bot by Combat Loaded ***");

new string[128], File:file;
if((file = fopen("swear.ini",io_read)))
{
while(fread(file,string))
{
for(new i = 0, j = strlen(string); i < j; i++) i...
10. [INNE] UpdateVehicleFuelMileageTD spam w server_log
Siema.
W server_log mam spam errorami typu:
Cytat:

(TimerFix) ERROR: The function "UpdateVehicleFuelMileageTD" didn't properly execute, some timers might not have been called.

Co to oznacza i jak to naprawi??
11. [DM] Spam wejsciem / wyjsciem graczy oraz boty..
Witam od pewnego czasu na moim serwerze kto? wbija z botami.Zauwa?y?am ?e na innych serwerach r?wnie?. Nie chc? przenosi? PGS na 0.3e poniewa? na 0.3d mam sporo graczy i przez ca?y dzie? serwer by? prawie pe?en do pewnego dnia...
Problem dotyczy spamu botami na czacie oraz wyj?cia /wejscia tak jak tutaj:
http://tinypic.com/r/2q1h43m/6 . Prosz? o pomoc w zabezpieczeniu Gamemoda.