MR:SADIQ Posted May 6, 2013 Share Posted May 6, 2013 ابي اسوي السلاح الي ايدي حقه 3 اذا لاعب ضرب لاعب ينقل الاعب الي انضرب ويكون لتيم محدد Link to comment
кιηg-αвα∂у Posted May 6, 2013 Share Posted May 6, 2013 Event "onPlayerDamage" setElementPosition getPlayerTeam getTeamName Link to comment
PaiN^ Posted May 6, 2013 Share Posted May 6, 2013 'onPlayerDamage' getPlayerTeam getTeamName setElementPosition or spawnPlayer Link to comment
#Al-Ha[J]aRii Posted May 6, 2013 Share Posted May 6, 2013 ابي اسوي السلاح الي ايدي حقه 3 اذا لاعب ضرب لاعب ينقل الاعب الي انضرب ويكون لتيم محدد getPlayerTeam getTeamName "onPlayerDamage" setElementPosition getElementType Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 getTeamFromName setPlayerTeam "onPlayerDamage" -- weapon Link to comment
فاّرس Posted May 6, 2013 Share Posted May 6, 2013 getTeamFromName setPlayerTeam "onPlayerDamage" -- weapon هو يقول الي يضرب لاعب في تيم محدد بسلاح محدد ينتقل لمكان محدد, يعني ما يحتاج تسوي سيت للاعب Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 getTeamFromName setPlayerTeam "onPlayerDamage" -- weapon هو يقول الي يضرب لاعب في تيم محدد بسلاح محدد ينتقل لمكان محدد, يعني ما يحتاج تسوي سيت للاعب عارف المفروض spawnPlayer بس اشوفكم تعطونة setPosition ذذذذذذذذذذذذذذ!! Link to comment
MR:SADIQ Posted May 6, 2013 Author Share Posted May 6, 2013 getElementType ( 3 ) == "object" and getElementModel ( 3 ) == 3374 then destroyElement ( targetElem ) getPlayerTeam ( player thePlayer ) setElementPosition ( element theElement, float x, float y, float z ) Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 مآله آي معنى كودكـ !! Server Side ! addEventHandler("onPlayerDamage",getRootElement(), function ( attacker, attackerWeapon ) if ( attacker and attacker ~= source and attackerWeapon == 3 ) then local id = getElementModel ( source ) local Dimension = getElementDimension ( source ) local Interior = getElementInterior ( source ) spawnPlayer ( source , x , y , z , 0 , id , Interior , Dimension ,getTeamFromName ("Team Name") ) end end ) Link to comment
MR:SADIQ Posted May 6, 2013 Author Share Posted May 6, 2013 يصير اسويه لقروب معين بالاسل ؟؟ Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 يصير اسويه لقروب معين بالاسل ؟؟ اشتغل هو ؟ اية يصير لية لا : isObjectInACLGroup getAccountName getPlayerAccount بس تبية للاعب صح يعني يتحقق الاعب هو بالقروب او لا صح؟ مو القآتل ذذذذ؟ Link to comment
MR:SADIQ Posted May 6, 2013 Author Share Posted May 6, 2013 ابيه السلاح يشتغل للقروب بس لاكن الي ينضرب يصير لكل الاعبين Link to comment
iPrestege Posted May 6, 2013 Share Posted May 6, 2013 addEventHandler("onPlayerDamage",getRootElement(), function ( attacker, attackerWeapon ) if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( attacker ) ), aclGetGroup ( "Group Name" ) ) then if ( attacker and attacker ~= source and attackerWeapon == 3 ) then local id = getElementModel ( source ) local Dimension = getElementDimension ( source ) local Interior = getElementInterior ( source ) spawnPlayer ( source , x , y , z , 0 , id , Interior , Dimension ,getTeamFromName ("Team Name") ) 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