Randomnob Posted August 26, 2013 Share Posted August 26, 2013 عندي 3 كودات بس في مشكلة انهم لكل الاعبين وانا محتاجهم يكونو لعصابة مثل قراند العرب وسيرفرات القروبات وحرب عصابات جرب كود وهو getElementData ( player , "Group" ) == groupName then ما نفع ياليت تساعدوني كوداتي هي ماركر للبيوت ----ماركر الدخول للبيت local mr1 = createMarker ( x, y, z, "arrow", 1, 255, 0, 0, 255 ) -- الماركر function msh1(player) -- الوظيفة if getElementType(player)=="player" then -- التحقق من دخول الماركر setElementInterior(player, theinterior ,x, y, z ) -- نقل اللاعب للبيت end -- اغلاق end -- اغلاق addEventHandler("onMarkerHit", mr1, msh1) -- الحدث ----ماركر الخروج من البيت local mr11 = createMarker( x, y, z,"arrow",1.5, 150, 0, 0 ) -- الماركر setElementInterior( mr11, theinterior ) -- تحديد العالم الوهمي addEventHandler ("onMarkerHit",mr11, -- الحدث function ( player ) --الوظيفة if ( getElementType ( player ) == ( "player" ) ) then -- التحقق من اللاعب setElementPosition ( player , x ,y , z ) -- نقل اللاعب setElementInterior( player, 0) -- نقل اللاعب للعالم الوهمي end -- اغلاق end -- اغلاق ) ماركر دم + درع local mr1 = createMarker ( x, y, z, "cylinder", 1, 255, 0, 0, 255 ) -- الماركر function msh1(player) -- الوظيفة if getElementType(player)=="player" then -- التحقق من دخول الماركر setElementHealth ( player, 100 ) -- اعطاء دم setPlayerArmor ( player, 100 ) -- اعطاء درع end -- اغلاق end -- اغلاق addEventHandler("onMarkerHit", mr1, msh1) -- الحدث ماركر للنقل مثلا بين طابقين للمقر local mr11 = createMarker( x, y, z,"arrow",1.5, 150, 0, 0 ) -- الماركر addEventHandler ("onMarkerHit",mr11, -- الحدث function ( player ) --الوظيفة if ( getElementType ( player ) == ( "player" ) ) then -- التحقق من اللاعب setElementPosition ( player , x ,y , z ) -- نقل اللاعب end -- اغلاق end -- اغلاق ) منتظركم :] Link to comment
Stranger Posted August 26, 2013 Share Posted August 26, 2013 ماركر البيت --******************* -- By Manster .. --******************* local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end if ( getElementData(player, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) else outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) setElementInterior(player, 1) setElementPosition(player, x,y,z)-- احداثيات دخول البيت end end end) local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت setElementInterior(Manstermarker2, 1) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) else setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) end end end) ماركر دم ودرع --******************* -- By Manster .. --******************* marker = createMarker ( 125.398, 1934.122, 18.261, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType(player) == ("player")) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Your Health And Your Armor Now 100% .", player, 255, 255, 0, true) setPedArmor (player, 100) setElementHealth (player,100) end end end ) ماركر النقل local mr11 = createMarker( x,y,z,"arrow",1.5, 150, 0, 0 ) -- مكان الماركر addEventHandler ("onMarkerHit",mr11, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Welcome Sir .", player, 255, 255, 0, true) setElementPosition ( player , x,y,z ) -- مكان الانتقال end end end ) Group Name = اسم القروب حقك Link to comment
Randomnob Posted August 26, 2013 Author Share Posted August 26, 2013 ماركر البيت --******************* -- By Manster .. --******************* local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end if ( getElementData(player, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) else outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) setElementInterior(player, 1) setElementPosition(player, x,y,z)-- احداثيات دخول البيت end end end) local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت setElementInterior(Manstermarker2, 1) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) else setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) end end end) ماركر دم ودرع --******************* -- By Manster .. --******************* marker = createMarker ( 125.398, 1934.122, 18.261, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType(player) == ("player")) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Your Health And Your Armor Now 100% .", player, 255, 255, 0, true) setPedArmor (player, 100) setElementHealth (player,100) end end end ) ماركر النقل local mr11 = createMarker( x,y,z,"arrow",1.5, 150, 0, 0 ) -- مكان الماركر addEventHandler ("onMarkerHit",mr11, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Welcome Sir .", player, 255, 255, 0, true) setElementPosition ( player , x,y,z ) -- مكان الانتقال end end end ) Group Name = اسم القروب حقك اسف عتاخير الرد شكرا لك بجرب وبردلك خبر Link to comment
Stranger Posted August 26, 2013 Share Posted August 26, 2013 ماركر البيت --******************* -- By Manster .. --******************* local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end if ( getElementData(player, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) else outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) setElementInterior(player, 1) setElementPosition(player, x,y,z)-- احداثيات دخول البيت end end end) local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت setElementInterior(Manstermarker2, 1) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) else setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) end end end) ماركر دم ودرع --******************* -- By Manster .. --******************* marker = createMarker ( 125.398, 1934.122, 18.261, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType(player) == ("player")) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Your Health And Your Armor Now 100% .", player, 255, 255, 0, true) setPedArmor (player, 100) setElementHealth (player,100) end end end ) ماركر النقل local mr11 = createMarker( x,y,z,"arrow",1.5, 150, 0, 0 ) -- مكان الماركر addEventHandler ("onMarkerHit",mr11, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Welcome Sir .", player, 255, 255, 0, true) setElementPosition ( player , x,y,z ) -- مكان الانتقال end end end ) Group Name = اسم القروب حقك اسف عتاخير الرد شكرا لك بجرب وبردلك خبر العفو خذ راحتك ذذ Link to comment
Randomnob Posted August 26, 2013 Author Share Posted August 26, 2013 ماركر البيت --******************* -- By Manster .. --******************* local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end if ( getElementData(player, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) else outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) setElementInterior(player, 1) setElementPosition(player, x,y,z)-- احداثيات دخول البيت end end end) local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت setElementInterior(Manstermarker2, 1) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) else setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) end end end) ماركر دم ودرع --******************* -- By Manster .. --******************* marker = createMarker ( 125.398, 1934.122, 18.261, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType(player) == ("player")) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Your Health And Your Armor Now 100% .", player, 255, 255, 0, true) setPedArmor (player, 100) setElementHealth (player,100) end end end ) ماركر النقل local mr11 = createMarker( x,y,z,"arrow",1.5, 150, 0, 0 ) -- مكان الماركر addEventHandler ("onMarkerHit",mr11, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Welcome Sir .", player, 255, 255, 0, true) setElementPosition ( player , x,y,z ) -- مكان الانتقال end end end ) Group Name = اسم القروب حقك اسف عتاخير الرد شكرا لك بجرب وبردلك خبر العفو خذ راحتك ذذ في مشكلة بلكود تبع البيت السيارة تقدر تستعمله كيف احلها؟ ifpedinvechicle الباقي ما اعرفه Link to comment
Stranger Posted August 27, 2013 Share Posted August 27, 2013 ماركر البيت --******************* -- By Manster .. --******************* local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end if ( getElementData(player, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) else outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) setElementInterior(player, 1) setElementPosition(player, x,y,z)-- احداثيات دخول البيت end end end) local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت setElementInterior(Manstermarker2, 1) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) else setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) end end end) ماركر دم ودرع --******************* -- By Manster .. --******************* marker = createMarker ( 125.398, 1934.122, 18.261, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType(player) == ("player")) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Your Health And Your Armor Now 100% .", player, 255, 255, 0, true) setPedArmor (player, 100) setElementHealth (player,100) end end end ) ماركر النقل local mr11 = createMarker( x,y,z,"arrow",1.5, 150, 0, 0 ) -- مكان الماركر addEventHandler ("onMarkerHit",mr11, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if ( getElementData(player, "Group" ) ~= "Group Name" ) then outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Welcome Sir .", player, 255, 255, 0, true) setElementPosition ( player , x,y,z ) -- مكان الانتقال end end end ) في مشكلة بلكود تبع البيت السيارة تقدر تستعمله كيف احلها؟ ifpedinvechicle الباقي ما اعرفه انا جربت الكود بالسياره ما دخلني !! تأكد امكن عندك شي خطأ Link to comment
iPrestege Posted August 27, 2013 Share Posted August 27, 2013 يعني تبية مايقدر يروح بـ vehicle !? هو أصلاَ مايقدر .. بس يحصل خربطة سوي شرط وخلصنا Link to comment
KING#NSSER Posted June 18, 2014 Share Posted June 18, 2014 [quote name="Manster"][b]ماركر البيت [lua]--******************* -- By Manster .. --******************* local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end if ( getElementData(player, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) else outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) setElementInterior(player, 1) setElementPosition(player, x,y,z)-- احداثيات دخول البيت end end end) local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت setElementInterior(Manstermarker2, 1) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) else setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) end end end) ممكن يا اخي هذا للجروب اريد تعديل عليه يكول لجميع اللاعبين طبعا حتى يشتون اسلحه وشكرا يا كنق Link to comment
The Killer Posted June 19, 2014 Share Posted June 19, 2014 همم اول شي الموضوع ذا قبل سنه ثاني شي هذا طلبك: --******************* -- By Manster .. --******************* local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت addEventHandler("onMarkerHit", Manstermarker, function (player) if getElementType(player) == "player" then if ( isPedInVehicle(player) ) then return end else outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) setElementInterior(player, 1) setElementPosition(player, x,y,z)-- احداثيات دخول البيت end end ) local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت setElementInterior(Manstermarker2, 1) addEventHandler("onMarkerHit", Manstermarker2, function (MarkerHit) if getElementType(MarkerHit) == "player" then setElementInterior(MarkerHit, 0) setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) end 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