Jump to content

ابغى كود لو سمحتم


avast4646

Recommended Posts

ابغى اسوي اللاعب لما يسوي cjoin ويلعب ويموت

لمايكتبها ثاني ماينفع يدخل ثاني

addCommandHandler ("cjoin", function (plr) 
if getElementData( plr, "Group" ) == "[A7rAr]" and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
if getElementData(plr, "Stats") >= 2 then return end 
if getElementDimension(plr) >= 1 then return end 
setElementDimension(plr, 1723) 
setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
resetHealthArmy (plr,200) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, CrTable) 
end 
end 
) 

Link to comment
addEventHandler("onPlayerWasted", root, 
function(_, killer) 
    if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then 
        if killer and getElementType(killer) == "player" then 
            setElementData(source, "Cjoin", false) 
            TopKill[killer] = (TopKill[killer] or 0) + 1 
            TopKill[source] = TopKill[source] or 0 
            output(root, "#C38EC7[Gta-Ax Champions] #FA8072"..getPlayerName(killer).." #808080(#FFFF00"..TopKill[killer].." Kills#808080) Killed #9ACD32"..getPlayerName(source).." #808080(#FFFF00"..TopKill[source].." Kills#808080) ", 0, 10, 255) 
            end 
        end 
        if getPlayerTeam(source) == getTeamFromName("Mafia") then 
            RemovePlayer(source, CrTable) 
        elseif getPlayerTeam(source) == getTeamFromName("Rifa") then 
            RemovePlayer(source, PoTable) 
        end 
end) 
  
addCommandHandler ("cjoin", function (plr) 
if getElementData( plr, "Group" ) == "[A7rAr]" and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
if getElementData(plr, "Stats") >= 2 then return end 
if getElementDimension(plr) >= 1 then return end 
if getElementData(plr, "Cjoin", false) then return end 
setElementDimension(plr, 1723) 
setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
resetHealthArmy (plr,200) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, CrTable) 
end 
end 
) 

وين الخطا

Link to comment
addEventHandler("onPlayerWasted", root, 
function(_, killer) 
    if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then 
        if killer and getElementType(killer) == "player" then 
            setElementData(source, "Cjoin", false) 
            TopKill[killer] = (TopKill[killer] or 0) + 1 
            TopKill[source] = TopKill[source] or 0 
            output(root, "#C38EC7[Gta-Ax Champions] #FA8072"..getPlayerName(killer).." #808080(#FFFF00"..TopKill[killer].." Kills#808080) Killed #9ACD32"..getPlayerName(source).." #808080(#FFFF00"..TopKill[source].." Kills#808080) ", 0, 10, 255) 
            end 
        end 
        if getPlayerTeam(source) == getTeamFromName("Mafia") then 
            RemovePlayer(source, CrTable) 
        elseif getPlayerTeam(source) == getTeamFromName("Rifa") then 
            RemovePlayer(source, PoTable) 
        end 
end) 
  
addCommandHandler ("cjoin", function (plr) 
if getElementData( plr, "Group" ) == "[A7rAr]" and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
if getElementData(plr, "Stats") >= 2 then return end 
if getElementDimension(plr) >= 1 then return end 
if getElementData(plr, "Cjoin", false) then return end 
setElementDimension(plr, 1723) 
setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
resetHealthArmy (plr,200) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, CrTable) 
end 
end 
) 

وين الخطا

فاهم ال

return end 

غلط كودك شي طبيعي ماراح يشتغل

لانك مسوي

return end 

احذف الريتيورن

Link to comment
addEventHandler("onPlayerWasted", root, 
function(_, killer) 
    if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then 
        if killer and getElementType(killer) == "player" then 
            setElementData(source, "Cjoin", false) 
            TopKill[killer] = (TopKill[killer] or 0) + 1 
            TopKill[source] = TopKill[source] or 0 
            output(root, "#C38EC7[Gta-Ax Champions] #FA8072"..getPlayerName(killer).." #808080(#FFFF00"..TopKill[killer].." Kills#808080) Killed #9ACD32"..getPlayerName(source).." #808080(#FFFF00"..TopKill[source].." Kills#808080) ", 0, 10, 255) 
            end 
        end 
        if getPlayerTeam(source) == getTeamFromName("Mafia") then 
            RemovePlayer(source, CrTable) 
        elseif getPlayerTeam(source) == getTeamFromName("Rifa") then 
            RemovePlayer(source, PoTable) 
        end 
end) 
  
