Wysłany: 2013-04-02, 18:38
Seba978
Wiek: 33 Na forum: 4818 dni Posty: 9
Nick w MP: kolo
Jak mam to poprwai? ?
Kod:
function afkKick(player)
kickPlayer(player,"AFK")
end
daje zimne
Wysłany: 2013-04-02, 19:05
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
O co chodzi? Kod jest dobry, rozwi? o co Ci chodzi...
Wysłany: 2013-04-02, 19:29
Seba978
Wiek: 33 Na forum: 4818 dni Posty: 9
Nick w MP: kolo
pisze tak "Seba has been killed by the AFK killer [4/3]"
a powinno doj?? do 3/3 i kikna? a nie kika
Wysłany: 2013-04-02, 19:32
emil880
Wiek: 30 Na forum: 5844 dni Posty: 107
Nick w MP: None
Piwa : 74
Wysłany: 2013-04-02, 19:55
Seba978
Wiek: 33 Na forum: 4818 dni Posty: 9
Nick w MP: kolo
l Kod: ocal raceState = ""
local enableMessages = true
local messageColor = "#FF5555"
function afkMsg(mtype,afkCount)
if(mtype == 1) then
outputChatBox("#0000ff* #FFFFFF".. getPlayerName(source).. "#0000ff has been killed by the #FFFFFFAFK killer#0000ff #0000ff[#ABCDEF"..afkCount.."/3#0000ff]",getRootElement(),255,255,255,true)
elseif(mtype == 2) then
outputChatBox("#0000ff* #FFFFFF".. getPlayerName(source).. "#0000ff has been kicked for staying #FFFFFFAFK#0000ff for 3 rounds!",getRootElement(),255,255,255,true)
end
end
addEvent( "afkWarn", true )
addEventHandler( "afkWarn", getRootElement(), afkMsg)
function afkKill()
local thePlayer = source
callClientFunction(thePlayer,"setKBA",thePlayer)
setElementHealth(source, 0)
end
addEvent( "afkSlap", true )
addEventHandler( "afkSlap", getRootElement(), afkKill)
function changeRaceState(newStateName)
raceState = newStateName
end
addEvent("onRaceStateChanging", true)
addEventHandler( "onRaceStateChanging", getRootElement(), changeRaceState)
function afkKick(player)
kickPlayer(player,"AFK")
end
addEvent( "afkKick", true)
addEventHandler( "afkKick", getRootElement(), afkKick)
function clientLoaded()
local msgenable = get( "msgenable" )
local msgcol = get( "msgcolor" )
if(msgenable) then
if(msgenable == "true") then
enableMessages = true
else
enableMessages = false
end
if(msgcol) then
messageColor = msgcol
end
end
local maxtime = get( "maxafktime" )
local wtime = get( "warnTime" )
triggerClientEvent ( "onSettingsReady", getRootElement(), maxtime, wtime)
end
addEvent("onClientLoaded", true)
addEventHandler( "onClientLoaded", getRootElement(), clientLoaded)
Wysłany: 2013-04-03, 14:07
Piorun
Wiek: 32 Na forum: 6712 dni Posty: 1837
Nick w MP: Piorun
Piwa : 516
Wysłany: 2013-04-03, 14:59
Seba978
Wiek: 33 Na forum: 4818 dni Posty: 9
Nick w MP: kolo
tak ale kupi?em to by?o razem z panelem race
Wysłany: 2013-04-07, 10:52
PanGrzybulek
Wiek: 28 Na forum: 4823 dni Posty: 47
Nick w MP: Mentosik
Piwa : 3
Kod: function afkKill()
local thePlayer = source
callClientFunction(thePlayer,"setKBA",thePlayer)
setElementHealth(source, 0)
end
addEvent( "afkSlap", true )
addEventHandler( "afkSlap", getRootElement(), afkKill)
Juz znasz odpowiedz? Sprobuj te zdarzenia usunac, i zrestartuj skrypt.
Tagi: afk
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: