Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. -- Server Side theTeams = { "Team1" , "Team2" , "Team3" , } function CreateTeams ( ) for _, teams in ipairs ( theTeams ) do createTeam ( teams, 255, 0, 0 ) end for _,thePlayer in ipairs ( getElementsByType ( "player" ) ) do bindKey ( thePlayer, "F4", "up", SetRandomTeam ) end end addEventHandler("onResourceStart", resourceRoot, CreateTeams ) function DeleteTeams ( ) for _, teams in ipairs ( theTeams ) do destroyElement ( teams ) end end addEventHandler("onResourceStop", resourceRoot, DeleteTeams ) function SetRandomTeam ( thePlayer ) theRandom = math.random( 1, 3 ) theSelection = theTeams [ theRandom ] if theSelection then setPlayerTeam ( thePlayer, getTeamFromName ( theSelection ) ) outputChatBox ( "* Your Team Is : ".. getTeamName ( getPlayerTeam ( thePlayer ) ), thePlayer, 255, 255, 0, true ) end end
  2. الأكواد جايبهم نسخ لصق شوي من الويكي و شوي من مودات @@" اولاً وين التيمات ؟؟
  3. setElementPosition -- السباون setElementModel -- الشخصية giveWeapon -- السلاح
  4. -- Server Side theTeam = createTeam ("xD",0,150,255) addCommandHandler("join", function ( thePlayer ) setPlayerTeam ( thePlayer, theTeam ) end )
  5. 1- addCommandHandler 2- setPlayerTeam
  6. false اها يعني اذا صارت اللوحة تبدأ الوظيفة ممتاز جداً
  7. حاط فيه كود ماينفع CreateLabel عندكـ خطأ بـ و يجب مراعات الإيفنت يعني تغيير البنق واضح شيء متكرر مو ثابت اما انت حاط إيفنت عند تغيير النك تبدأ الوظيفة @@" playerPing = guiCreateLabel (6,120,300,70,"Your Ping :", false, info ) guiLabelSetColor(playerPing,0,127,255) addEventHandler ("onClientRender", root, function ( ) guiSetText (playerPing, "Your Ping :".. getPlayerPing(localPlayer)) end )
  8. اطرح كودكـ , وبالنسبة للتاج خل صاحب المود يضبطه لك
  9. -- Server addEventHandler("onResourceStart", resourceRoot, function ( ) triggerClientEvent("ServerName",root,getServerName()) end ) -- Client addEvent("ServerName",true) addEventHandler("ServerName",root, function ( theName ) guiSetText( LABEL , theName ) end )
  10. FTP حمل الملف عن طريق الـ UTF-8 و سو تحرير بأحد المفكرات وحول الترميز إلى و ارفعه إلى نفس المسار مع إستبدال الملف القديم
  11. هههههههههههههههههههههههه بالموضوع مكتوب مانبي أكواد منقولة وانت تقول سووا موضوع وحطوا فيه الأكواد
  12. إذا كنت تقصد ميوت من سكربت خآإرجي فـ اعتقد setAccountData
  13. https://forum.multitheftauto.com/viewtop ... 19&t=47268
  14. https://wiki.multitheftauto.com/wiki/OnClientMouseEnter
  15. هو حاط الكود يآخذ مرة وحدة @@" ElementData احذف كل شيء يخص الـ
  16. @@" هذآ اختصآر لـ كود وين الكود الأساسي ؟ الكود الاساسي بالويكي موجود https://wiki.multitheftauto.com/wiki/Local صحيح ؟
  17. وش دخل attachedTo تربط السياره بالاعب ؟ Syntax addEventHandler ( eventName, attachedTo, handlerFunction ) https://wiki.multitheftauto.com/wiki/AddEventHandler
  18. 3NAD

    مساعده

    جرب ذآ بـ كلنت outputChatBox ( "Super Grenade Well End After : 3 Minutes", 255, 255, 0, true )
  19. PlayerTeam = guiCreateLabel(10,135,300,20,'',false,GUIEditor_Tab[1]) guiLabelSetColor(PlayerTeam,255,255,0) addEventHandler("onClientRender",root, function() local playerTeam1 = getPlayerTeam ( localPlayer ) if ( playerTeam1 ) then guiSetText ( PlayerTeam, "Your Team : ".. getTeamName( playerTeam1 ) ) else guiSetText ( PlayerTeam, "Team: None" ) end end )
  20. اطرح الككود اللي انت سويته #
×
×
  • Create New...