Jump to content

Max+

Members
  • Posts

    1,363
  • Joined

  • Last visited

Everything posted by Max+

  1. i added some timer for update , function acc ( ) for _, account in pairs( getElementsByType ('player')) do account = getAccountName(getPlayerAccount( account )) triggerClientEvent('onAccountsSend',root, account ) end end addEventHandler('onPlayerLogin',root, acc ) function mmm( ) setTimer ( acc, 1000, 1 ) end addEventHandler('onPlayerJoin', root, mmm ) addEventHandler('onResourceStart', root, mmm )
  2. Change Server to this , addEventHandler('onPlayerLogin',root, function ( ) for _, account in pairs( getElementsByType ('player')) do account = getAccountName(getPlayerAccount( account )) triggerClientEvent( 'onAccountsSend',root, account ) end end )
  3. what do you mean ? it's get all the accounts in the server and add them to the gridlist as you want .
  4. Copy My Post again Login - > start the script .
  5. --Client --Client function gridacc (account) local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then local row = guiGridListAddRow ( playerList ) guiGridListSetItemText(playerList, row, column, account, false, false ) end end addEvent("onAccountsSend",true) addEventHandler("onAccountsSend",root, gridacc) addEventHandler ( 'onClientResourceStart', resourceRoot, gridacc ) ---server addEventHandler('onPlayerLogin',root, function ( ) for _, account in pairs( getAccounts( ) ) do account = getAccountName( account ) triggerClientEvent( 'onAccountsSend',root, account ) end end ) Make sure your logged in before start the script . Edited @
  6. طيب سو القريد لست حقتك والنافذة وانا اكمل لك الباقي لاني ماعرف كيف اشرح حلها
  7. شوف الموضوع ذا وتعلم منه ، https://forum.multitheftauto.com/viewtopic.php?f=119&t=46391
  8. --Client function toggleGUI() if guiGetVisible(GUIEditor_Window[1]) == true then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addEvent("toggleGUI",true) addEventHandler("toggleGUI",root,toggleGUI) ---server addEventHandler("onPlayerJoin",root, function () bindKey(source,"F3","down",showGUI) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"F3","down",showGUI) end end) function showGUI(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin")) then triggerClientEvent(thePlayer,"toggleGUI",thePlayer) else outputChatBox(" You Dont Have Access to This Panel",thePlayer,255,0,0) end end
  9. you have an Extra end , addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "Y", "down", "chatbox", gangChat ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "Y", "down", "chatbox", gangChat ) end ) function gangChat ( thePlayer, _, ... ) local isInvited = getElementData ( thePlayer, "invited" ) or false if ( isInvited ) then local text = table.concat ( { ... }, " " ) if ( #text > 0 ) then outputChatBox ("#FF32AA [GangChat] "..getPlayerName(thePlayer)..": #FFFFFF" ..text, thePlayer, 255, 255, 255, true ) end end end addCommandHandler ( "gangChat", gangChat ) function invitePlayer ( thePlayer, _, playerName ) if not playerName then return end local playerToInvite = getPlayerFromName(playerName) if ( isElement ( playerToInvite ) ) and getElementType( playerToInvite ) == "player" then -- At function 'getElementType' you have 'argument' as the argument but this variable doesn't exist so I supposed is 'playerToInvited' setElementData ( playerToInvite, "invited", true ) outputChatBox ( "You have been invited to the chat.", playerToInvite) else outputChatBox ( "There is no such a player!", thePlayer ) end end addCommandHandler ( "invite", invitePlayer )
  10. Max+

    Need HElp !!

    Great Job , See it's nice to depend to yourself ,
  11. كودك يطلع الكلام مرتين انا ابي اذا كتبت هاي يطلع هيلو طف مود play وجرب السكربت على مود fallout ...
  12. --serverside , addEventHandler ( 'onPlayerLogin', resourceRoot, function ( player ) if not ( isAllownedPlayer(player)) then return end bindKey ( player, 'u', 'down', 'chatbox', adminchat ) end )
  13. Max+

    Question

    You'r welcome ,
  14. I have Edited My Post , Copy it again ,
  15. Max+

    Question

    well , i tryed for 4 hours to fix this dam script but if i remove the loop and make triggerEvent it create 1 weapon but not firing and if i return the loop it create 1 weapon for every car in the server ... and keep firing i tryed to make it 2 commands , but still the same dam issue i guess maybe it's a bug or something ? addCommandHandler ('mini1', function ( ) for _, nThat in ipairs ( getElementsByType ('vehicle' )) do local x, y, z = getElementPosition ( nThat ) local minigunw = createWeapon ( 'minigun', x, y, z +1 ) setWeaponClipAmmo ( minigunw,99999) setWeaponState ( minigunw,"firing") setWeaponTarget ( minigunw ,nThat, 255 ) setWeaponProperty( minigunw, "fire_rotation", 0, -30, 0 ) end end ) addCommandHandler ('mini2', function ( ) for _, nMax in ipairs ( getElementsByType ('player' )) do local nx, ny, nz = getElementPosition ( nMax ) local minigunw = createWeapon ( 'minigun', nx, ny, nz +1 ) setWeaponClipAmmo ( minigunw,99999) setWeaponState ( minigunw,"firing") setWeaponTarget ( minigunw ,nMax, 255 ) setWeaponProperty( minigunw, "fire_rotation", 0, -30, 0 ) end end )
  16. Hello , if it's a custom event you need to do it like this , addEvent('Linkin', true) addEventHandler('Linkin', root, function ( ) ---- if it's an mta function like onPlayerChat, onPlayerJoin ... etc no need , about the Encryption they added Extra because Obfuscation it's hard to decompile
  17. حياك الله حبيب] ,
  18. Max+

    Question

    Yeah Now it shoots on vehicles and the other one not do anything because there is no players you have to be out of the vehicle so it work ، i have an idea of making 1 mini gun shoot at 2 targts , but i am going out now when iam back , i will do it in other way .
  19. Max+

    Question

    Now it works , addCommandHandler ('mini', function ( ) for _, nMax in ipairs ( getElementsByType ('player' )) do for _, nThat in ipairs ( getElementsByType ('vehicle' )) do local nx, ny, nz = getElementPosition ( nMax ) local x, y, z = getElementPosition ( nThat ) local minigunw = createWeapon ( 'minigun', nx, ny, nz +1 ) local minigunw = createWeapon ( 'minigun', x, y, z +1 ) setWeaponClipAmmo ( minigunw,99999) setWeaponState ( minigunw,"firing") setWeaponProperty( minigunw, "fire_rotation", 0, -30, 0 ) setWeaponTarget ( minigunw ,nMax, 255 ) setWeaponTarget ( minigunw ,nThat, 255 ) end end end )
  20. Max+

    Question

    Try Change this , x, y, z = getElementPosition ( nMax ) x, y, z = getElementPosition ( nThat ) To , yz, yy, zz = getElementPosition ( nMax ) x, y, z = getElementPosition ( nThat )
  21. Max+

    Question

    what's the problem with the rotation ? + see the example about it , CreateWeapon
  22. حلو , خش الموقع ذا , http://www.touslesdrivers.com/index.php ... &v_forum=0 وشوف الصورة اول ماتخش ثبت البلوقن حقهم زي ماهو موضح بالصورة رقم 1 اضغط عليه ويحمل منك وخليه لين يتثبت , بعد مايتثبت اضغط على اللي بالصوره رقم 2 , وراح يفحص جهازك كامل وراح تطلع لك تعريفات , صور لي الصفحة حقت التعريفات ولا تسكرها , ,
  23. بالضبط , كيف يقول ينفع مع دخول الاعب للسيرفر ؟
  24. رسالة الخطأ بالصورة تقول اولا ثبت تعريف انتل وبعدين تثبت تعريف نيفيديا اضغط شعار الوندز + حرف R ويطلع لك مستطيل اكتب فيه dxdiag وتطلع لك نافذة صور لي اول قسم + ثاني قسم
×
×
  • Create New...