+Source|> Posted June 17, 2017 Posted June 17, 2017 سلام عليكم ابي مثلا بسوي امر بالسيريالات مثلا لوحه تفتح لسيريال معين مثل ما فيه لوحه تفتح لجروب معين My Website
` Allawi Posted June 17, 2017 Posted June 17, 2017 -- Server addCommandHandler getPlayerSerial triggerClientEvent -- Client guiGetVisible guiSetVisible showCursor
+Source|> Posted June 17, 2017 Author Posted June 17, 2017 5 minutes ago, ` Allawi said: -- Server addCommandHandler getPlayerSerial triggerClientEvent -- Client guiGetVisible guiSetVisible showCursor ابي بس شرح ل getPlayerSerial وكيف اسويه My Website
` Allawi Posted June 17, 2017 Posted June 17, 2017 if ( getPlayerSerial ( thePlayer ) == "Your Serial" ) then
+Source|> Posted June 17, 2017 Author Posted June 17, 2017 طيب هذا سويته وما اشتغل شوف ملف سيرفر function btn(player) if ( getPlayerSerial ( thePlayer ) == "6C3C11E06917CEA5E3EEF0F5A89B62A1" ) then triggerClientEvent( player, "ss", player ) end end addEventHandler("onPlayerJoin", root, btn) كلنت addEvent("ss", true) addEventHandler("ss", root, function() guiSetEnabled(GUIEditor.button[1], true) end ) My Website
+Source|> Posted June 17, 2017 Author Posted June 17, 2017 1 minute ago, !#NssoR_) said: player إلي thePlayer غير غيرتها بس الزر ما يظهر لي My Website
` Allawi Posted June 17, 2017 Posted June 17, 2017 ممكن أعرف من وين جبت الارقمنت الأول في حدث الدخول ؟ راجع صفحة الويكي OnPlayerJoin
+Source|> Posted June 17, 2017 Author Posted June 17, 2017 6 minutes ago, ` Allawi said: ممكن أعرف من وين جبت الارقمنت الأول في حدث الدخول ؟ راجع صفحة الويكي OnPlayerJoin انا اصلا ما ابيها بحدث ابيها لوحه عاديه صاحب السيريال يظهر له الزر ابيها كذا function (player) if ( getPlayerSerial ( player ) == "6C3C11E06917CEA5E3EEF0F5A89B62A1" ) then triggerClientEvent( player, "ss", player ) end end يقول لازم اسمي الفنكشن My Website
` Allawi Posted June 17, 2017 Posted June 17, 2017 20 minutes ago, A7MEDENO said: انا اصلا ما ابيها بحدث ابيها لوحه عاديه صاحب السيريال يظهر له الزر ابيها كذا function (player) if ( getPlayerSerial ( player ) == "6C3C11E06917CEA5E3EEF0F5A89B62A1" ) then triggerClientEvent( player, "ss", player ) end end يقول لازم اسمي الفنكشن طيب عرف الوظيفة وشلون تبيه يشتغل وهو مو معرف ومافيه حدث ؟
+Source|> Posted June 17, 2017 Author Posted June 17, 2017 Just now, ` Allawi said: طيب عرف الوظيفة وشلون تبيه يشتغل وهو مو معرف ومافيه حدث ؟ وش الحدث اللي يشغله؟ My Website
^iiEcoo'x_) Posted June 17, 2017 Posted June 17, 2017 2 minutes ago, A7MEDENO said: وش الحدث اللي يشغله؟ 'onPlayerJoin' 'onResourceStart' - Hashemite Kingdom Of Jordan -
Dragon Fire Posted June 17, 2017 Posted June 17, 2017 مثال بسيط وهو اذا كتب ذا الامر يتحقق من السيريال وبعدها يعطيه سلاح function DragonFire(thePlayer) if ( getPlayerSerial(thePlayer) == "your serial" ) then giveWeapon(thePlayer,31,1000,true) end end addCommandHandler( "weapon", DragonFire ) عاد انت حاول تعدل الاكواد وتضيف عليها
+Source|> Posted June 17, 2017 Author Posted June 17, 2017 Just now, Dragon Fire said: مثال بسيط وهو اذا كتب ذا الامر يتحقق من السيريال وبعدها يعطيه سلاح function DragonFire(thePlayer) if ( getPlayerSerial(thePlayer) == "your serial" ) then giveWeapon(thePlayer,31,1000,true) end end addCommandHandler( "weapon", DragonFire ) عاد انت حاول تعدل الاكواد وتضيف عليها شكرا بس انا اسئل عن زر My Website
` Allawi Posted June 17, 2017 Posted June 17, 2017 Just now, A7MEDENO said: وش الحدث اللي يشغله؟ أي حدث تبيه مثلا عند كتابة أمر أو عند ضغط زر أو أي شي ألمهم إنك تستخدمه بالطريقة الصحيحة وتتبع تعليمات الويكي .. 1
Dr.OsCaR Posted June 30, 2017 Posted June 30, 2017 ? function btn(player) if ( getPlayerSerial ( thePlayer ) == "6C3C11E06917CEA5E3EEF0F5A89B62A1" ) then triggerClientEvent( player, "ss", player ) end end addEventHandler("onPlayerJoin", root, btn) سوي thePlayer الى player
coNolel Posted June 30, 2017 Posted June 30, 2017 24 minutes ago, Dr.OsCaR said: ? function btn(player) if ( getPlayerSerial ( thePlayer ) == "6C3C11E06917CEA5E3EEF0F5A89B62A1" ) then triggerClientEvent( player, "ss", player ) end end addEventHandler("onPlayerJoin", root, btn) سوي thePlayer الى player IT Projet Manager
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