Jump to content

Sora

Members
  • Posts

    698
  • Joined

  • Last visited

Everything posted by Sora

  1. i think that you should use functions like this : https://wiki.multitheftauto.com/wiki/AttachElements or https://wiki.multitheftauto.com/wiki/Att ... tToElement
  2. arezu do you mean this file ? visibility.lua and if you mean it then what i should do with this ? because i changed setElementAlpha to setElementDimension and the script spawning who press space to the sea i think because script set his Dimension to "0" addEventHandler("onClientRender", getRootElement(), function() local player = getElementsByType("player") for i = 1, #player do if(getElementData(player[i], "respawn.playing"))then local alpha = 0 if(player[i] == getLocalPlayer())then alpha = getElementData(player[i], "race.alpha") or 255 end setElementAlpha(player[i], alpha) local vehicle = getPedOccupiedVehicle(player[i]) if(vehicle ~= false)then setElementAlpha(vehicle, alpha) end end end end)
  3. thank you so much for response but error isn't from the race script , this happening only when car blown and got a high lag
  4. hey guys , i have errors with arezu's script when player(s) playing in training after he(they) died other players see him(them) burning when they playing and got a high lag screenshots : the resource : https://community.multitheftauto.com/ind ... ls&id=3667 needing the solution
  5. Just a comment passing by.
  6. Skin Mod : https://community.multitheftauto.com/ind ... ls&id=4850
  7. changing credits , al3grab's warpanel uploaded by x[Eminem]x https://community.multitheftauto.com/ind ... ls&id=4819
  8. yes thank you for helping me the problem was this model : txd16 = engineLoadTXD ( "tec9.txd" ) engineImportTXD ( txd16, 372 ) dff16 = engineLoadDFF ( "tec9.dff", 372 ) engineReplaceModel ( dff16, 372 )
  9. it will works if i leave the first client , maybe i should make other scripts for other models?
  10. i make it in a different files client.lua clinet1.lua client2.lua with a timer for client1 and client2 client : txd1 = engineLoadTXD ( "sniper.txd" ) engineImportTXD ( txd1, 357 ) dff1 = engineLoadDFF ( "sniper.dff", 357 ) engineReplaceModel ( dff1, 357 ) txd2 = engineLoadTXD ( "ak47.txd" ) engineImportTXD ( txd2, 355 ) dff2 = engineLoadDFF ( "ak47.dff", 355 ) engineReplaceModel ( dff2, 355 ) txd3 = engineLoadTXD ( "bomb.txd" ) engineImportTXD ( txd3, 364 ) dff3 = engineLoadDFF ( "bomb.dff", 364 ) engineReplaceModel ( dff3, 364 ) txd4 = engineLoadTXD ( "clot45.txd" ) engineImportTXD ( txd4, 345 ) dff4 = engineLoadDFF ( "clot45.dff", 345 ) engineReplaceModel ( dff4, 346 ) txd5 = engineLoadTXD ( "desert_eagle.txd" ) engineImportTXD ( txd5, 348 ) dff5 = engineLoadDFF ( "desert_eagle.dff", 348 ) engineReplaceModel ( dff5, 348 ) client1: setTimer(function() txd6 = engineLoadTXD ( "grenade.txd" ) engineImportTXD ( txd6, 342 ) dff6 = engineLoadDFF ( "grenade.dff", 342 ) engineReplaceModel ( dff6, 342 ) txd7 = engineLoadTXD ( "knifecur.txd" ) engineImportTXD ( txd7, 335 ) dff7 = engineLoadDFF ( "knifecur.dff", 335 ) engineReplaceModel ( dff7, 335 ) txd8 = engineLoadTXD ( "m4.txd" ) engineImportTXD ( txd8, 356 ) dff8 = engineLoadDFF ( "m4.dff", 356 ) engineReplaceModel ( dff8, 356 ) txd9 = engineLoadTXD ( "minigun.txd" ) engineImportTXD ( txd9, 362 ) dff9 = engineLoadDFF ( "minigun.dff", 362 ) engineReplaceModel ( dff9, 362 ) txd10 = engineLoadTXD ( "mp5.txd" ) engineImportTXD ( txd10, 353 ) dff10 = engineLoadDFF ( "mp5.dff", 353 ) engineReplaceModel ( dff10, 353 ) end,10000,1) client2: setTimer(function() txd11 = engineLoadTXD ( "rocket.txd" ) engineImportTXD ( txd11, 359 ) dff11 = engineLoadDFF ( "rocket.dff", 359 ) engineReplaceModel ( dff11, 359 ) txd12 = engineLoadTXD ( "satchel.txd" ) engineImportTXD ( txd12, 363 ) dff12 = engineLoadDFF ( "satchel.dff", 363 ) engineReplaceModel ( dff12, 363 ) txd13 = engineLoadTXD ( "silenced.txd" ) engineImportTXD ( txd13, 347 ) dff13 = engineLoadDFF ( "silenced.dff", 347 ) engineReplaceModel ( dff13, 587 ) txd14 = engineLoadTXD ( "teargas.txd" ) engineImportTXD ( txd14, 343 ) dff14 = engineLoadDFF ( "teargas.dff", 343 ) engineReplaceModel ( dff14, 343 ) txd15 = engineLoadTXD ( "uzi.txd" ) engineImportTXD ( txd15, 352 ) dff15 = engineLoadDFF ( "uzi.dff", 352 ) engineReplaceModel ( dff15, 352 ) txd16 = engineLoadTXD ( "tec9.txd" ) engineImportTXD ( txd16, 372 ) dff16 = engineLoadDFF ( "tec9.dff", 372 ) engineReplaceModel ( dff16, 372 ) end,14000,1) but still gives me crash
  11. hi guys i have added txd and dff files in a folder with client file & meta file and every thing okay but when i'm starting the resource the game gives me crash picture : client.lua txd = engineLoadTXD ( "sniper.txd" ) engineImportTXD ( txd, 357 ) dff = engineLoadDFF ( "sniper.dff", 357 ) engineReplaceModel ( dff, 357 ) txd = engineLoadTXD ( "ak47.txd" ) engineImportTXD ( txd, 355 ) dff = engineLoadDFF ( "ak47.dff", 355 ) engineReplaceModel ( dff, 355 ) txd = engineLoadTXD ( "bomb.txd" ) engineImportTXD ( txd, 364 ) dff = engineLoadDFF ( "bomb.dff", 364 ) engineReplaceModel ( dff, 364 ) txd = engineLoadTXD ( "clot45.txd" ) engineImportTXD ( txd, 345 ) dff = engineLoadDFF ( "clot45.dff", 345 ) engineReplaceModel ( dff, 346 ) txd = engineLoadTXD ( "desert_eagle.txd" ) engineImportTXD ( txd, 348 ) dff = engineLoadDFF ( "desert_eagle.dff", 348 ) engineReplaceModel ( dff, 348 ) txd = engineLoadTXD ( "grenade.txd" ) engineImportTXD ( txd, 342 ) dff = engineLoadDFF ( "grenade.dff", 342 ) engineReplaceModel ( dff, 342 ) txd = engineLoadTXD ( "knifecur.txd" ) engineImportTXD ( txd, 335 ) dff = engineLoadDFF ( "knifecur.dff", 335 ) engineReplaceModel ( dff, 335 ) txd = engineLoadTXD ( "m4.txd" ) engineImportTXD ( txd, 356 ) dff = engineLoadDFF ( "m4.dff", 356 ) engineReplaceModel ( dff, 356 ) txd = engineLoadTXD ( "minigun.txd" ) engineImportTXD ( txd, 362 ) dff = engineLoadDFF ( "minigun.dff", 362 ) engineReplaceModel ( dff, 362 ) txd = engineLoadTXD ( "mp5.txd" ) engineImportTXD ( txd, 353 ) dff = engineLoadDFF ( "mp5.dff", 353 ) engineReplaceModel ( dff, 353 ) txd = engineLoadTXD ( "rocket.txd" ) engineImportTXD ( txd, 359 ) dff = engineLoadDFF ( "rocket.dff", 359 ) engineReplaceModel ( dff, 359 ) txd = engineLoadTXD ( "satchel.txd" ) engineImportTXD ( txd, 363 ) dff = engineLoadDFF ( "satchel.dff", 363 ) engineReplaceModel ( dff, 363 ) txd = engineLoadTXD ( "silenced.txd" ) engineImportTXD ( txd, 347 ) dff = engineLoadDFF ( "silenced.dff", 347 ) engineReplaceModel ( dff, 587 ) txd = engineLoadTXD ( "teargas.txd" ) engineImportTXD ( txd, 343 ) dff = engineLoadDFF ( "teargas.dff", 343 ) engineReplaceModel ( dff, 343 ) txd = engineLoadTXD ( "uzi.txd" ) engineImportTXD ( txd, 352 ) dff = engineLoadDFF ( "uzi.dff", 352 ) engineReplaceModel ( dff, 352 ) txd = engineLoadTXD ( "tec9.txd" ) engineImportTXD ( txd, 372 ) dff = engineLoadDFF ( "tec9.dff", 372 ) engineReplaceModel ( dff, 372 ) meta file "SoRa" version="1.1" name="weapons" description="weapons" type="misc" />
  12. thanks a lot karthik184 ,, topsniper thanks for trying
  13. http://luaforwindows.googlecode.com/fil ... 1.4-45.exe use this program it's good for lua scripting ... you can compile your script from SciTE click at the file with the right button of the mouse and choose Eidt script then go to Tools > Compile you will see a new copy of the script with ".luac" extension هذآ البرنآمج حلو للغة برمجه لوآ تقدر تشفر سكربتك عن طريق برنامج SciTE يكون مع نفس البرنامج لمآ تثبته روح للسكربت واضغط عليه بزر الماوس الايمن واختر Eidt script اذا فتحت البرنامج روح لـ Tools > Compile بيشفر السكربت بملف جديد بصيغه ".luac"
  14. you can start / stop mtasa server with terminal or shell تقدر تطفي \ تشغل سيرفر جراند اونلاين بالتيرمينال او الشل الموجود بنظام لينكس قسم دعم سيرفرات لينكس viewforum.php?f=106
  15. oh sorry for this i'm normal scripter and i don't understand lua language so much and thanks so much for your help , the problem have been solved ^^
  16. hi guys i made Give Permissions Panel with gui editor and i added command to show the panel only for who is in Console Group and the script works fine , but the problem is when i wrote /gpp to open the panel it's opening for all players the codes Client Side : GppWindow = guiCreateWindow(545,151,243,262,"Give Permissions Panel By |S.s|SoRa",false) guiWindowSetSizable(GppWindow,false) Gpedit = guiCreateEdit(16,46,203,33,"",false,GppWindow) GiveModeratorButton = guiCreateButton(13,102,215,40,"Give Moderator Permissions",false,GppWindow) GiveSuperModeratorButton = guiCreateButton(12,153,215,40,"Give SuperModerator Permissions",false,GppWindow) GiveAdminsButton = guiCreateButton(11,205,215,40,"Give Admins Permissions",false,GppWindow) label = guiCreateLabel(20,21,154,17,"Player Username :",false,GppWindow) CloseButton = guiCreateButton(213,24,18,16,"X",false,GppWindow) function onresourceStart () -- outputChatBox ("Give Permissions Panel By |S.s|SoRa", 0, 255, 0, true) guiSetVisible (GppWindow, false) showCursor (false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showPanel () guiSetVisible (GppWindow, true) showCursor (true) end addEvent( "showPanel", true ) addEventHandler ( "showPanel", getRootElement(), showPanel) function onGuiClick (button, state, absoluteX, absoluteY) if (source == GiveModeratorButton) then GiveModerator = guiGetText ( Gpedit ) triggerServerEvent ("GiveModerator", getLocalPlayer(), GiveModerator) playSound("sec.wav",false) elseif (source == GiveSuperModeratorButton) then GiveSuperModerator = guiGetText ( Gpedit ) triggerServerEvent ("GiveSuperModerator", getLocalPlayer(), GiveSuperModerator) playSound("sec.wav",false) elseif (source == GiveAdminsButton) then GiveAdmins = guiGetText ( Gpedit ) triggerServerEvent ("GiveAdmins", getLocalPlayer(), GiveAdmins) playSound("sec.wav",false) elseif (source == CloseButton) then guiSetVisible (GppWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function GetPermission() triggerServerEvent ("OpenPanel", getLocalPlayer(), OpenPanel) end addCommandHandler ( "gpp", GetPermission ) Server Side : local rootElement = getRootElement() function GiveModerator ( GiveModerator ) if GiveModerator then aclGroupAddObject (aclGetGroup("Moderator"), "user."..GiveModerator) outputChatBox ("Account '"..GiveModerator.."' succesfully added to the Moderator group", source, 0, 255, 0, true) else outputChatBox ("No account name specified.", source, 255, 0, 0, true) end end addEvent( "GiveModerator", true ) addEventHandler ( "GiveModerator", rootElement, GiveModerator) function GiveSuperModerator ( GiveSuperModerator ) if GiveSuperModerator then aclGroupAddObject (aclGetGroup("SuperModerator"), "user."..GiveSuperModerator) outputChatBox ("Account '"..GiveSuperModerator.."' succesfully added to the SuperModerator group", source, 0, 255, 0, true) else outputChatBox ("No account name specified.", source, 255, 0, 0, true) end end addEvent( "GiveSuperModerator", true ) addEventHandler ( "GiveSuperModerator", rootElement, GiveSuperModerator) function GiveAdmins ( GiveAdmins ) aclGroupAddObject (aclGetGroup("Admins"), "user."..GiveAdmins) outputChatBox ("Account '"..GiveAdmins.."' succesfully added to the admins group", source, 0, 255, 0, true) end addEvent( "GiveAdmins", true ) addEventHandler ( "GiveAdmins", rootElement, GiveAdmins) function OpenPanel (source) local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Console" )) then triggerClientEvent ( "showPanel", rootElement, showPanel ) else outputChatBox ("You Don't Have Permission For This Command", source, 255, 0, 0, true) end end addEvent( "OpenPanel", true ) addEventHandler ( "OpenPanel", OpenPanel) function check() local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Console" )) then outputChatBox ("Type /gpp to open give permissions panel", source, 255, 0, 0, true) end end addEventHandler("onPlayerLogin",getRootElement(),check )
  17. thanks so much it's working ^^
  18. hi guys i have wrote upgrade in Multi Theft Auto Command Prompt (F8 or ~) but nothing happen i need to make that working in MTA 1.3 i don't want to restart my server every time , i need help
  19. you're welcome --------------------------------------------- Edited Added Important Additions to start the tool without problems viewtopic.php?f=101&t=39791#p404089
  20. hi guys i made this simple tool to download verisons of MTA:SA Download : http://adf.ly/K8Ceb Scan Results https://www.virustotal.com/file/8d3b1ca9df703706932a86e9a270d86893ec3f55e80014320a22b8c57bf2d14c/analysis/1357224053/ changes : * downloading way changed * MTA:SA 1.3.1 added * latest version detector and downloader added * now the versions being downloaded with ie downloader or any downloading program * now you can download the latest version while it's released
×
×
  • Create New...