tourra Posted June 19, 2013 Author Share Posted June 19, 2013 ممكن مثال على ؟ دذذ getResourceState startResource Link to comment
iPrestege Posted June 19, 2013 Share Posted June 19, 2013 هذا كود عطيتة واحد قبل كم يوم .. -- # يحتاج صلاحيات لـ تشغيل السكربت ( resource.MyResource ) !!! -- # Client Side : addEventHandler('onClientGUIClick',MyButton, function ( ) triggerServerEvent ( 'StopFreeroam',localPlayer ) guiSetEnabled ( MyButton,false ) setTimer(guiSetEnabled,2500,1,MyButton,true) end,false ) -- # Server Side : addEvent('StopFreeroam',true) addEventHandler('StopFreeroam',root, function ( ) local Freeroam = getResourceFromName ( 'freeroam' ) if getResourceState ( Freeroam ) ~= 'running' then startResource ( Freeroam ) end end ) Link to comment
tourra Posted June 19, 2013 Author Share Posted June 19, 2013 للاسف غلط ؟؟ [15:33:44] WARNING: xtest\s.lua:6: Access denied @ 'startResource' تجي ذذ الرسالة عند تشغيل المود Link to comment
iPrestege Posted June 19, 2013 Share Posted June 19, 2013 قلت لك ضيف لـ قروب فية صلاحية تشغيل المودات ذذ كونسول ادمن اي شيء فية صلاحية ! resource.MyResourceName Link to comment
tourra Posted June 19, 2013 Author Share Posted June 19, 2013 تسلم يا بريستج بس يعني االلاعب لو ضغط الزر الثاني ابيه يخرج من المود ذذ و يروح الثاني ؟؟ كيف ؟ Link to comment
iPrestege Posted June 19, 2013 Share Posted June 19, 2013 يعني تسوي ستوب ؟ stopResource Link to comment
tourra Posted June 19, 2013 Author Share Posted June 19, 2013 افهم ض1 انا ابيه لما يختار الفري روم يطفي مثلا الشوب و يروح الفري روم و لما يضغط الشوب يطفي الفري روم و يروح الشوب فاهم ؟؟ مثال بس Link to comment
./BlackBird# Posted June 19, 2013 Share Posted June 19, 2013 افهم ض1 انا ابيه لما يختار الفري روم يطفي مثلا الشوب و يروح الفري رومو لما يضغط الشوب يطفي الفري روم و يروح الشوب فاهم ؟؟ مثال بس طيب؟ سوي مثل ما قالك برستيج Link to comment
PaiN^ Posted June 19, 2013 Share Posted June 19, 2013 عشان تسوي هذا الشي واحد من 3 : 1 - setElementData - getElementData 2 - setElementDimnsion - getElementDimnsion 3 - getPlayerTeam - setPlayerTeam إختار اللي اسهلك وعدل على الفري روم على أساسه يعني خليه يفتح لتيم معين, أو لاعبين في عالم معين أو عندهم داتا معينة 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