Jump to content

حل مشكلة


Recommended Posts

السلام عليكم ورحمة الله وبركاته

سويت مود الافك

المشكلة الان مسوي عندما الماب يشتغل

ان كانت معه داتا الافك

يقتل الاعب

لكن عندما الماب يشتغل ما يصير شيئ وما يموت الاعب

ومتأكد من وجود الداتا

addEventHandler("onMapLoad",root,function() 
    if getElementData(source,"afk",true) then 
        killPlayer(source) 
    end 
end) 

Link to comment
addEventHandler("onMapLoad",root,function() 
    if getElementData(source,"afk") then 
        killPlayer(source) 
    end 
end) 

شكراً لك لكن ما يشتغل

addCommandHandler("hl", 
function(p) 
if getElementData(p,"afk") then 
outputChatBox("لديك الداتا",p) 
else 
outputChatBox("ليس لديك الداتا",p) 
end 
end) 

حط ذا الكود كلنت

واكتب hl

وشوف وش يظهر وقول لي

Link to comment

يجيني

لديك الداتا

addCommandHandler("afk",function(source) 
if getElementData(source,"afk",true) then 
    local name = getPlayerName(source) 
            outputChatBox("[AFK]The Player ["..name.."] Was Back#!",root,0,255,0) 
        setElementData(source,"afk",false) 
else 
    local name = getPlayerName(source) 
        setElementData(source,"afk",true) 
            outputChatBox("[AFK]The Player ["..name.."] Was AFK!!",root,255,0,0) 
    end 
end) 
  

اكواد الافك

Link to comment

متأكد من كل شيئ

الاكواد كاملة

addCommandHandler("afk",function(source) 
if getElementData(source,"afk",true) then 
    local name = getPlayerName(source) 
            outputChatBox("[AFK]The Player ["..name.."] Was Back#!",root,0,255,0) 
        setElementData(source,"afk",false) 
else 
    local name = getPlayerName(source) 
        setElementData(source,"afk",true) 
            outputChatBox("[AFK]The Player ["..name.."] Was AFK!!",root,255,0,0) 
    end 
end) 
  
addEventHandler("onMapLoad",root,function() 
    if getElementData(source,"afk") == true then 
        killPlayer(source) 
    end 
end) 
  
addCommandHandler("hl", 
function(p) 
if getElementData(p,"afk") then 
outputChatBox("لديك الداتا",p) 
else 
outputChatBox("ليس لديك الداتا",p) 
end 
end) 

اليمتا

  

    "jaber" version="1.0" type="script" name="AFK System" description="AFK......" /> 
    

Link to comment
يجيني

لديك الداتا

addCommandHandler("afk",function(source) 
if getElementData(source,"afk",true) then 
    local name = getPlayerName(source) 
            outputChatBox("[AFK]The Player ["..name.."] Was Back#!",root,0,255,0) 
        setElementData(source,"afk",false) 
else 
    local name = getPlayerName(source) 
        setElementData(source,"afk",true) 
            outputChatBox("[AFK]The Player ["..name.."] Was AFK!!",root,255,0,0) 
    end 
end) 
  

اكواد الافك

addCommandHandler("afk",function(source) 
if getElementData(source,"afk") == true then 
    local name = getPlayerName(source) 
            outputChatBox("[AFK]The Player ["..name.."] Was Back#!",root,0,255,0) 
        setElementData(source,"afk",false) 
else 
    local name = getPlayerName(source) 
        setElementData(source,"afk",true) 
            outputChatBox("[AFK]The Player ["..name.."] Was AFK!!",root,255,0,0) 
    end 
end) 
  

Link to comment
addCommandHandler("afk",function(source) 
if getElementData(source,"afk",true) then 
    local name = getPlayerName(source) 
            outputChatBox("[AFK]The Player ["..name.."] Was Back#!",root,0,255,0) 
        removeElementData(source,"afk") 
else 
    local name = getPlayerName(source) 
        setElementData(source,"afk") 
            outputChatBox("[AFK]The Player ["..name.."] Was AFK!!",root,255,0,0) 
    end 
end) 
  
addEventHandler("onMapLoad",root,function() 
setTimer(function() 
    if getElementData(source,"afk") == true then 
        killPlayer(source) 
end,20000,1) 
    end 
end) 
  
addCommandHandler("hl", 
function(p) 
if getElementData(p,"afk") then 
outputChatBox("لديك الداتا",p) 
else 
outputChatBox("ليس لديك الداتا",p) 
end 
end) 
  

جرب

Link to comment

killPlayer -> This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.

Please use killPed instead.

addEventHandler("onMapLoad",root,function() 
    if getElementData(source,"afk") then 
        killPed(source) 
    end 
end) 

في هذا الحدث هو اللاعب تأكد source أنا أشك أن الـ

Link to comment
addCommandHandler("afk",function(source) 
if getElementData(source,"afk",true) then 
    local name = getPlayerName(source) 
            outputChatBox("[AFK]The Player ["..name.."] Was Back#!",root,0,255,0) 
        removeElementData(source,"afk") 
else 
    local name = getPlayerName(source) 
        setElementData(source,"afk") 
            outputChatBox("[AFK]The Player ["..name.."] Was AFK!!",root,255,0,0) 
    end 
end) 
  
addEventHandler("onMapLoad",root,function() 
setTimer(function() 
    if getElementData(source,"afk") == true then 
        killPed(source) 
end,20000,1) 
    end 
end) 
  
addCommandHandler("hl", 
function(p) 
if getElementData(p,"afk") then 
outputChatBox("لديك الداتا",p) 
else 
outputChatBox("ليس لديك الداتا",p) 
end 
end) 
  

جرب

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...