Jump to content

Zoeken

Resultaten weergeven voor de tags 'scripts script afk help mta'.

  • Zoeken op tags

    Typ tags gescheiden door komma's.
  • Zoeken op auteur

Type bijdragen


Forum

  • Forum
    • GTAGames.nl Netwerk
    • Grand Theft Auto & Red Dead
    • Overig
    • Ledenfora

Blogs

  • Mazzeltje
  • AWN
  • Marius z'n Blogje
  • .Levi.
  • OWN
  • Blog owners manual
  • WikiGTA
  • GTA Martineza
  • The Gunslingers
  • Jarno blog
  • Jowx' Blog
  • GTA2 Warzone
  • GTA-Sheep is jarig!
  • GTA Mafia Stories
  • Project's en co. - E3 Blog
  • ICT
  • Joriz Blog
  • GTAforum Verhalen
  • GFX Spot
  • The Yakuza
  • Web-dev & Programmeren
  • Rick Roll!
  • F1 News Bulletin
  • Thundertje's Blog
  • Arjen's Blog
  • The DuckDome
  • GamesThug.com
  • De Schijtlama's
  • ML Awards
  • MAF
  • Overclocking 2.0
  • blogs_blog_42
  • The Gunslingers
  • Beat Down Blog
  • LibertyKillerZ
  • PPL
  • FireFoxer
  • The Royal Guardian
  • AIRSICK Magazine.
  • De Zoepketel
  • Hoe te deleten?
  • The Covesight Community Blog
  • Fiegel's Projects
  • Gold Rush Blog
  • GTA Martineza (PUBLIC)
  • Marius z'n Blogje (PUBLIC)
  • OWN Testblog
  • OWN (PRIVATE CLUB)
  • Leeg
  • LibertyKillerZ Privé
  • Rick Roll! (PUBLIC)
  • Web-dev & Programmeren (PRIVATE CLUB)
  • Thundertje's Blog (PRIVATE)
  • Thundertje's Blog (PRIVATE CLUB)
  • FireFoxer (PRIVATE CLUB)
  • Blogs
  • Testblog
  • Wollepluis
  • Opinieblad
  • Death Blog
  • Death Inc Ledensectie
  • PC Clan Events
  • XBOX 360 Clan Events
  • CrewLife
  • Sprunk & Co Computertips
  • Graphics Blog
  • FTF Storylines archief
  • Cosily Club
  • CO-omgeving
  • Club Duck
  • Leeg
  • Forumpoker
  • Development Blog
  • Koeien en kalveren en dingen enzo
  • Covesight Propaganda
  • OWN Lustrum
  • The FL Studio Blog
  • Guard's Blog
  • JOB
  • Svenie's Blog
  • MD's Blog
  • Winning Shot
  • BBB - Bassieboy's Blog
  • Boer's Hok
  • Application Narrator
  • Phoenomena
  • Speratyal Fantasy
  • Sans Scrupules
  • The Underground
  • Everybody loves Joey
  • Sport Blog
  • Geen mening
  • Inactief
  • The Oceans Blog
  • The Oceans Kladpapier
  • The Oceans Casino
  • The Oceans Casino - Medewerkers
  • Joriz's Blog 2
  • Overig
  • Eliology
  • Top 20
  • Illuminati
  • Asphy's blog
  • Votairs blog
  • ERRWINS' Blog
  • Nick's Life in a Blog
  • Jaarboek 2016
  • WIDM
  • Michael's Fotogalerij
  • The Independent
  • The Criminal Legends Blog
  • Pit of insanity
  • De Koning
  • Idk... It's mine
  • Aron’s Schrijfkrabbels
  • Actief
  • InsideGTA
  • NicolaB's Blog
  • De Kamer van Klank
  • De Blog

Categorieën

  • Grand Theft Auto VI
  • Grand Theft Auto V
    • Modificaties
    • Trainers
    • Save Games
  • Grand Theft Auto IV
    • Save Games PS3
    • Save Games PC
    • HD Trailers
    • Patches
    • Modificaties
    • Editors en Tools
  • Chinatown Wars
    • PSP Save Games
  • GTA Vice City Stories
    • Save Games PSP
    • Trainers
  • GTA Liberty City Stories
    • Save Games PSP
    • Trainers & Tools
  • GTA San Andreas
    • Editors en Tools
    • Modificaties
    • Save Games Android / iOS
    • Save Games PC
    • Save Games PS2
    • Trainers
  • GTA Vice City
    • Editors en Tools
    • Trainers
    • Save Games
    • Modificaties
  • Grand Theft Auto III
    • Modificaties
    • Skins
    • Save Games
    • Trainers
    • Editors en Tools
  • GTA2
    • Editors en Tools
    • Modificaties
  • Grand Theft Auto
    • Editors en Tools
  • Handige Tools en bestanden
  • DE GROTE GTAGAMES.NL ZOMERACTIE!

Categories

  • GTA Online
  • GTA+ voordelen
  • Red Dead Online

