Bo7meeeD Posted December 15, 2012 Share Posted December 15, 2012 السلام عليككم ورححمة الله شباب ابغى الاعب اذا قتل لاعب من تيم ثاني يعيطيه فلوس ككيف؟ وانا احدد التميمين وشككررا... Link to comment
Bo7meeeD Posted December 15, 2012 Author Share Posted December 15, 2012 السلام عليككم ورححمة الله شباب ابغى الاعب اذا قتل لاعب من تيم ثاني يعيطيه فلوس ككيف؟ وانا احدد التميمين وشككررا... Link to comment
3NAD Posted December 15, 2012 Share Posted December 15, 2012 getPlayerTeam givePlayerMoney Event "onPlayerWasted" Link to comment
Bo7meeeD Posted December 15, 2012 Author Share Posted December 15, 2012 getPlayerTeam givePlayerMoney Event "onPlayerWasted" يسلمؤو Link to comment
Bo7meeeD Posted December 15, 2012 Author Share Posted December 15, 2012 صح ككذا ؟ mohamad = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 ) addEventHandler ( "onColShapeHit", root, addEventHandler ( "onPlayerWasted", root, function ( _, killer ) setTeamFriendlyFire ( team1, true ) setTeamFriendlyFire ( team2, true ) if(isElementWithinColShape ( source, mohamad ))then if killer and getElementType ( killer ) == "player" and killer~=source then if (getTeamName(getPlayerTeam(hitPlayer))=="team1") or (getTeamName(getPlayerTeam(hitPlayer))=="team2")then givePlayerMoney ( killer, 4000 ) outputChatBox("#7FFF00 you’re win 4000$ ", source, 255, 255, 255, true ) end end end end ) ) اذا فيه اخطاء صححوها لاهنتم Link to comment
abu5lf Posted December 15, 2012 Share Posted December 15, 2012 ^ انت وش تبي تسوي اصلا؟ Link to comment
Bo7meeeD Posted December 15, 2012 Author Share Posted December 15, 2012 ^ انت وش تبي تسوي اصلا؟ ابغى اذا واحد قتل لاعب في الكول شيب يعطيه فلوس .... شرط ان الاعب في تيم 1 او تيم 2 Link to comment
TAPL Posted December 15, 2012 Share Posted December 15, 2012 mohamad = createColRectangle(-2171.0678710938, 678.17950439453, 15, 15) team1 = createTeam("team1", 255, 255, 255) team2 = createTeam("team2", 255, 255, 255) setTeamFriendlyFire(team1, false) setTeamFriendlyFire(team2, false) addEventHandler("onPlayerWasted", root, function(_, killer) if isElementWithinColShape(source, mohamad) then if killer and getElementType(killer) == "player" and killer ~= source then if (getPlayerTeam(killer) == team1) or (getPlayerTeam(killer) == team2) then givePlayerMoney(killer, 4000) outputChatBox("#7FFF00 you’re win 4000$ ", killer, 255, 255, 255, true) end end end end) Link to comment
Bo7meeeD Posted December 16, 2012 Author Share Posted December 16, 2012 mohamad = createColRectangle(-2171.0678710938, 678.17950439453, 15, 15) team1 = createTeam("team1", 255, 255, 255) team2 = createTeam("team2", 255, 255, 255) setTeamFriendlyFire(team1, false) setTeamFriendlyFire(team2, false) addEventHandler("onPlayerWasted", root, function(_, killer) if isElementWithinColShape(source, mohamad) then if killer and getElementType(killer) == "player" and killer ~= source then if (getPlayerTeam(killer) == team1) or (getPlayerTeam(killer) == team2) then givePlayerMoney(killer, 4000) outputChatBox("#7FFF00 you’re win 4000$ ", killer, 255, 255, 255, true) end end end end) يسلمؤؤ شباب وش الخطأ ؟ addEventHandler ( "onPlayerJoin", root, function ( player ) player = getElementType(player) == ( "player" ) ss = setCameraMatrix(source, 0, 0, 20, 180) setTimer ( function() setCameraTarget ( player ) spawnPlayer(player, 0, 0, 3) end, 2000, 1 ) end ) Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 شباب وش الخطأ ؟ addEventHandler ( "onPlayerJoin", root, function ( player ) player = getElementType(player) == ( "player" ) ss = setCameraMatrix(source, 0, 0, 20, 180) setTimer ( function() setCameraTarget ( player ) spawnPlayer(player, 0, 0, 3) end, 2000, 1 ) end ) جرب addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setCameraMatrix( source, 0, 0, 20, 180 ) setTimer( function( ) setCameraTarget( source ) spawnPlayer( source, 0, 0, 3 ) end, 2000, 1 ) end ) Link to comment
Bo7meeeD Posted December 16, 2012 Author Share Posted December 16, 2012 شباب وش الخطأ ؟ addEventHandler ( "onPlayerJoin", root, function ( player ) player = getElementType(player) == ( "player" ) ss = setCameraMatrix(source, 0, 0, 20, 180) setTimer ( function() setCameraTarget ( player ) spawnPlayer(player, 0, 0, 3) end, 2000, 1 ) end ) جرب addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setCameraMatrix( source, 0, 0, 20, 180 ) setTimer( function( ) setCameraTarget( source ) spawnPlayer( source, 0, 0, 3 ) end, 2000, 1 ) end ) ما ضبط Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setCameraMatrix( source, 0, 0, 20, 180 ) setTimer( setCameraTarget, 2000, 1, source ) setTimer( spawnPlayer, 2000, 1, source, 0, 0, 3 ) end ) جرب Link to comment
Bo7meeeD Posted December 16, 2012 Author Share Posted December 16, 2012 addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setCameraMatrix( source, 0, 0, 20, 180 ) setTimer( setCameraTarget, 2000, 1, source ) setTimer( spawnPlayer, 2000, 1, source, 0, 0, 3 ) end ) جرب ضبطط بس وش الفرق انت بس غيرت طريقة استخخدام التايمير ؟^ Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setCameraMatrix( source, 0, 0, 20, 180 ) setTimer( setCameraTarget, 2000, 1, source ) setTimer( spawnPlayer, 2000, 1, source, 0, 0, 3 ) end ) جرب ضبطط بس وش الفرق انت بس غيرت طريقة استخخدام التايمير ؟^ الكود الاول لم يتم التعرف على source Link to comment
Bo7meeeD Posted December 16, 2012 Author Share Posted December 16, 2012 addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setCameraMatrix( source, 0, 0, 20, 180 ) setTimer( setCameraTarget, 2000, 1, source ) setTimer( spawnPlayer, 2000, 1, source, 0, 0, 3 ) end ) جرب ضبطط بس وش الفرق انت بس غيرت طريقة استخخدام التايمير ؟^ الكود الاول لم يتم التعرف على source يعطيكك الف عافيةة اقدر اغير زاوية الكاميرا؟ Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 setCameraMatrix( source, 0, 0, 20, 180 ) Link to comment
Bo7meeeD Posted December 16, 2012 Author Share Posted December 16, 2012 setCameraMatrix( source, 0, 0, 20, 180 ) اذ تقصصد الـ 180 جربت اغيرها اككثر من مرة ! Link to comment
iPrestege Posted December 16, 2012 Share Posted December 16, 2012 setCameraMatrix( source, 0, 0, 20, 180 ) اذ تقصصد الـ 180 جربت اغيرها اككثر من مرة ! Wiki : roll: The camera roll angle, -180 to 180. A value of 0 means the camera sits straight, positive values will turn it counter-clockwise and negative values will turn it clockwise. -180 or 180 means the camera is upside down. Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 setCameraMatrix( source, 0, 0, 20, 180 ) اذ تقصصد الـ 180 جربت اغيرها اككثر من مرة ! setCameraMatrix ( source, 0, 0, 32, _, _, _, _, 180 ) جرب Link to comment
Bo7meeeD Posted December 16, 2012 Author Share Posted December 16, 2012 setCameraMatrix( source, 0, 0, 20, 180 ) اذ تقصصد الـ 180 جربت اغيرها اككثر من مرة ! setCameraMatrix ( source, 0, 0, 32, _, _, _, _, 180 ) جرب ما ظبطط Link to comment
iPrestege Posted December 16, 2012 Share Posted December 16, 2012 لك الحرية في التغير من بين -180 الى 180 / = زآوية الكآمير Link to comment
Bo7meeeD Posted December 16, 2012 Author Share Posted December 16, 2012 لك الحرية في التغير من بين -180 الى 180 / = زآوية الكآمير المشكلة مو في الدرجة الحين انا حطيت الزاوويةة بس الكود ما اشتغل ؟ وش الخطأ >< Link to comment
Blaawee Posted December 16, 2012 Share Posted December 16, 2012 ي ريت ي بي كول تقرآ الويكي زين setCameraMatrix ( thePlayer, positionX, positionY, positionZ , lookAtX, lookAtY, lookAtZ ) setCameraMatrix( source, positionX, positionY, positionZ , lookAtX, lookAtY, lookAtZ ) positionX, positionY, positionZ = مكآن الكآم وين يكون lookAtX, lookAtY, lookAtZ = مكآن وين يطآلع فيه Link to comment
iPrestege Posted December 16, 2012 Share Posted December 16, 2012 ي ريت ي بي كول تقرآ الويكي زين setCameraMatrix ( thePlayer, positionX, positionY, positionZ , lookAtX, lookAtY, lookAtZ ) setCameraMatrix( source, positionX, positionY, positionZ , lookAtX, lookAtY, lookAtZ ) positionX, positionY, positionZ = مكآن الكآم وين يكون lookAtX, lookAtY, lookAtZ = مكآن وين يطآلع فيه تعجبني آنك تحب تفهم الشخص الكود بالتفصيل , صدقت هو بي كول ^^ Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 لك الحرية في التغير من بين -180 الى 180 / = زآوية الكآمير المشكلة مو في الدرجة الحين انا حطيت الزاوويةة بس الكود ما اشتغل ؟ وش الخطأ >< ورني الي ماشتغل 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