khaledmhammed Posted August 15, 2015 Share Posted August 15, 2015 المشكله لا حددت الاعب ماتختفي العلامه حاولت اسوي لها تايمر لا حدد الاعب ثواني وتختفي العلامه تلقائي مازبط ابي لاضغطت ع الزر تطلع له علامه ثواني وتختفي .. للمعلومية ماعدلت بالكود غير التايمر شوفولي حل playerb = {} addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) if name ~= "" then local playern = getPlayerFromName(tostring(name)) playerb = createBlipAttachedTo(playern,48) elseif source == GUIEditor.button[3] then if isElement(playerb) then setTimer( destroyElement(Blip), 1000, 1, playern ) end end end end ) Link to comment
khaledmhammed Posted August 15, 2015 Author Share Posted August 15, 2015 (edited) اين انتم ذا بيست , زاحف , نصور , ابو شنب , سفاح , كلاسيك , حسان سوف اضيع دونك ذذ Edited August 15, 2015 by Guest Link to comment
iMr.SFA7 Posted August 15, 2015 Share Posted August 15, 2015 playerb = {} addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) if name ~= "" then local playern = getPlayerFromName(tostring(name)) playerb = createBlipAttachedTo(playern,48) elseif source == GUIEditor.button[3] then if isElement(playerb) then setTimer( destroyElement(playerb), 1000, 1 ) end end end end ) Link to comment
khaledmhammed Posted August 15, 2015 Author Share Posted August 15, 2015 playerb = {} addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) if name ~= "" then local playern = getPlayerFromName(tostring(name)) playerb = createBlipAttachedTo(playern,48) elseif source == GUIEditor.button[3] then if isElement(playerb) then setTimer( destroyElement(playerb), 1000, 1 ) end end end end ) اررررررررررحب ب الدخلةة مازان العلامه ماتختفي Link to comment
iMr.SFA7 Posted August 15, 2015 Share Posted August 15, 2015 طيب انت ليه حاط الوظيفتين بزر واحد ايش تبي تسوي بالضبظ ؟ Link to comment
H25 Posted August 15, 2015 Share Posted August 15, 2015 addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) if name ~= "" then local playern = getPlayerFromName(tostring(name)) playerb = createBlipAttachedTo(playern,48) setTimer( destroyElement, 3000, 1, playerb ) end end end ) Link to comment
khaledmhammed Posted August 15, 2015 Author Share Posted August 15, 2015 addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) if name ~= "" then local playern = getPlayerFromName(tostring(name)) playerb = createBlipAttachedTo(playern,48) setTimer( destroyElement, 3000, 1, playerb ) end end end ) ايوة كذا تمام اشكرك حسان .. كان قصدي سفاح العلامه تختفي بعد ثواني من التحديد اشكرك سفاح ططلب ثاني الحين لا ضغط ع البوتون يموت الاعب بعد التحققات اللي مسويها انا لكن مو راضي يموت سويت ترايقر ومفروض الاعب لا ضغط الزر يموت لكن مادري وش المشكله ... كلنت addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[10] then triggerServerEvent("pkill"", localPlayer, Player) if name ~= "" then end end end ) سيرفر addEvent ( "pkill" , true ) addEventHandler ( "pkill", root, function ( player ) antispam[getPlayerSerial( player )] = getTickCount setTimer( killPed, 10000, 1, player ) setElementFrozen ( player, true ) outputChatBox( "ستموت بعد 10 ثواني أنتضر ... ", player, 255, 0, 0 ) end ) Link to comment
LoOs Posted August 15, 2015 Share Posted August 15, 2015 (edited) الكلنت فيه خطا , addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[10] then triggerServerEvent("pkill", localPlayer, Player) if name ~= "" then end end end ) + استعمل بدال killPed setElementHealth مايحتاج تسوي ترايقر للسيرفر , خله كله كلنت , Edited August 15, 2015 by Guest Link to comment
khaledmhammed Posted August 15, 2015 Author Share Posted August 15, 2015 الان تجي لي خطاء بسيرفر Link to comment
khaledmhammed Posted August 15, 2015 Author Share Posted August 15, 2015 addEvent ( "pkill" , true ) addEventHandler ( "pkill", root, function ( player ) antispam[getPlayerSerial( player )] = getTickCount setTimer( killPed, 10000, 1, player ) setElementFrozen ( player, true ) outputChatBox( "ستموت بعد 10 ثواني أنتضر ... ", player, 255, 0, 0 ) end ) المشكله كانت بسطر ذا antispam[getPlayerSerial( player )] = getTickCount مسحته كامل صارت تطلع الرساله بشات بس مايجي له فريز ولا يموت Link to comment
LoOs Posted August 15, 2015 Share Posted August 15, 2015 (edited) ------ حطه كله كلنت , addEventHandler("onClientGUIClick",root, function(player) if source == GUIEditor.button[10] then setTimer( setElementHealth, 10000, 1,0, player ) setElementFrozen ( true , player ) outputChatBox( "ستموت بعد 10 ثواني أنتظر ... ", player, 255, 0, 0 ) if name ~= "" then end end end ) [/lua] Edited August 15, 2015 by Guest Link to comment
khaledmhammed Posted August 15, 2015 Author Share Posted August 15, 2015 element at argumein طلع لي الخطاء بتايمر و الفريز Link to comment
khaledmhammed Posted August 15, 2015 Author Share Posted August 15, 2015 مو شغال ومافي اخطاء .. addEventHandler("onClientGuiClick",root, function(player) if source == GUIEditor.button[10] then setTimer( setElementHealth, 10000, 1,0, player ) setElementFrozen ( true , player ) outputChatBox( "ستموت بعد 10 ثواني أنتظر ... ", player, 255, 0, 0 ) if name ~= "" then end end end ) Link to comment
LoOs Posted August 15, 2015 Share Posted August 15, 2015 عدل onClientGuiClick الى onClientGUIClick Link to comment
LoOs Posted August 16, 2015 Share Posted August 16, 2015 addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[10] then setTimer( setElementHealth, 10000,1, getLocalPlayer() ,0.0 ) setElementFrozen ( getLocalPlayer() , true ) outputChatBox( "ستموت بعد 10 ثواني أنتظر ... ") if name ~= "" then end end end ) Link to comment
khaledmhammed Posted August 16, 2015 Author Share Posted August 16, 2015 ايوةة كذا يوديع كفو والله ماقصصرت وتعبتك معي هه ع راسسي والله Link to comment
LoOs Posted August 16, 2015 Share Posted August 16, 2015 ايوةة كذا يوديع كفو والله ماقصصرت وتعبتك معي هه ع راسسي والله انا الي تعبتك معي على اكوادي الفاشلة , Link to comment
khaledmhammed Posted August 16, 2015 Author Share Posted August 16, 2015 ايوةة كذا يوديع كفو والله ماقصصرت وتعبتك معي هه ع راسسي والله انا الي تعبتك معي على اكوادي الفاشلة , هههههه لا ي بعدهم الحاجة لي ماتعب ع العموم وافي والله 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