baba Posted May 17, 2015 Share Posted May 17, 2015 سلام عليكم شباب انا عندي كود حق الدم ودرع وشخصيه لي قروب معين ابي اخليه لي تيم + يكون لي قروبين مع بعض يعني الدم ودرع يقدرو يخذوهم الثنين الكود ذا marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( player ) if getElementType ( player ) == "player" then if getElementData( player ,'Group') == 'max' then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة", player, 244 , 87, 10, true ) end end end , false ) يريت تسعدوني Link to comment
terreus Posted May 17, 2015 Share Posted May 17, 2015 marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( player ) if getElementType ( player ) == "player" then if getPlayerTeam( player ,'Group') == 'max' then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة", player, 244 , 87, 10, true ) end end end , false ) جرب كذا ولله اعلم اذا يشتغل مو مجرب Link to comment
' A F . Posted May 17, 2015 Share Posted May 17, 2015 @ # AbO ,EkSiaT سطر 7 هو يبي من مود القروبات مو تيم marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( element ) if getElementType ( element ) == "player" then if getElementData( element ,'Group') == "max" then setElementHealth ( element, 100 ) setPedArmor ( element, 100 ) setElementModel ( element, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) end end end ) Link to comment
baba Posted May 17, 2015 Author Share Posted May 17, 2015 @ # AbO ,EkSiaTسطر 7 هو يبي من مود القروبات مو تيم marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( element ) if getElementType ( element ) == "player" then if getElementData( element ,'Group') == "max" then setElementHealth ( element, 100 ) setPedArmor ( element, 100 ) setElementModel ( element, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) end end end ) طيب كيف اعدل عليه علمني لو سمحت Link to comment
Walid Posted May 17, 2015 Share Posted May 17, 2015 أنا ما فهت عليك أنت تحب يكون فيه 2 group try to use or local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function (element,matchingDimension) if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then local group = getElementData( element ,'Group') if (group == "max") or (group == "الثاني") then setElementHealth ( element, 100 ) setPedArmor ( element, 100 ) setElementModel ( element, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) end end end ) Link to comment
~Mr.Hassan Posted May 17, 2015 Share Posted May 17, 2015 هههههههههههه ناسي انه في or كنت راح قول بس خفت ليكون غلط Link to comment
baba Posted May 17, 2015 Author Share Posted May 17, 2015 أنا ما فهت عليك أنت تحب يكون فيه 2 group try to use or local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function (element,matchingDimension) if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then local group = getElementData( element ,'Group') if (group == "max") or (group == "الثاني") then setElementHealth ( element, 100 ) setPedArmor ( element, 100 ) setElementModel ( element, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) end end end ) مشكور يا حب بس كيف اخليه كمان لي تيم معين Link to comment
Walid Posted May 17, 2015 Share Posted May 17, 2015 هكذا local team = getPlayerTeam(element) if team then if getTeamName(team == " الإسم") then -- your code here end end Link to comment
</Mr.Tn6eL> Posted May 18, 2015 Share Posted May 18, 2015 هكذا local team = getPlayerTeam(element) if team then if getTeamName(team == " الإسم") then -- your code here end end local team = getPlayerTeam(element) if team then if getTeamName(team) == "الإسم" then -- your code here end end Link to comment
baba Posted May 18, 2015 Author Share Posted May 18, 2015 هكذا local team = getPlayerTeam(element) if team then if getTeamName(team == " الإسم") then -- your code here end end يا غالي يعني الكود بسير كذا local team = getPlayerTeam(element) if team then if getTeamName(team == " الإسم") then -- your code here end end local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function (element,matchingDimension) if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then local group = getElementData( element ,'Group') if (group == "max") or (group == "الثاني") then setElementHealth ( element, 100 ) setPedArmor ( element, 100 ) setElementModel ( element, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) end end end ) ؟؟؟؟ Link to comment
</Mr.Tn6eL> Posted May 18, 2015 Share Posted May 18, 2015 هكذا local team = getPlayerTeam(element) if team then if getTeamName(team == " الإسم") then -- your code here end end يا غالي يعني الكود بسير كذا local team = getPlayerTeam(element) if team then if getTeamName(team == " الإسم") then -- your code here end end local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function (element,matchingDimension) if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then local group = getElementData( element ,'Group') if (group == "max") or (group == "الثاني") then setElementHealth ( element, 100 ) setPedArmor ( element, 100 ) setElementModel ( element, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) end end end ) ؟؟؟؟ لا Link to comment
baba Posted May 18, 2015 Author Share Posted May 18, 2015 هكذا local team = getPlayerTeam(element) if team then if getTeamName(team == " الإسم") then -- your code here end end يا غالي يعني الكود بسير كذا local team = getPlayerTeam(element) if team then if getTeamName(team == " الإسم") then -- your code here end end local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function (element,matchingDimension) if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then local group = getElementData( element ,'Group') if (group == "max") or (group == "الثاني") then setElementHealth ( element, 100 ) setPedArmor ( element, 100 ) setElementModel ( element, 230 ) else outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) end end end ) ؟؟؟؟ لا طيب كيف يسير؟ Link to comment
terreus Posted May 18, 2015 Share Posted May 18, 2015 marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( player ) local team = getPlayerTeam(element) if team then if getTeamName(team == "max") then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) end end end ) جرب كذا والله اعلم ~ برب مشوار Link to comment
Walid Posted May 18, 2015 Share Posted May 18, 2015 marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( player ) local team = getPlayerTeam(element) if team then if getTeamName(team == "max") then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) end end end ) جرب كذا والله اعلم ~ برب مشوار replace element with player here Link to comment
' A F . Posted May 18, 2015 Share Posted May 18, 2015 marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( player ) local team = getPlayerTeam(player) if team then if getTeamName(team == "max") then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) end end end) Link to comment
i S6O Posted May 18, 2015 Share Posted May 18, 2015 Work 100% marker1 = createMarker (1130.7760009766,-870.98834228516,42.390625, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( player ) local team = getPlayerTeam( player ) if team then if getTeamName(team) == "max" then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) end end end ) Link to comment
baba Posted May 19, 2015 Author Share Posted May 19, 2015 Work 100% marker1 = createMarker (1130.7760009766,-870.98834228516,42.390625, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( player ) local team = getPlayerTeam( player ) if team then if getTeamName(team) == "max" then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) end end end ) طيب وين مكان حق التيم يعني وين احدد التيم الي ابيه Link to comment
H25 Posted May 19, 2015 Share Posted May 19, 2015 Work 100% marker1 = createMarker (1130.7760009766,-870.98834228516,42.390625, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function ( player ) local team = getPlayerTeam( player ) if team then if getTeamName(team) == "max" then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) end end end ) طيب وين مكان حق التيم يعني وين احدد التيم الي ابيه كلمة (max) سطر 6 وسطر 11 (الكلام الي بيطلع ف الشات اذا مو في التيم المطلوب) Link to comment
The moVer Posted May 19, 2015 Share Posted May 19, 2015 local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) addEventHandler ( "onMarkerHit", marker1, function (element,matchingDimension) if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then local team = getPlayerTeam(element) if team then if getTeamName(team == " اسم التيم") then local group = getElementData( element ,'Group') if (group == "القروب الاول") or (group == "القروب الثاني") then setElementHealth ( element, 100 ) setPedArmor ( element, 100 ) setElementModel ( element, 230 ) end else outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) end end end end ) 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