MiLaNo-ميلآنو Posted October 26, 2016 Share Posted October 26, 2016 السلام عليكم ورحمه الله وبركاته يا شباب طالبكم بطلبين لاهنتم الطلب الاول : ابي كود يجعل اني اضغط علي زر بوتون يعطني درع و الطلب الثاني : ابي كود يجعل اني اضغط علي زر يكتب لي في الدردشه تم اعطاءك درع وشكرا مبتدا بالبرمجه .. Link to comment
</Mr.Tn6eL> Posted October 26, 2016 Share Posted October 26, 2016 onClientGUIClick triggerServerEvent setPedArmor outputChatBox Link to comment
MiLaNo-ميلآنو Posted October 26, 2016 Author Share Posted October 26, 2016 لو سمحت ممكن كود الكتابه بالشات جاهز ؟ Link to comment
iPrestege Posted October 27, 2016 Share Posted October 27, 2016 الكتابة بالشات جاهز؟ اسهل شيء هو : -- Client outputChatBox ( string text [,int r=231, int g=217, int b=176, bool colorCoded=false ] ) -- Server outputChatBox ( string text [, element visibleTo=getRootElement(), int r=231, int g=217, int b=176, bool colorCoded=false ] ) 1 Link to comment
Professional Posted October 27, 2016 Share Posted October 27, 2016 (edited) كلنت addEventHandler("onClientGUIClick",root, function () if source == اسم زر then triggerServerEvent ("armor", getLocalPlayer()) end end) سيرفر addEvent( "armor", true) addEventHandler( "armor", root, function () setPedArmor ( source , 100 ) outputChatBox("تم اعطائك درع", player, 220, 0, 0 ) end) Edited October 27, 2016 by Professional Link to comment
Abdul KariM Posted October 27, 2016 Share Posted October 27, 2016 ^ ماهي معرفة player سطر 5 سيرفر سايد Link to comment
!#NssoR_) Posted October 27, 2016 Share Posted October 27, 2016 addEvent( "armor", true) addEventHandler( "armor", root, function () setPedArmor ( client , 100 ) outputChatBox("تم اعطائك درع", client, 220, 0, 0 ) end) Link to comment
MiLaNo-ميلآنو Posted October 27, 2016 Author Share Posted October 27, 2016 كفوو شكرا لكم يا شباب تم حل المشكله : ) 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