Bo7meeeD Posted December 6, 2012 Author Share Posted December 6, 2012 local pArea = createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ) local pCuboid = createColCuboid( 2133.1950683594, 633.66455078125, 10, 197.5, 92, 30 ) setElementData(pCuboid,'TurfFor','none') addEventHandler( 'onColShapeHit', root, function( p ) -- you should have added player param here if (getPlayerTeam( p )) then if( source == pCuboid ) then if(getElementData(pCuboid,'TurfFor')==getTeamName(getPlayerTeam(p)))then return end setRadarAreaFlashing( pArea, true ) local pTeam = getPlayerTeam( p ) -- source is the col shape, you should use 'p', the player arg local iR, iG, iB = getTeamColor( pTeam ) timer = setTimer( function() setRadarAreaColor (pArea, iR, iG, iB, 100); givePlayerMoney( p, 5000 ); setElementData(pCuboid,"TurfFor",getTeamName(getPlayerTeam(p))) outputChatBox( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ); setRadarAreaFlashing( pArea, false ) end, 10000, 1 ) end else outputChatBox("Get in a group first!",p, 255, 0, 0) end end) addEventHandler('onColShapeLeave', root, function( ) if( source == pCuboid ) then setRadarAreaFlashing( pArea, false ) killTimer ( timer ) end end end) مشكووووور شباب ابغى كود ما اعرف اسمهه بس بشرح لكم وش يسوي اذا ظغط الاعب space مايسرع يعني يخفف السرعه Link to comment
Bo7meeeD Posted December 6, 2012 Author Share Posted December 6, 2012 فيه ولا ؟ لي اربع ساعات انتظر Link to comment
Bo7meeeD Posted December 6, 2012 Author Share Posted December 6, 2012 سحبتو علي يا حلوين Link to comment
KinG_DrifT Posted December 6, 2012 Share Posted December 6, 2012 toggleControl ( hitPlayer, "الزر", false ) اسسم الزر تجيبه من هنا https://wiki.multitheftauto.com/wiki/Control_names Link to comment
./BlackBird# Posted December 6, 2012 Share Posted December 6, 2012 toggleControl ( hitPlayer, "الزر", false ) اسسم الزر تجيبه من هنا https://wiki.multitheftauto.com/wiki/Control_names اي زر الحمد لله و الشكر Link to comment
KinG_DrifT Posted December 6, 2012 Share Posted December 6, 2012 مشكووووور شباب ابغى كود ما اعرف اسمهه بس بشرح لكم وش يسوي اذا ظغط الاعب space مايسرع يعني يخفف السرعه Link to comment
KinG_DrifT Posted December 6, 2012 Share Posted December 6, 2012 هاذي حركه مو زر سسييم سسييم Link to comment
Bo7meeeD Posted December 6, 2012 Author Share Posted December 6, 2012 ياخخي تعقدت مو ججايه تظبط معي هذا الكود !! ss = createColCuboid ( 1363.1398925781, -1156.6317138672, 10, 200, 200, 50 ) addEventHandler ( "onClientColShapeHit", ss, function (hitPlayer , matchingDimension) toggleControl ( root, "sprint", false ) end) Link to comment
abu5lf Posted December 6, 2012 Share Posted December 6, 2012 ss = createColCuboid ( 1363.1398925781, -1156.6317138672, 10, 200, 200, 50 ) addEventHandler ( "onClientColShapeHit", ss, function (hitPlayer , matchingDimension) toggleControl ( "sprint", false ) end) Link to comment
Bo7meeeD Posted December 6, 2012 Author Share Posted December 6, 2012 ss = createColCuboid ( 1363.1398925781, -1156.6317138672, 10, 200, 200, 50 ) addEventHandler ( "onClientColShapeHit", ss, function (hitPlayer , matchingDimension) toggleControl ( "sprint", false ) end) مشكوور Link to comment
iPrestege Posted December 6, 2012 Share Posted December 6, 2012 ^ اعذرني بدخخل عرضض شوي يوم تاخذ الكود حق مود الرجال وش نيتك منة ؟ تقلده ؟ ولآ وشش نيتكك ؟ ويمككن الرججال مايبيكـ تـاخخذه ؟؟؟ Link to comment
Bo7meeeD Posted December 6, 2012 Author Share Posted December 6, 2012 ^ اعذرني بدخخل عرضض شوي يوم تاخذ الكود حق مود الرجال وش نيتك منة ؟ تقلده ؟ ولآ وشش نيتكك ؟ ويمككن الرججال مايبيكـ تـاخخذه ؟؟؟ مود الاحتلال ؟ اتعلم منه Link to comment
Bo7meeeD Posted December 6, 2012 Author Share Posted December 6, 2012 على كلامك اللي قبل شوي حذفته ملاحظه : انا ماسرقت المود ولا لي فيه شي بس ابغى اتعلم منه Link to comment
abu5lf Posted December 6, 2012 Share Posted December 6, 2012 ss = createColCuboid ( 1363.1398925781, -1156.6317138672, 10, 200, 200, 50 ) addEventHandler ( "onClientColShapeHit", ss, function (hitPlayer , matchingDimension) toggleControl ( "sprint", false ) 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