#StrOnG_,) Posted May 31, 2015 Share Posted May 31, 2015 السلامم عليكم شباب أبي كود من اضغط على زر يعطيني سلاح يعطيني عبر الأيدي انا احدده وشكرآ , ~ Link to comment
#StrOnG_,) Posted May 31, 2015 Author Share Posted May 31, 2015 كذا يصير الكود ؟ addEventHandler ( "onClientGUIClick", root, function () if source == x8 then giveWeapon ( source, 31, 200 ) end end ) Link to comment
#StrOnG_,) Posted May 31, 2015 Author Share Posted May 31, 2015 (edited) * Edited May 31, 2015 by Guest Link to comment
#|_oskar_|# Posted May 31, 2015 Share Posted May 31, 2015 يعني كيف ؟ سوى ترايقر triggerServerEvent Link to comment
TreKa Posted May 31, 2015 Share Posted May 31, 2015 -- Clinet Side ! Button = guiCreateButton(0,0,0,0,"M4",false) addEventHandler("onClientGUIClick",root, function () if source == Button then triggerServerEvent("Weapon", localPlayer) end end ) -- Server Side ! addEvent("Weapon",true) addEventHandler("Weapon",root, function () giveWeapon(31,200) end ) جرب Link to comment
#StrOnG_,) Posted May 31, 2015 Author Share Posted May 31, 2015 من اكتب debugscript 3 بآف 8 ما يطلع شي Link to comment
TreKa Posted May 31, 2015 Share Posted May 31, 2015 من اكتب debugscript 3 بآف 8ما يطلع شي الزر يظهر عندك؟ لو لا جرب هذه Button = guiCreateButton(50,25,75,100,"M4",false) addEventHandler("onClientGUIClick",root, function () if source == Button then triggerServerEvent("Weapon", localPlayer) end end ) Link to comment
#StrOnG_,) Posted May 31, 2015 Author Share Posted May 31, 2015 هو يسوي زر لحاله ؟ , ولا انا لازم اسوي Link to comment
#StrOnG_,) Posted May 31, 2015 Author Share Posted May 31, 2015 يب طلع الزر بس من اضغط عليه ما يسوي شي Link to comment
TreKa Posted May 31, 2015 Share Posted May 31, 2015 هو يسوي زر لحاله ؟ , ولا انا لازم اسوييب طلع الزر بس من اضغط عليه ما يسوي شي جرب هذه راح يظهر لك الزر لحاله و توني مجربة علي السيرفر المجاني -- Client Side ! Button = guiCreateButton(50,25,75,100,"M4",false) addEventHandler("onClientGUIClick",root, function () if source == Button then triggerServerEvent("Weapon", localPlayer) end end ) -- Server Side ! addEvent("Weapon",true) addEventHandler("Weapon",root, function () giveWeapon(source,31,200) end ) Link to comment
#|_oskar_|# Posted May 31, 2015 Share Posted May 31, 2015 -- Clinet Side ! Button = guiCreateButton(0,0,0,0,"M4",false) addEventHandler("onClientGUIClick",root, function () if source == Button then triggerServerEvent("Weapon", localPlayer) end end ) -- Server Side ! addEvent("Weapon",true) addEventHandler("Weapon",root, function () giveWeapon(31,200) end ) جرب bool giveWeapon ( ped thePlayer, int weapon [, int ammo=30, bool setAsCurrent=false ] ) Link to comment
TreKa Posted May 31, 2015 Share Posted May 31, 2015 -- Clinet Side ! Button = guiCreateButton(0,0,0,0,"M4",false) addEventHandler("onClientGUIClick",root, function () if source == Button then triggerServerEvent("Weapon", localPlayer) end end ) -- Server Side ! addEvent("Weapon",true) addEventHandler("Weapon",root, function () giveWeapon(31,200) end ) جرب bool giveWeapon ( ped thePlayer, int weapon [, int ammo=30, bool setAsCurrent=false ] ) يب خطأ مني وعدلته قبل ردك واشتغل Link to comment
#StrOnG_,) Posted May 31, 2015 Author Share Posted May 31, 2015 يب اشتغل تسلم بس ابي اخفي الزر الثاني يعني الكود يسوي زر ثاني , ابي اخفيه Link to comment
TreKa Posted May 31, 2015 Share Posted May 31, 2015 يب اشتغل تسلم بس ابي اخفي الزر الثاني يعني الكود يسوي زر ثاني , ابي اخفيه -- Clinet Side ! addEventHandler("onClientGUIClick",root, function () if source == Button then -- حط اسم الزر triggerServerEvent("Weapon", localPlayer) end end ) Link to comment
#StrOnG_,) Posted May 31, 2015 Author Share Posted May 31, 2015 تسلم والله ما قصرت ,, تمت الأفادة Link to comment
TreKa Posted May 31, 2015 Share Posted May 31, 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