tourra Posted August 17, 2012 Share Posted August 17, 2012 السلام عليكم و رحمة الله و بركاته ابي كودين وربي ما لقيتهم في الويكي الاول هو لما يروح احد الى ذاك الدائرة الزرقاء او الصفراء يخرجله شيء الثاني لما احد يدخل المكان الاخضر يعني يقدر يعمل شيء بأمان ارجو الرد و شكرا Link to comment
tourra Posted August 17, 2012 Author Share Posted August 17, 2012 ايضا اذا تقدرون ابي لما تضغط زر تنفتح نافذة Link to comment
X-SHADOW Posted August 17, 2012 Share Posted August 17, 2012 --- # First Code function teamMarkerHit () teamMarker = createMarker(1553.33, -1677.37, 15, 'cylinder', 1.5, 0, 0, 255, 150 ) window = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window', true) guiSetVisble ( window, false) function hitme ( hitElement, matchingDimmension ) if getElementType ( hitElement ) =='player' then guiSetVisble ( window, true) end end end addEventHandler( "onMarkerHit", teamMarker , teamMarkerHit ) ---Second Code # x, y, size = 228.22802734375, 295.55911254883, 120 local greenzone = createColRectangle ( 228.22802734375, 295.55911254883, 284, 312.22 ) local greenzonemaparea = createRadarArea (228.22802734375, 295.55911254883, 284, 312.22, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Entered The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Left The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) -----Third Code addEvetnHandler('onClientGUIClick' , root , function () show1 = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window 2', true) if ( source == Button1 ) then guiSetVisble( show1, true ) end end) Link to comment
top sniper Posted August 17, 2012 Share Posted August 17, 2012 --- # First Code teamMarker = createMarker(1553.33, -1677.37, 15, 'cylinder', 1.5, 0, 0, 255, 150 ) window = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window', true) guiSetVisble ( window, false) function hitme ( hitElement, matchingDimmension ) if getElementType ( hitElement ) =='player' then guiSetVisble ( window, true) end end addEventHandler( "onMarkerHit", teamMarker , hitme) ---Second Code # x, y, size = 228.22802734375, 295.55911254883, 120 local greenzone = createColRectangle ( 228.22802734375, 295.55911254883, 284, 312.22 ) local greenzonemaparea = createRadarArea (228.22802734375, 295.55911254883, 284, 312.22, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Entered The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Left The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) -----Third Code addEvetnHandler('onClientGUIClick' , root , function () show1 = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window 2', true) if ( source == Button1 ) then guiSetVisble( show1, true ) end end) --- # First Code function teamMarkerHit () teamMarker = createMarker(1553.33, -1677.37, 15, 'cylinder', 1.5, 0, 0, 255, 150 ) window = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window', true) guiSetVisble ( window, false) function hitme ( hitElement, matchingDimmension ) if getElementType ( hitElement ) =='player' then guiSetVisible ( window, true) end end end addEventHandler( "onMarkerHit", teamMarker , teamMarkerHit ) ---Second Code # x, y, size = 228.22802734375, 295.55911254883, 120 local greenzone = createColRectangle ( 228.22802734375, 295.55911254883, 284, 312.22 ) local greenzonemaparea = createRadarArea (228.22802734375, 295.55911254883, 284, 312.22, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Entered The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Left The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) -----Third Code addEvetnHandler('onClientGUIClick' , root , function () show1 = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window 2', true) if ( source == Button1 ) then guiSetVisible( show1, true ) end end) Link to comment
Bssol Posted August 18, 2012 Share Posted August 18, 2012 وضح طلبك زين، مافهمت وش تبي بالضبط خخخ بالنسبة حق Shadow و top_sniper اكوادكم فيها كم خطأ --- # First Code function teamMarkerHit () teamMarker = createMarker(1553.33, -1677.37, 15, 'cylinder', 1.5, 0, 0, 255, 150 ) window = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window', true) guiSetVisble ( window, false) function hitme ( hitElement, matchingDimmension ) if getElementType ( hitElement ) =='player' then guiSetVisible ( window, true) end end end addEventHandler( "onMarkerHit", teamMarker , teamMarkerHit ) ---Second Code # x, y, size = 228.22802734375, 295.55911254883, 120 local greenzone = createColRectangle ( 228.22802734375, 295.55911254883, 284, 312.22 ) local greenzonemaparea = createRadarArea (228.22802734375, 295.55911254883, 284, 312.22, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Entered The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Left The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) -----Third Code addEvetnHandler('onClientGUIClick' , root , function () show1 = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window 2', true) if ( source == Button1 ) then guiSetVisible( show1, true ) end end) addEventHandler( "onMarkerHit", teamMarker , teamMarkerHit ) كود سيرفر في كلينت خخخخخ x, y, size = 228.22802734375, 295.55911254883, 120 local greenzone = createColRectangle ( 228.22802734375, 295.55911254883, 284, 312.22 ) local greenzonemaparea = createRadarArea (228.22802734375, 295.55911254883, 284, 312.22, 0, 255, 0, 120) مدري ليه مختصر الارقام x,y,size اذا ما راح تستخدمها addEvetnHandler('onClientGUIClick' , root , function () show1 = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window 2', true) if ( source == Button1 ) then guiSetVisible( show1, true ) end end) معناها كل ما يضغط الزر يسوي له نافذة جديدة مفتوحة ويقوم الكود guiSetVisible( show1, true ) يخليها مفتوحة فوق ماهي مفتوحة خخخخخخخخخخخخخ Link to comment
top sniper Posted August 18, 2012 Share Posted August 18, 2012 وضح طلبك زين، مافهمت وش تبي بالضبط خخخبالنسبة حق Shadow و top_sniper اكوادكم فيها كم خطأ --- # First Code function teamMarkerHit () teamMarker = createMarker(1553.33, -1677.37, 15, 'cylinder', 1.5, 0, 0, 255, 150 ) window = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window', true) guiSetVisble ( window, false) function hitme ( hitElement, matchingDimmension ) if getElementType ( hitElement ) =='player' then guiSetVisible ( window, true) end end end addEventHandler( "onMarkerHit", teamMarker , teamMarkerHit ) ---Second Code # x, y, size = 228.22802734375, 295.55911254883, 120 local greenzone = createColRectangle ( 228.22802734375, 295.55911254883, 284, 312.22 ) local greenzonemaparea = createRadarArea (228.22802734375, 295.55911254883, 284, 312.22, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Entered The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Left The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) -----Third Code addEvetnHandler('onClientGUIClick' , root , function () show1 = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window 2', true) if ( source == Button1 ) then guiSetVisible( show1, true ) end end) addEventHandler( "onMarkerHit", teamMarker , teamMarkerHit ) كود سيرفر في كلينت خخخخخ x, y, size = 228.22802734375, 295.55911254883, 120 local greenzone = createColRectangle ( 228.22802734375, 295.55911254883, 284, 312.22 ) local greenzonemaparea = createRadarArea (228.22802734375, 295.55911254883, 284, 312.22, 0, 255, 0, 120) مدري ليه مختصر الارقام x,y,size اذا ما راح تستخدمها addEvetnHandler('onClientGUIClick' , root , function () show1 = guiCreateWindow ( 0, 0, 0.5, 0.4, 'This is Test Window 2', true) if ( source == Button1 ) then guiSetVisible( show1, true ) end end) معناها كل ما يضغط الزر يسوي له نافذة جديدة مفتوحة ويقوم الكود guiSetVisible( show1, true ) يخليها مفتوحة فوق ماهي مفتوحة خخخخخخخخخخخخخ مدري انا صلحت الاكوادد الى اكتشفتها بكود Shadow 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