#[K]iLLeR<3 Posted February 28, 2018 Share Posted February 28, 2018 السلام عليكم ادري طلباتي كثيرة بس استحملوني ابي اذا الاعب دخل الماركر يخذ سلاح بس مو لاقي الفنكش المخصص لهذا الشي ممكن مساعدة ؟ Link to comment
Doffy Posted February 28, 2018 Share Posted February 28, 2018 تبيه يسحب من اللاعب فلوس بالاول ؟ ولا ياخذ علطول "onMarkerHit" giveWeapon Link to comment
#[K]iLLeR<3 Posted February 28, 2018 Author Share Posted February 28, 2018 (edited) 48 minutes ago, #Himoo said: تبيه يسحب من اللاعب فلوس بالاول ؟ ولا ياخذ علطول "onMarkerHit" giveWeapon يخذ على طول اول ما يدخله اعرف اطول الفنكش من الويكي بس ما اعرف اعدل عليه اخلي للماركر Edited February 28, 2018 by #[K]iLLeR<3 Link to comment
Doffy Posted February 28, 2018 Share Posted February 28, 2018 (edited) -- marker اسم ماركرك مثلا addEventHandleraddEventHandler("onMarkerHit",marker, function( hitEelement ) if isPedInVehicle(hitEelement) then return end local id = 30 -- ايدي السلاح local ammo = 200 -- عدد الذخيرة giveWeapon(hitEelement, id,ammo,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..ammo.." ammo",hitEelement,0,255,0,true) playSoundFrontEnd(hitEelement, 20) end ) ايديهات الاسلحة : اضغط Edited February 28, 2018 by #Himoo Link to comment
Adham Posted February 28, 2018 Share Posted February 28, 2018 31 minutes ago, #Himoo said: -- marker اسم ماركرك مثلا addEventHandleraddEventHandler("onMarkerHit",marker, function( hitEelement ) if isPedInVehicle(hitEelement) then return end local id = 30 -- ايدي السلاح local ammo = 200 -- عدد الذخيرة giveWeapon(hitEelement, id,ammo,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..ammo.." ammo",hitEelement,0,255,0,true) playSoundFrontEnd(hitEelement, 20) end ) ايديهات الاسلحة : اضغط addEventHandleraddEventHandler? 1 Link to comment
Doffy Posted March 1, 2018 Share Posted March 1, 2018 (edited) ض المشكلة الجوال ... اي كلمة انقليزي يكررها ض -- marker اسم ماركرك مثلا addEventHandler("onMarkerHit",marker, function( hitEelement ) if isPedInVehicle(hitEelement) then return end local id = 30 -- ايدي السلاح local ammo = 200 -- عدد الذخيرة giveWeapon(hitEelement, id,ammo,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..ammo.." ammo",hitEelement,0,255,0,true) playSoundFrontEnd(hitEelement, 20) end ) @#Himoo Edited March 1, 2018 by !#NssoR_) يرجي تحسين اسلوبك قليلأ 1 Link to comment
#[K]iLLeR<3 Posted March 1, 2018 Author Share Posted March 1, 2018 14 hours ago, #Himoo said: ض المشكلة الجوال ... اي كلمة انقليزي يكررها ض -- marker اسم ماركرك مثلا addEventHandler("onMarkerHit",marker, function( hitEelement ) if isPedInVehicle(hitEelement) then return end local id = 30 -- ايدي السلاح local ammo = 200 -- عدد الذخيرة giveWeapon(hitEelement, id,ammo,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..ammo.." ammo",hitEelement,0,255,0,true) playSoundFrontEnd(hitEelement, 20) end ) @#Himoo بقلي في غلط بالسطر الثاني Link to comment
Doffy Posted March 1, 2018 Share Posted March 1, 2018 اي سطر بالظبط ؟ مو شايف اخطاء انا 1 Link to comment
#[K]iLLeR<3 Posted March 1, 2018 Author Share Posted March 1, 2018 بقلي السطر الثاني <name> 1 hour ago, #Himoo said: اي سطر بالظبط ؟ مو شايف اخطاء انا local myMarker = createMarker(2484.9118652344,-1664.3916015625,13.34375, 'cylinder', 50, 255, 0, 0, 150) function MarkerHit( hitElement, matchingDimension ) local elementType = getElementType( hitElement ) end addEventHandler("onMarkerHit",marker, function( hitEelement ) if isPedInVehicle(hitEelement) then return end local id = 30 -- ايدي السلاح local ammo = 200 -- عدد الذخيرة giveWeapon(hitEelement, id,ammo,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..ammo.." ammo",hitEelement,0,255,0,true) playSoundFrontEnd(hitEelement, 20) end بحطه كذا ما بشتغل Link to comment
#\_oskar_/# Posted March 1, 2018 Share Posted March 1, 2018 myMarker = createMarker(2484.9118652344,-1664.3916015625,13.34375, 'cylinder', 50, 255, 0, 0, 150) ----- addEventHandler ( "onMarkerHit",myMarker,function ( hitEelement ) if getElementType(hitEelement) == "player" then -- سويت تحقق ان اللي لمس الماركر هو اللاعب if isPedInVehicle(hitEelement) then return outputChatBox 'Error' end local id = 30 -- ايدي السلاح local ammo = 200 -- عدد الذخيرة giveWeapon(hitEelement, id,ammo,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..ammo.." ammo",hitEelement,0,255,0,true) playSoundFrontEnd(hitEelement, 20) end end) #Server-Said 1 Link to comment
#[K]iLLeR<3 Posted March 1, 2018 Author Share Posted March 1, 2018 9 minutes ago, #\_oskar_/# said: myMarker = createMarker(2484.9118652344,-1664.3916015625,13.34375, 'cylinder', 50, 255, 0, 0, 150) ----- addEventHandler ( "onMarkerHit",myMarker,function ( hitEelement ) if getElementType(hitEelement) == "player" then -- سويت تحقق ان اللي لمس الماركر هو اللاعب if isPedInVehicle(hitEelement) then return outputChatBox 'Error' end local id = 30 -- ايدي السلاح local ammo = 200 -- عدد الذخيرة giveWeapon(hitEelement, id,ammo,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..ammo.." ammo",hitEelement,0,255,0,true) playSoundFrontEnd(hitEelement, 20) end end) #Server-Said مشكووووور بس تقدر تخلي اذا غير السلاح يرجع + اذا دخل بسيارة يخذ نفس الشي بعد .. اذا صعبة انسى خلاص Link to comment
#[K]iLLeR<3 Posted March 2, 2018 Author Share Posted March 2, 2018 12 hours ago, #\_oskar_/# said: مافهمتك ؟ اذا دخل بالسيارة يخذ السلاح + يضل طول ما هو واقف داخل الماركر يخذ السلاح Link to comment
#\_oskar_/# Posted March 2, 2018 Share Posted March 2, 2018 local _wep ={} addEventHandler ( "onMarkerHit",myMarker,function (player) if getElementType(player) == "player" then if _wep[player] and isTimer(_wep[player]) then killTimer(_wep[player]) end _wep[player] = setTimer ( function(player) local Ammo = getPedTotalAmmo (player) if tonumber ( Ammo ) < 1000 then if isElement(player) then id = 30 --Weapon ID giveWeapon(player,id,100,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..Ammo.." ammo",player,0,255,0,true) end elseif isElement(player) then killTimer(_wep[player]) _wep[player] = nil outputChatBox ('تم تعبئة الذخيرة',player,255,0,0,true) end end,1000,0,player) end end) قصدك كدا ؟ كل ثانيه يعطيه سلاح Link to comment
#[K]iLLeR<3 Posted March 2, 2018 Author Share Posted March 2, 2018 5 hours ago, #\_oskar_/# said: local _wep ={} addEventHandler ( "onMarkerHit",myMarker,function (player) if getElementType(player) == "player" then if _wep[player] and isTimer(_wep[player]) then killTimer(_wep[player]) end _wep[player] = setTimer ( function(player) local Ammo = getPedTotalAmmo (player) if tonumber ( Ammo ) < 1000 then if isElement(player) then id = 30 --Weapon ID giveWeapon(player,id,100,true) outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..Ammo.." ammo",player,0,255,0,true) end elseif isElement(player) then killTimer(_wep[player]) _wep[player] = nil outputChatBox ('تم تعبئة الذخيرة',player,255,0,0,true) end end,1000,0,player) end end) قصدك كدا ؟ كل ثانيه يعطيه سلاح يب مشكوور Link to comment
#[K]iLLeR<3 Posted March 2, 2018 Author Share Posted March 2, 2018 13 minutes ago, #\_oskar_/# said: العفو اوسكر ممكن بس تشيل الكلام الي بطلع بالشات شلته خرب المود ض2 خلاص تمت الافادة Link to comment
MrBiG Posted March 2, 2018 Share Posted March 2, 2018 6 hours ago, #\_oskar_/# said: _wep dashوش ال فايدتها هنا ؟ _ ليش تحطها صراحة انا ما اعرف السؤال هو استفسار وليس تخطيئ لا تفهمني خطأ اخي Link to comment
iMr.WiFi..! Posted March 2, 2018 Share Posted March 2, 2018 1 hour ago, Debo15 said: dashوش ال فايدتها هنا ؟ _ ليش تحطها صراحة انا ما اعرف السؤال هو استفسار وليس تخطيئ لا تفهمني خطأ اخي مجرد تسمية لأسم الجدول لاغير . 1 Link to comment
salah7boss Posted March 4, 2018 Share Posted March 4, 2018 onPlayerMarkerHit givePedWeapon 1 Link to comment
TOUNSI |, السعأدة Posted March 5, 2018 Share Posted March 5, 2018 (edited) local _wep ={} addEventHandler ( "onMarkerHit",myMarker,function (player) if getElementType(player) == "player" then if _wep[player] and isTimer(_wep[player]) then killTimer(_wep[player]) end _wep[player] = setTimer ( function(player) local Ammo = getPedTotalAmmo (player) if tonumber ( Ammo ) < 1000 then if isElement(player) then id = 30 --Weapon ID giveWeapon(player,id,100,true) --outputChatBox("You got "..getWeaponNameFromID(id).." weapon with "..Ammo.." ammo",player,0,255,0,true) end elseif isElement(player) then killTimer(_wep[player]) _wep[player] = nil --outputChatBox ('تم تعبئة الذخيرة',player,255,0,0,true) end end,1000,0,player) end end) جـرب كذا الكلام مرح يطلع لك Edited March 5, 2018 by MR.TOUNSI 1 1 Link to comment
TOUNSI |, السعأدة Posted March 5, 2018 Share Posted March 5, 2018 local _wep ={} addEventHandler ( "onMarkerHit",myMarker,function (player) if getElementType(player) == "player" then if _wep[player] and isTimer(_wep[player]) then killTimer(_wep[player]) end _wep[player] = setTimer ( function(player) local Ammo = getPedTotalAmmo (player) if tonumber ( Ammo ) < 1000 then if isElement(player) then id = 30 --Weapon ID giveWeapon(player,id,100,true) then return end end elseif isElement(player) then killTimer(_wep[player]) _wep[player] = nil then return end end end,1000,0,player) end end) آسمحلي الكود غلط فاتح من الهاتف ومش مركز Link to comment
Rakan# Posted March 5, 2018 Share Posted March 5, 2018 6 minutes ago, MR.TOUNSI said: local _wep ={} addEventHandler ( "onMarkerHit",myMarker,function (player) if getElementType(player) == "player" then if _wep[player] and isTimer(_wep[player]) then killTimer(_wep[player]) end _wep[player] = setTimer ( function(player) local Ammo = getPedTotalAmmo (player) if tonumber ( Ammo ) < 1000 then if isElement(player) then id = 30 --Weapon ID giveWeapon(player,id,100,true) then return end end elseif isElement(player) then killTimer(_wep[player]) _wep[player] = nil then return end end end,1000,0,player) end end) آسمحلي الكود غلط فاتح من الهاتف ومش مركز للمعلوميه كودك خاطئ .. والرجال تمت افادته Link to comment
TOUNSI |, السعأدة Posted March 5, 2018 Share Posted March 5, 2018 1 minute ago, Rakan# said: للمعلوميه كودك خاطئ .. والرجال تمت افادته ! تـمـام . 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