Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/08/17 in Posts

  1. (I apologize for my bad english) I present is a completely new MTA project with a survival mode in world full of zombies. Server is created from scratch and has many unique systems. Creation and up-level of bases, raids on bases of other players. Hunting, fishing and growing vegetables for food. Attacks on camps and military bases, captured by bandits. Craft of various items and much more... New mapping: IP #1 SERVER - 176.32.36.145:22003 IP #2 SERVER - 176.32.37.43:22003 YouTube - https://www.youtube.com/channel/UCbKSMM9yIFhM1cMQvhIEUHA VK - https://vk.com/mta.zombie
    1 point
  2. function sendMessageToAdmins(msg) for i, admin in pairs (getElementsByType("player")) do if getElementData (admin, "Admin") then outputChatBox ("ADMIN Message: ".. msg, admin) end end end
    1 point
  3. The "true" in your getElementData is not required, as it's optional arguments is true too. Does this not work, or what? You miss an "end", maybe thats why.
    1 point
  4. الاستضافة هذي مشهورة وما أتوقع انهم يبغون يشوهون سمعتهم وفوق هذا عندهم داتا سانتر خاص فيهم فـ نسبة 0.01 انهم نصابين بالتوفيق لك
    1 point
  5. Ow, thank you very much. That's just what i was looking for :> So i think that topic is solved from now.
    1 point
  6. You could use a script similar to this function downloadGUI() --display some GUI end addEventHandler("onClientRender", root, downloadGUI) function checkTransfer() if isTransferBoxActive() == true then setTimer(checkTransfer,2000,1) -- Check again after 2 seconds else removeEventHandler("onClientRender", root, downloadGUI) end end addEventHandler("onClientResourceStart",resourceRoot,checkTransfer) Make sure you take a look at "download_priority_group" in your meta.xml, so that this script downloads and starts before everything else! https://wiki.multitheftauto.com/wiki/Meta.xml
    1 point
  7. Test it yourself mate. You ain't even trying to do the script yourself, we are doing the whole thing for you.
    1 point
  8. جرب ذا addEventHandler("onClientGUIClick",resourceRoot,function() if ( source == addserial ) then guiSetVisible(wndserial,true) guiSetProperty ( wndserial, "AlwaysOnTop", "true" ) elseif ( source == ok ) then guiSetVisible(wndserial,false) local aName = guiGetText ( serial ) if ( ( aName ) and ( aName ~= "" ) ) then if ( string.len ( aName ) ~= 32 ) then return end triggerServerEvent("serial",localPlayer,aName) end elseif ( source == removeserial ) then selected = guiGridListGetSelectedItem(GridBan) if selected ~= -1 then data = guiGridListGetItemText(GridBan, selected,1) triggerServerEvent("removeserial",localPlayer,data) guiGridListRemoveRow (GridBan,selected) end elseif ( source == cancel ) then guiSetVisible(wndserial,false) end end)
    1 point
  9. Looking for this? https://wiki.multitheftauto.com/wiki/DxGetTextWidth
    1 point
  10. I hope this code helps, the first example is using it to destroy all cars that are empty and the second example is destroying all cars that are empty with only specific data, in case you don't want certain vehicles destroyed. You may find unnecessary things within this code, such as so many if statements, but I like to run these 'checks' to get rid of any possible errors or warnings within the script, it makes everything run smoothly.
    1 point
  11. We'll not create you the code, unless you try to do it. @SuperCroz's code is wrong about the fact that the table is not indexed as he'd think.
    1 point
  12. مافهمت عليك كيف ماتحفظ اللامنت داتا بس تطلع وتدخل تروح . #Edit: تم إضافة وظيفة جديدة : getGroupDatas بإختصار ترجع لك جدول فيه الداتا الي مخزنها على القروب function getGroupDatas ( group ) if ( group and aclGetGroup ( group ) and GroupsData [ group ] ) then local datas = { } for k,v in pairs ( GroupsData [ group ] ) do table["insert"] ( datas , k ) ; end return datas end return { } end @!#NssoR_) عدل الرد لآهنت .
    1 point
  13. سلآم عليكم .. جبت لكم وظائف جديدة وتفيد نوعاً ما . setGroupData - getGroupData - removeGroupData - getGroupDatas كلها بجأنب سيرفر . Server side . بأختصار الوظيفة تحط لك قيمة على قروب معين من الاسل . نفس نظام المنت داتا و اكاونت داتا getGroupDatas = بإختصار ترجع لك جدول فيه الداتا الي مخزنها على القروب Useful functions : local GroupsData = { } ; function setGroupData ( group , data , value ) if ( group and data and aclGetGroup ( group ) ) then if not GroupsData[group] then GroupsData[group] = {} end GroupsData[group][data] = value end end function getGroupData ( group , data ) if ( group and data and aclGetGroup ( group ) and GroupsData[group] and GroupsData[group][data]) then return GroupsData[group][data] end return "false" end function getGroupDatas ( group ) if ( group and aclGetGroup ( group ) and GroupsData [ group ] ) then local datas = { } for k,v in pairs ( GroupsData [ group ] ) do table["insert"] ( datas , k ) ; end return datas end return { } end function removeGroupData ( group , data ) if ( group and data and aclGetGroup ( group ) and GroupsData[group] and GroupsData[group][data] ) then GroupsData[group][data] = nil end return "false" end أمثله . addCommandHandler("act",function(player) -- act = Add Console Tag ; setGroupData ( "Console" , "Tag","* [ #00cc00Console #ffffff]" ) ; outputChatBox ( "* Done ",player,0,255,0,true ) ; end ) ; addCommandHandler ( "gct" , function ( player ) -- gct = Get Console Tag local tag = getGroupData ( "Console" , "Tag" ) ; if ( tag ~= "false" ) then outputChatBox(tag,player,255,255,255,true); end end ) ; addCommandHandler("rct" , function ( player ) -- rct = Remove Console Tag removeGroupData ( "Console" , "Tag" ) ; outputChatBox("* Done",player,0,255,0,true) end ) ; وبالتوفيق للجميع
    1 point
  14. Ooo Petruleee, nu ai rupt scaunul inca? Frate-tu ce mai zice? Mai bea? :)))
    1 point
  15. De acordo com a Wiki em Error_Codes, o problema está no seu GTA:SA que não conseguiu iniciar corretamente e não no MTA. Reinstale o seu GTA:SA, sem mods.
    1 point
  16. لجل وسعة البال والسوالف مع الناس الحلوة , وبكيفي افتح الي ابي عساه بدون مودات
    1 point
×
×
  • Create New...