K̷i̷n̷g̷ x̷D̷ツ Posted June 1, 2017 Share Posted June 1, 2017 السلام عليكم ورحمة الله وبركاته انا سويت سكربت بسيط بس فيه خطاء ومدري وين المهم لمني اضغط عالتدريب الصندوق ما يبين وما ياخذ فلوس من اللاعب الخطاء بصنع الصندوق او التحقق منه بس مدري ما يكتبلي اي شي بالديبق سكربت 3 فياريت اي شخص يساعدني Spoiler client side function veo(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement, x, y, z) if ( source == trnbtn ) then local wep = guiGridListGetItemText ( grd1, guiGridListGetSelectedItem ( grd1 ), 1 ) if wep == "" then return outputChatBox("اختر السلاح",255, 0, 0,true) end if wep == "Colt 45" then local money = getPlayerMoney(source) if (money >= 20000) then triggerServerEvent("tstt",localPlayer,wep) local voo = createObject (1224,298.29718017578, -13.848154067993, 1000.8,0,0,0) setElementInterior(voo,1) setElementHealth(voo,1) if hitElement == voo then triggerServerEvent("booh",localPlayer) elseif wep == "Sawed-off" then triggerServerEvent("so",localPlayer,wep1) elseif wep == "Tec-9" then triggerServerEvent("te",localPlayer,wep3) elseif wep == "Uzi" then triggerServerEvent("uz",localPlayer,wep2) end end end end end addEventHandler ("onClientGUIClick",root,veo) addEventHandler("onClientPlayerWeaponFire", root, veo) المشكله اضن في كلاينت سايد وانا متأكد Link to comment
K̷i̷n̷g̷ x̷D̷ツ Posted June 1, 2017 Author Share Posted June 1, 2017 خلاص صلحته كانت مشكله في الترتيب شوي واجهت مشاكل معه كثيره Spoiler function obj() voo = createObject (1224,298.29565429688, -16.959276199341, 1001,0,0,0) setElementHealth(voo,1) setElementInterior(voo,1) end function taar(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement, x, y, z) local wep11 = guiGridListGetItemText ( grd1, guiGridListGetSelectedItem ( grd1 ), 2 ) if hitElement == voo then if wep11 == 22 then triggerServerEvent("tstt",source) end end end addEventHandler("onClientPlayerWeaponFire", root, taar) function veo() if ( source == trnbtn ) then local wep = guiGridListGetItemText ( grd1, guiGridListGetSelectedItem ( grd1 ), 1 ) local moneye = getPlayerMoney(source) if wep == "" then return outputChatBox("اختر السلاح",255, 0, 0,true) end if wep == "Colt 45" then if (moneye >= 20000) then obj() taar() outputChatBox("shot the box") triggerServerEvent("takemoney",localPlayer) elseif wep == "Sawed-off" then triggerServerEvent("so",localPlayer,wep1) elseif wep == "Tec-9" then triggerServerEvent("te",localPlayer,wep3) elseif wep == "Uzi" then triggerServerEvent("uz",localPlayer,wep2) end end end end addEventHandler ("onClientGUIClick",root,veo) ممكن اي شخص يصلحه لي ترايقر tstt ما يشتغل Link to comment
^iiEcoo'x_) Posted June 1, 2017 Share Posted June 1, 2017 triggerServerEvent("tstt",localPlayer) 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