Categories

  • Grand Theft Auto
  • Rockstar Games
  • Community
  • Red Dead Redemption
  • GTA Online Events
  • Grand Theft Auto VI

Product Groups

Er zijn geen resultaten om weer te geven.


Resultaten zoeken in...

Resultaten zoeken die...


Startdatum

  • Begin

    Einde


Laatste bewerking

  • Begin

    Einde


Filteren op aantal...

1 resultaat gevonden

  1. nlmarkoesnl

    Heb een fout in AFK script!

    Hallo allemaal! ten eerste wil ik zeggen, Mooi forum! Nu de 2e wat ik wil zeggen/vragen, het gene waarvoor ik ben gekomen: Ik heb een AFK script! Alles doet het prima! hij laat de image zien als degene afk is, en als ie dan gekild work, dat het ook in de chat is te zien ! bijv: henkie has been killed by the afk warning [1/3] <| En bij [3/3] zou de player gekickt moeten worden, Maar dat gebeurt dus niet! in de server geeft hij aan > acces denied @ "kickplayer" < Ik heb er naar gekeken, maar ik krijg het niet voor elkaar omhet te fixen. Zou iemand misschien even kunnen kijken wat er fout zit? alvast bedankt! Scripts: Main_server.lua: ---------------------------------------------- -- AFK killer - extended from clienside script ---------------------------------------------- local raceState = "" local enableMessages = true local messageColor = "#98F5FF" function afkMsg(mtype,afkCount) if(mtype == 1) then outputChatBox("#0000ff* #FFFFFF".. getPlayerName(source).. "#0000ff has been killed by the #FFFFFFAFK killer#0000ff #0000ff[#98F5FF"..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 Main_client.lua: ------------- -- AFK killer ------------- local MaxAFKtime = 30 local warnTime = 20 local v = 0 local AFKtime = 0 local sx,sy = guiGetScreenSize() local wEvent = false function rWarn() dxDrawImage( sx/2 - 300, sy/2 - 100, 600, 200, "img/warn.png") dxDrawText("You will be killed in "..tostring(tCount).." seconds",sx/2 - 255, sy/2 + 45,sx,sy,tocolor(0,222,222,222),1.01,"bankgothic") end function stopWarn() if(wEvent) then removeEventHandler("onClientRender", getRootElement(), rWarn) wEvent = false end end function imgHandler() stopWarn() end addEventHandler("onClientPlayerWasted",getLocalPlayer(),imgHandler) function checkMain() if isPedInVehicle ( getLocalPlayer() ) then aTimeAdd() end end function aTimeAdd() AFKtime = AFKtime + 1 local isFinished = getElementData ( getLocalPlayer(), "dead") if(isElementFrozen ( getPedOccupiedVehicle ( getLocalPlayer() )) and isFinished == false) then aTimeClear() end local isNew = getElementData (getLocalPlayer(), "state") if isNew == "waiting" or isNew == "dead" then aTimeClear() end if(getPedOccupiedVehicle ( getLocalPlayer() ) ~= false) then local player = getLocalPlayer() if(AFKtime >= MaxAFKtime) then if (afkCounter <= 2) then triggerServerEvent ( "afkWarn", player, 1, afkCounter) afkCounter = afkCounter+1 triggerServerEvent ( "afkSlap", player) stopWarn() elseif (afkCounter > 2) then triggerServerEvent ( "afkWarn", player, 1, afkCounter) triggerServerEvent ( "afkWarn", player, 2) afkCounter = 1 triggerServerEvent ( "afkKick", player, 3,player) end elseif(AFKtime >= warnTime) then tCount = tCount - 1 if(not wEvent) then addEventHandler("onClientRender", getRootElement(), rWarn) wEvent = true end end end end setTimer ( checkMain, 1000, -1) function aTimeClear() AFKtime = 0 tCount = 11 stopWarn() end bindKey("accelerate","down",aTimeClear) bindKey("vehicle_left","down",aTimeClear) bindKey("vehicle_right","down",aTimeClear) bindKey("brake_reverse","down",aTimeClear) function onClientLoaded(res) triggerServerEvent("onClientLoaded",getLocalPlayer()) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),onClientLoaded) function loadSettings(maxtime, wtime ) MaxAFKtime = tonumber(maxtime) warnTime = tonumber(wtime) end addEvent( "onSettingsReady", true ) addEventHandler( "onSettingsReady", getRootElement(), loadSettings ) function setKBA(thePlayer) killedByAfk = 1 end function getKBA(thePlayer) if killedByAfk == 0 then thePlayer = getLocalPlayer() callServerFunction("earnMoney", thePlayer) end end function deathReset() if killedByAfk == 0 then afkCounter = 1 else end end addEventHandler("onClientPlayerWasted",getLocalPlayer(),deathReset) function resetKBA() killedByAfk = 0 end >>> Door .Timothy: Verplaatst naar Multi Theft Auto.<<<
×
×
  • Create New...