Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. addEvent("ee",true) addEventHandler("ee",root, function( ) local theVehicle = getPedOccupiedVehicle ( source ) if theVehicle then addVehicleUpgrade ( theVehicle, 1082 ) end end )
  2. -- # Server Side addEventHandler -- استخدم الحدث اللي تبية setElementVisibleTo getPlayerTeam getTeamName
  3. -- # Client Side !! addEventHandler "onClientGUIClick" -- Event Handler ! guiGridListGetSelectedItem guiGridListGetItemText triggerServerEvent -- # Server Side !! addEvent addEventHandler addVehicleUpgrade getPedOccupiedVehicle
  4. كلنت مع سيرفر ؟ ي آلهي ._. ؟
  5. عارف ي تيتي بس هو طلب اذا احد ذهل ماهو هو نفسة عرفت ذذ ؟
  6. onClientPlayerJoin ما رح يضبط معه لو يستخدم حدث onClientResourceStart المفروض يستخدم حدث + هنا ماله أي داعي أبداً destroyElement + isElement إستخدام .. ضروري في كل موضوع لازم تثبت انه كود برستيج خطا ههههههههههــ حبيبي السالفة مهي سالفة إثبات .. بس لزوم نعلم الرجال أخطائه عشان يتعلم منها .. وبعدين ماشوف فيها أي شي ، كل إنسان يغلط ؛ وخل عنكـ الحقد أنت ذذ ! لما يدخل اللاعب ) .. يسوي إشارة لجميع اللاعبين إلي بالسيرفر ) onClientPlayerJoin أخوي بسول .. لو تشوف الويكي مكتوب أن حدث .. مع الحدث .. رح يشغل الصوت لجميع اللاعبين لما يدخل أي لاعب .. يعني الصوت يشتغل عند الكل مهو بس عند إلي يدخل playSound ولما يربط وظيفة . فاهمين يَ حبي إن المقصود منها منع تكرار الصوت .. لكن أكيد 100% قبل ما يخلص تحميل اللاعب ما رح يشتغل الصوت لأن وظيفة تشغيل الصوت ما تجي غير بجانب كلنت أصلاً , ولو سوا الأدمن ريستارت للسكربت والصوت شغال عند اللاعب .. رح يتقفل الصوت ثم يرجع يشتغل .. يعني ما يحتاج تتحقق ذذ . Edit: شف أخوي لو الرجال يبي الصوت يشتغل عند الجميع .. يستخدم أكوادكـ ويستخدمها كلها .. : لكن لو يبي الصوت للاعب الي دخل فقط ، يستخدم onClientResourceStart playSound اعتقد انة قال يبي اذا احد دخل يجي صوت ؟ ماعتبر فيها اي خطأ بـ النسبة لـ سطرك الاول وعارف انة ماتصير ! لازم كلنت ستارت ذذ بس هو طلب اذا احد دخل : السلام عليكم ابي كود اذا احد دخل يجي صوت ذذ
  7. onClientPlayerJoin ما رح يضبط معه لو يستخدم حدث onClientResourceStart المفروض يستخدم حدث + هنا ماله أي داعي أبداً destroyElement + isElement إستخدام .. لا المفروض يستخدم اللي عطيتة لانة يبية يوم يدخل لاعب ماهو هو نفسة ! ذذ مثل ماقال اذا احد دخل .. ذذ
  8. I Said server side not a client side next time use lua/lua tag .
  9. @ ice_brasil Are sure about the weather id ? At line 6 .
  10. Maybe they have a problem or errors with the data, but if you use it properly there is no problem as far as i know and am using a data with my game mode and i use the data in all my resources and every thing fine but maybe this function make some lag -.- any way it's your option .
  11. Good job sasuke and nice design .
  12. Maybe you can make a function and set a data using the setElementData function and if getElementData then get this function results and when you need to use it just check for the data .
  13. I Don't know i never use this script .
  14. You have to use : getElementsByType And loop the players : And you're script should be : -- # Server Side local zombiesTeam = createTeam ("Zombies", 255 , 0 , 0) function zombieSistem( ) for i,player in ipairs ( getElementsByType ( "player" ) ) do x,y,z = getElementPosition( player ) zombie1 = exports [ "slothBot" ]:spawnBot( x+5,y+5,z+0.5 , 0, 46, 0, 0, zombiesTeam , 0, "hunting", true ) end end addEventHandler ("onResourceStart",resourceRoot, zombieSistem) This script will get all players and export the function
  15. I Do nothing just you have a simple mistake with a variable
  16. بـ يشتغل بس الافضل تحقق شرط الوظيفة
  17. لو سويتة كذا بيطلع : "..Text.." المفروض : outputChatBox(""..Text.."",player ) انا اختصرت بـ tostring ( .. )
  18. You have to get it when the player leave the server and set it to the player account when the player login get the account data and set the walking style .
  19. Vehicle and vehicle 'v' !
  20. addCommandHandler ("Prestege", -- Command function ( ) -- Function local Text = 2000 -- a Text -- هذا اللي بنطلعة بالشات outputChatBox( tostring ( Text ) ,player ) -- هنا سوينا -- tostring -- لانة الكلام ماسوينا لة سترنق " " -- و لو تشوف الويكي يطلب السترنق "" -- تم # end )
  21. اذا قال صاحب الموضوع بغيت شرح لـ توسترنق ذيك الساعه شرحتها لة هو ..
  22. تسال فـ مواضيع غيرك و تغير مسار الموضوع ؟ ! اعذرني مآقدر آشرح لك ..
  23. 1- debugscript 3 ? 2- Are u sure about the data?
×
×
  • Create New...