addCommandHandler ("cjoin", function (plr) 
if getElementData( plr, "Group" ) == "[A7rAr]" and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
if getElementData(plr, "Stats") >= 2 then return end 
if getElementDimension(plr) >= 1 then return end 
if getElementData(plr, "Cjoin", false) then  end 
setElementDimension(plr, 1723) 
setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
resetHealthArmy (plr,200) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, CrTable) 
end 
end 
) 

نفس المشكلة

يقدر يدخل لها مجددا لما يموت

Link to comment
addEventHandler("onPlayerWasted", root, 
function(_, killer) 
    if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then 
        if killer and getElementType(killer) == "player" then 
            setElementData(source, "Cjoin", false) 
            TopKill[killer] = (TopKill[killer] or 0) + 1 
            TopKill[source] = TopKill[source] or 0 
            output(root, "#C38EC7[Gta-Ax Champions] #FA8072"..getPlayerName(killer).." #808080(#FFFF00"..TopKill[killer].." Kills#808080) Killed #9ACD32"..getPlayerName(source).." #808080(#FFFF00"..TopKill[source].." Kills#808080) ", 0, 10, 255) 
            end 
        end 
        if getPlayerTeam(source) == getTeamFromName("Mafia") then 
            RemovePlayer(source, CrTable) 
        elseif getPlayerTeam(source) == getTeamFromName("Rifa") then 
            RemovePlayer(source, PoTable) 
        end 
end) 
  
addCommandHandler ("cjoin", function (plr) 
if getElementData( plr, "Group" ) == "[A7rAr]" and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
if getElementData(plr, "Stats") >= 2 then return end 
if getElementDimension(plr) >= 1 then return end 
if getElementData(plr, "Cjoin", false) then  end 
setElementDimension(plr, 1723) 
setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
resetHealthArmy (plr,200) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, CrTable) 
end 
end 
) 

نفس المشكلة

يقدر يدخل لها مجددا لما يموت

ارجع واقولك فاهم الريتيورن غلط

هذي تستخدمها لو ماتحقق الشي تسوي ريتيورن ايند

انت الحين متحقق من العالم الوهمي حقه فوق 1 ومسوي ريتيورن ايند يعني راح يوقف وماراح يرجع للداتا

المهم جرب ذا وياريت لو توضح الي تبي تسويه

addEventHandler("onPlayerWasted", root, 
function(_, killer) 
    if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then 
        if killer and getElementType(killer) == "player" then 
            setElementData(source, "Cjoin", false) 
            TopKill[killer] = (TopKill[killer] or 0) + 1 
            TopKill[source] = TopKill[source] or 0 
            output(root, "#C38EC7[Gta-Ax Champions] #FA8072"..getPlayerName(killer).." #808080(#FFFF00"..TopKill[killer].." Kills#808080) Killed #9ACD32"..getPlayerName(source).." #808080(#FFFF00"..TopKill[source].." Kills#808080) ", 0, 10, 255) 
            end 
        end 
        if getPlayerTeam(source) == getTeamFromName("Mafia") then 
            RemovePlayer(source, CrTable) 
        elseif getPlayerTeam(source) == getTeamFromName("Rifa") then 
            RemovePlayer(source, PoTable) 
        end 
end) 
  
addCommandHandler ("cjoin", function (plr) 
if getElementData( plr, "Group" ) == "[A7rAr]" and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
if getElementData(plr, "Stats") >= 2 then   
if getElementDimension(plr) >= 1 then   
if getElementData(plr, "Cjoin", false) then   
setElementDimension(plr, 1723) 
setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
resetHealthArmy (plr,200) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, CrTable) 
end 
end 
end 
end 
end 
) 
  
Link to comment

