d43dr4 Posted December 8, 2012 Share Posted December 8, 2012 السلام عليكم و رحمة اللع تعالى و بركاته ابي تعدلون على سكربت وظيفة السكربت هو مقر خاص بس الوظيفة ذي هي تخلي اللي يدخل المقر و شخصيته مو 123 يطلق عليه صواريخ المطلوب : مكان ما يشوف من الشخصية يكتشف الاسم ، اذا ممكن تسوون اسماء كثيرة #[iMr][E'rrOr]_N kiNg2012 السكربت : g_base_col = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) createBlip ( 193.248, 1890.01, 17.234, 23 ) g_root = getRootElement () --rocketOne = createMarker ( -2931.5136, 454.4492, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker --rocketTwo = createMarker ( -2931.5932, 487.1994, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker function hit ( pla, dim, hitElement ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local skin = getElementModel ( pla ) if skin == 123 then outputChatBox ( "Welcome to The Admin-Base, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla).." has entered the admin-Base Get Out Of Your Are DEAD!!", g_root, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) function leave ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local skin = getElementModel ( pla ) if skin == 123 then outputChatBox ( "Good Bye!", pla, 0, 100, 0 ) else setElementData ( pla, "inRestrictedArea", "false" ) triggerClientEvent ( pla, "destroyTimers", g_root, pla ) outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) end end end end addEventHandler ( "onColShapeLeave", g_base_col, leave ) Link to comment
hassan.k.s.a Posted December 8, 2012 Share Posted December 8, 2012 سطر 12 و 14 هم أساس طلبك بدلهم بـ getPlayerName + سوي الي تقدرعليه مو صعب شوف مثال الشخصيه وطبقها بلأسم . . Link to comment
d43dr4 Posted December 8, 2012 Author Share Posted December 8, 2012 يا اخي حاولت ما زبط انا قبل ما اطرح الموضوع احاول وحدي ^^ الرجاء تعديل صحيح ما يخرب سكربت Link to comment
hassan.k.s.a Posted December 8, 2012 Share Posted December 8, 2012 يا اخي حاولت ما زبطانا قبل ما اطرح الموضوع احاول وحدي ^^ الرجاء تعديل صحيح ما يخرب سكربت وريني محاولتك + لازم تعدل على سطر 31 و 32 Link to comment
d43dr4 Posted December 8, 2012 Author Share Posted December 8, 2012 يا اخي حاولت ما زبطانا قبل ما اطرح الموضوع احاول وحدي ^^ الرجاء تعديل صحيح ما يخرب سكربت وريني محاولتك + لازم تعدل على سطر 31 و 32 يخرب السكربت محاولتي g_base_col = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) createBlip ( 193.248, 1890.01, 17.234, 23 ) g_root = getRootElement () --rocketOne = createMarker ( -2931.5136, 454.4492, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker --rocketTwo = createMarker ( -2931.5932, 487.1994, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker function hit ( pla, dim, hitElement ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local = getPlayerName ( thePlayer ) ~= "#[iMr][E'rrOr]_N" if getPlayerName == "#[iMr][E'rrOr]_N" then outputChatBox ( "Welcome to The Admin-Base, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla).." has entered the admin-Base Get Out Of Your Are DEAD!!", g_root, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) function leave ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local = getPlayerName ( thePlayer ) ~= "#[iMr][E'rrOr]_N" if getPlayerName == "#[iMr][E'rrOr]_N" then outputChatBox ( "Good Bye!", pla, 0, 100, 0 ) else setElementData ( pla, "inRestrictedArea", "false" ) triggerClientEvent ( pla, "destroyTimers", g_root, pla ) outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) end end end end addEventHandler ( "onColShapeLeave", g_base_col, leave ) Link to comment
hassan.k.s.a Posted December 8, 2012 Share Posted December 8, 2012 g_base_col = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) createBlip ( 193.248, 1890.01, 17.234, 23 ) g_root = getRootElement () --rocketOne = createMarker ( -2931.5136, 454.4492, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker --rocketTwo = createMarker ( -2931.5932, 487.1994, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker function hit ( pla, dim, hitElement ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local playerName = getPlayerName ( pla )-- ياريت تشوف التغيير .. if PlayerName == ألأسم then-- وهنا . . outputChatBox ( "Welcome to The Admin-Base, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla).." has entered the admin-Base Get Out Of Your Are DEAD!!", g_root, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) function leave ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local playerName = getPlayerName ( pla )-- ياريت تشوف التغيير .. if PlayerName == ألأسم then-- وهنا . . outputChatBox ( "Good Bye!", pla, 0, 100, 0 ) else setElementData ( pla, "inRestrictedArea", "false" ) triggerClientEvent ( pla, "destroyTimers", g_root, pla ) outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) end end end end addEventHandler ( "onColShapeLeave", g_base_col, leave ) Link to comment
TAPL Posted December 9, 2012 Share Posted December 9, 2012 ذا الكود أيش الهدف منه؟ local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then ما له أي معنى 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