avast4646 Posted February 14, 2016 Share Posted February 14, 2016 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
Abdul KariM Posted February 14, 2016 Share Posted February 14, 2016 جرب 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
avast4646 Posted February 14, 2016 Author Share Posted February 14, 2016 وش اكتب في اف 8 كدة Link to comment
Abdul KariM Posted February 14, 2016 Share Posted February 14, 2016 ^ cjoin تكتب مسافة اسم القروب ولازم يكون صحيح Link to comment
avast4646 Posted February 14, 2016 Author Share Posted February 14, 2016 لو سمحت انا ابي لما ادخل على setting حق المود اقدر اغير القيمة Link to comment
Jupi Posted February 14, 2016 Share Posted February 14, 2016 https://wiki.multitheftauto.com/wiki/Settings_system Link to comment
avast4646 Posted February 14, 2016 Author Share Posted February 14, 2016 ممكن مثال يعني Link to comment
avast4646 Posted February 14, 2016 Author Share Posted February 14, 2016 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
Jupi Posted February 14, 2016 Share Posted February 14, 2016 at meta.xml "@GroupName" value="القيمة الطبيعية" desc="شرح للاعداد" /> Link to comment
Jupi Posted February 14, 2016 Share Posted February 14, 2016 (edited) و سيرفر ؟ get("GroupName") -- بيرجع لك اسم الجروب اللي في الميتا Edited February 14, 2016 by Guest Link to comment
avast4646 Posted February 14, 2016 Author Share Posted February 14, 2016 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
iMr.SFA7 Posted February 15, 2016 Share Posted February 15, 2016 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
avast4646 Posted February 15, 2016 Author Share Posted February 15, 2016 لا تهتم بالوظائف عشان مسوي لهم تعريف وما جطيتهم بجرب الكود واقلك Link to comment
avast4646 Posted February 15, 2016 Author Share Posted February 15, 2016 "iMr#Nice" version="1.3" type="script" name="Groups System" /> لما ادخل setting المود مايجيني شيئ Link to comment
iMr.SFA7 Posted February 15, 2016 Share Posted February 15, 2016 "iMr#Nice" version="1.3" type="script" name="Groups System" /> Link to comment
avast4646 Posted February 15, 2016 Author Share Posted February 15, 2016 نفس الشيئ مايجي شيئ في settings المود Link to comment
iMr.SFA7 Posted February 15, 2016 Share Posted February 15, 2016 "iMr#Nice" version="1.3" type="script" name="Groups System" /> تمت التجربة# Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now