addEventHandler("onPlayerWasted", root, 
function(_, killer) 
    if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then 
        if killer and getElementType(killer) == "player" then 
            TopKill[killer] = (TopKill[killer] or 0) + 1 
            TopKill[source] = TopKill[source] or 0 
            output(root, "#C38EC7[Gta-Ax Champions] #FA8072"..getPlayerName(killer).." #808080(#FFFF00"..TopKill[killer].." Kills#808080) Killed #9ACD32"..getPlayerName(source).." #808080(#FFFF00"..TopKill[source].." Kills#808080) ", 0, 10, 255) 
            end 
        end 
        end 
        if getPlayerTeam(source) == getTeamFromName("Mafia") then 
            RemovePlayer(source, CrTable) 
        elseif getPlayerTeam(source) == getTeamFromName("Rifa") then 
            RemovePlayer(source, PoTable) 
        end 
) 
  
addCommandHandler ("cjoin",  
function (plr) 
if getElementData( plr, "Group" ) == "[A7rAr]" and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
if not getElementData(plr, "Stats") >= 2 then 
if getElementDimension(plr) == 0 then 
if not getElementData(plr, "Cjoin") then 
setElementDimension(plr, 1723) 
setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
resetHealthArmy (plr,200) 
setElementData (plr,"Cjoin",true) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, CrTable) 
else 
outputChatBox ("You used this command before",plr,255,0,0) 
end 
end 
end 
end 
end 
) 
Link to comment

جرب ذا

  
addEventHandler("onPlayerWasted", root, 
function(_, killer) 
    if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then 
        if killer and getElementType(killer) == "player" then 
            setElementData(source,"Join",true) 
            TopKill[killer] = (TopKill[killer] or 0) + 1 
            TopKill[source] = TopKill[source] or 0 
            output(root, "#C38EC7[Gta-Ax Champions] #FA8072"..getPlayerName(killer).." #808080(#FFFF00"..TopKill[killer].." Kills#808080) Killed #9ACD32"..getPlayerName(source).." #808080(#FFFF00"..TopKill[source].." Kills#808080) ", 0, 10, 255) 
            end 
        end 
        if getPlayerTeam(source) == getTeamFromName("Mafia") then 
            RemovePlayer(source, CrTable) 
        elseif getPlayerTeam(source) == getTeamFromName("Rifa") then 
            RemovePlayer(source, PoTable) 
        end 
end) 
  
addCommandHandler ("cjoin", function (plr) 
if getElementData(plr, "Join")  == true  then 
if getElementData( plr, "Group" ) == "[A7rAr]" and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
if getElementData(plr, "Stats") >= 2 then return end 
if getElementDimension(plr) >= 1 then return end 
setElementDimension(plr, 1723) 
setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
resetHealthArmy (plr,200) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, CrTable) 
setElementData(plr,"Join",true) 
end 
end 
end 
) 
  
  
Link to comment

addEventHandler("onPlayerWasted", root, 
function(_, killer) 
    if getPlayerTable(source, CrTable) or getPlayerTable(source, PoTable) then 
        if killer and getElementType(killer) == "player" then 
            setElementData(source,"Join",getElementData(source,"Join") ~= true and true) 
            TopKill[killer] = (TopKill[killer] or 0) + 1 
            TopKill[source] = TopKill[source] or 0 
            output(root, "#C38EC7[Gta-Ax Champions] #FA8072"..getPlayerName(killer).." #808080(#FFFF00"..TopKill[killer].." Kills#808080) Killed #9ACD32"..getPlayerName(source).." #808080(#FFFF00"..TopKill[source].." Kills#808080) ", 0, 10, 255) 
            end 
        end 
        if getPlayerTeam(source) == getTeamFromName("Mafia") then 
            RemovePlayer(source, CrTable) 
        elseif getPlayerTeam(source) == getTeamFromName("Rifa") then 
            RemovePlayer(source, PoTable) 
        end 
    end 
) 
      
addCommandHandler ("cjoin", 
 function (plr) 
    if ( getElementData(plr, "Join") == false ) then 
        if getElementData( plr, "Group" ) and getElementData( plr, "Group" ) == "[A7rAr]" and getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Mafia" then 
            if getElementData(plr, "Stats") >= 2 then return end 
            if getElementDimension(plr) >= 1 then return end 
            setElementDimension(plr, 1723) 
            setElementPosition(plr, 2.3752818107605,2501.5754394531,16.484375) 
            resetHealthArmy (plr,200) 
            setHealthAndArmor (plr,200) 
            AddPlayer(plr, CrTable) 
            setElementData(plr,"Join",true) 
        end 
    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...