Jump to content

مساعدة لو سمحتهم


avast4646

Recommended Posts

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

)

ابغى القيمة دي "[A7rAr]"

اغيرها من اف 8 من دون تعديل على المود

Link to comment

جرب

  
addCommandHandler ("cjoin", 
function (plr,cmd,Group) 
if Group and tostring ( Group ) then 
if ( getElementData(plr, "Join") == false ) then 
if getElementData( plr, "Group" ) and getElementData( plr, "Group" ) == tostring ( Group ) 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 
end) 
  
Link to comment
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 
) 

[A7rAr] القيمة دي

ابي اغيرها من setting المود

Link to comment

meta

    "iMr#Nice" version="1.3" type="script" name="Groups System"  /> 
    

server

local Group1 = get("GroupName1") 
local Group2 = get("GroupName2") 
addCommandHandler ("cjoin", 
 function (plr) 
    if ( getElementData(plr, "Join") == false ) then 
        if getElementData( plr, "Group" ) and getElementData( plr, "Group" ) == Group1 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, 0) 
            setElementPosition(plr, 2214.5,-3136.3999023438,36.5) 
            resetHealthArmy (plr,200) 
            setHealthAndArmor (plr,200) 
            AddPlayer(plr, CrTable) 
            setElementData(plr,"Join",true) 
        end 
    end 
end 
) 
  
addCommandHandler ("cjoin1", function (plr) 
if ( getElementData(plr, "Join") == false ) then 
if getElementData( plr, "Group" ) == Group2 and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Rifa" then 
if getElementData(plr, "Stats") >= 2 then return end 
if getElementDimension(plr) >= 1 then return end 
setElementDimension(plr, 0) 
setElementPosition(plr, 1892.3000488281,-2989.1999511719,36.5) 
resetHealthArmy (plr,200) 
setHealthAndArmor (plr,200) 
AddPlayer(plr, PoTable) 
setElementData(plr,"Join",true) 
end 
end 
end 
) 

وين الاخطاء ض

Link to comment

resetHealthArmy 
setHealthAndArmor 
AddPlayer 

الوظائف هذي ما أشوف لها أي تعريف بالكود حقك والوظيفة الثالثة ما فهمت مقصدها؟

-- # Server Side ; 
  
local Group1 = get("GroupName1") 
local Group2 = get("GroupName2") 
addCommandHandler ("cjoin", function (plr) 
    if ( getElementData(plr, "Join") == false ) then 
        if getElementData( plr, "Group" ) and getElementData( plr, "Group" ) == Group1 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, 0) 
            setElementPosition(plr, 2214.5,-3136.3999023438,36.5) 
            setElementHealth (plr,200) 
            setPedArmor (plr,100) 
            setElementData(plr,"Join",true) 
        end 
    end 
end 
) 
  
addCommandHandler ("cjoin1", function (plr) 
if ( getElementData(plr, "Join") == false ) then 
if getElementData( plr, "Group" ) == Group2 and  getPlayerTeam( plr ) and getTeamName( getPlayerTeam( plr ) ) == "Rifa" then 
if getElementData(plr, "Stats") >= 2 then return end 
if getElementDimension(plr) >= 1 then return end 
setElementDimension(plr, 0) 
setElementPosition(plr, 1892.3000488281,-2989.1999511719,36.5) 
setElementHealth (plr,200) 
setPedArmor (plr,100) 
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...