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
)
وين الاخطاء ض