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: antyspam
1. AntySpam
Witam jak zrobic ze jak ktos wpisze bardzo szybko /pm do dostanie kicka?
Znalazlem takie co? i jak spamie na chat to mutuje ale na pm to nie


antiSpam 
= {} 
function 
antiChatSpam() 
    if 
isTimer(antiSpam[source]) then
        cancelEvent
()  
        
outputChatBox("#ffffff"..getPlayerName(source).." #0000ff Chce Zaspamowac serwer! "..getPlayerName(source).." Zosta? zablokowany na: 1 min", getRootElement(), 255, 255, 0,true) 
        
setPlayerMuted(source, true)
        
setTimer ( autoUnmute, 30000, 1, source)
    else
        
antiSpam[source] = setTimer(function(source) antiSpam[source] = nil end, 1000, 1, source) 
    
end
end
addEventHandler
("onPlayerChat", root, antiChatSpam)