-
Posts
1,355 -
Joined
-
Last visited
Everything posted by ./BlackBird#
-
هذا لما ما تبيه يطلق toggleControl(thePlayer ,'fire',false) هذا لما تبيه يطلق toggleControl(thePlayer ,'fire',true)
-
الكول شيب غير الرادار اعمل كول شيب وبدله بالرادار createColRectangle لا بس سوي كول شيب و غير اسم الردار و حط اسم الكول شيب bb
-
toggleControl
-
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 ) 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 ) end end)
-
-
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 ) 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 end else outputChatBox("Get in a group first!",p, 255, 0, 0) end ) addEventHandler( 'onColShapeLeave', root, function( ) if( source == pCuboid ) then setRadarAreaFlashing( pArea, false ) end end )
-
اطرح الكود حقك بعد التعديل كامل
-
خطأ /debugscript 3 وش يطلع؟
-
function bind() guiSetVisible ( shopWindow ,not guiSetVisible(guiSetVisible )) showCursor (guiSetVisible(guiSetVisible )) guiSetInputEnabled(guiSetVisible(guiSetVisible )) end bindKey('f2','down',bind) col = createColCuboid( ... ) addEventHandler('onClientColShapeHit',col, function(hit) if(getElementType(hit)=='player')then bindKey('f2','down',bind) end end) addEventHandler('onClientColShapeLeave',col, function(leave) if(getElementType(leave)=='player')then unbindKey('f2','down',bind) end end)
-
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 ) 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 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 ) end end ) جرب ذذ
-
مشكور ضبط عفوا
-
marker = createMarker( .. ) function hit(hitE) if(getElementType(hitE)=='ped')then killPed(hitE) return end end addEventHandler('onMarkerHit',marker,hit)
-
حط ذذ الكود تحت لما ياخذ الاحتلال setElementData(اسم الكول شيب,"turfFor",getPlayerTeam(p)) و ذا الكود لما يدخل الكول شيب if(getElementData(اسم كول شيب,"turfFor")==getTeamFromName(getPlayerTeam(p)) then return end
-
استخدم setElementData getElementData
-
عفوا :] الكود بسيط ما يحتاج شرح
-
addEventHandler ( "onPlayerWasted", root, function ( _, killer ) if killer and getElementType ( killer ) == "player" and killer~=source then givePlayerMoney ( killer, 200 ) end end )
-
شخاابيط Marker = createMarker(...) addEventHandler('onMarkerHit',Marker, function(hit) if(getElementType(hit)=='player')then if(isElement(car))then destroyElement(car) end return end car =createVehicle( .. ) warpPedIntoVehicle(hit,car) end end addEventHandler('onPlayerQuit',root,function() if isElement(car) then destroyElement(car) end) addEventHandler('onVehicleExplode',car,function() destroyElement(source) end)
-
طيب وش تبي نسويلك؟ نعلمك كيف تركبه؟
