Jump to content

Sami_~>

Members
  • Posts

    101
  • Joined

  • Last visited

Everything posted by Sami_~>

  1. Remove all these https://community.multitheftauto.com/index.php?p=resources&s=details&id=15393 https://community.multitheftauto.com/index.php?p=resources&s=details&id=15395 https://community.multitheftauto.com/index.php?p=resources&s=details&id=15858 https://community.multitheftauto.com/index.php?p=resources&s=details&id=18021 https://community.multitheftauto.com/index.php?p=resources&s=details&id=16545 https://community.multitheftauto.com/index.php?p=resources&s=details&id=15803
  2. Done some simple changes
  3. I am a Photoshop Editor and I am interested in this work but I don't want to upload images publicly.
  4. Delete This : https://community.multitheftauto.com/index.php?p=resources&s=details&id=15390 DONE
  5. he told [IGT] tag for staffs also he change the group admin to nay other staff and this not for team chat it shows global
  6. Server Side function RenderIGTTag( text, type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("[IGT]" .. getPlayerName ( source ) ..":#FFFFFF " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [IGT] " .. getPlayerName ( source ) .. ": " .. text) end end addEventHandler("onPlayerChat", getRootElement(), RenderIGTTag)
  7. i can't kill that bots
  8. Sami_~>

    stop driveby

    Can u fix this : i want to disable rino fire local blockedVehicles = {[432] = true} function blockEnterOnBlockedVehicles(player, seat, jacked) local model = getElementModel(source) if isElement(source) and getElementType(source) == "vehicle" and (model and blockedVehicles[model]) then if isElement(player) and getElementType(player) == "player" and seat == 0 then toggleControl ( "vehicle_fire", false ) (true, "blockedvehicle") end end end addEventHandler("onVehicleStartEnter", getRootElement(), blockEnterOnBlockedVehicles)
  9. Sami_~>

    stop driveby

    hello how can i stop driveby only for localplayer when the player select the checkbox. i try it but not working : if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1])) then setPedDoingGangDriveby ( getLocalPlayer (), false )
  10. this is a script when the player select the checkbox it fix the vehicle every time. but when the player has selected the check box it fixing the vehicle for all players not for a alone player. function AutoFix() if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1])) then vehicles = getElementsByType ( "vehicle" ) for vehicleKey,vehicleValue in ipairs(vehicles) do fixVehicle ( vehicleValue ) setTimer ( function() setElementHealth ( vehicleValue, 1000.0 ) end, 10000, 1 ) end end end setTimer( AutoFix, 100, 0 )
  11. I had Make an another script but it is not woking Plz Fix It local fileHandle = fileCreate("mtaserver.txt") function writeRunningResources() if getResourceState(resourceValue) == "running" then resourceName = getResourceState(resourceValue) text = fileRead(fileHandle,9999999) fileWrite(fileHandle, ""..text.." \n <resource src='"..resourceName.."' startup='1' protected='0' />" ) fileClose(fileHandle) addCommandHandler("getresources", writeRunningResources, true)
  12. had Make a script which saves resources names in a text file but it is not working PLEASE ANYBODY CAN HELP ME if not fileExists("mtaserver.txt") then txt = fileCreate("mtaserver.txt") fileClose(txt) end function writeRunningResources() txt = fileOpen("mtaserver.txt") resourceTable = getResources() for resourceKey, resourceValue in ipairs(resourceTable) do if getResourceState(resourceValue) == "running" then resourceName = getResourceName(resourceValue) text = fileRead(txt,9999999) fileWrite(txt, ""..text.." \n <resource src='"..resourceName.."' startup='1' protected='0' />" ) fileFlush(txt) fileClose(txt) end addCommandHandler("getresources", writeRunningResources, true)
  13. <meta> <info author="AJS" type="script" version="1.0" /> <script src="server.lua" type="server" /> <file src="resources.xml" download="false" /> <aclrequest> <right name="function.startResource" access="true"></right> </aclrequest> </meta>
  14. Whats the problem in the script? when i use the commands it is not working and even i had added permissions in acl. if not xmlLoadFile("resources.xml") then xml = xmlCreateFile("resources.xml", "root") xmlSaveFile(xml) xmlUnloadFile(xml) end function writeRunningResources(player, command, ctconfig) if ctconfig == "true" then if not fileExists("mtaserver.txt") then txt = fileCreate("mtaserver.txt") fileClose(txt) end resourceTable = getResources() txt = fileOpen("mtaserver.txt") for resourceKey, resourceValue in ipairs(resourceTable) do if getResourceState(resourceValue) == "running" then resourceName = getResourceName(resourceValue) text = fileRead(txt,9999999) fileWrite(txt, ""..text.." \n <resource src='"..resourceName.."' startup='1' protected='0' />" ) fileFlush(txt) end end fileClose(txt) -- untested! end xmlfile = xmlLoadFile("resources.xml") resourceTable = getResources() for resourceKey, resourceValue in ipairs(resourceTable) do if getResourceState(resourceValue) == "running" then resourceName = getResourceName(resourceValue) xmlNodeSetValue(xmlCreateChild(xmlfile, "resource"), resourceName) xmlSaveFile(xmlfile) end end outputChatBox("Wrote to XML!", root, 255, 0, 0, false) end addCommandHandler("getRunningResources", writeRunningResources, true) function loadResources() outputChatBox("Starting Resources, this can take a while...",root, 255, 0, 0, false) local rootNode = xmlLoadFile ( "resources.xml" ) local nums = xmlNodeGetChildren(rootNode) for i,node in ipairs(nums) do local resource = xmlNodeGetValue ( node ) startResource( getResourceFromName(resource), true) outputChatBox("Resource : "..resource.." started") end end addCommandHandler("loadResources", loadResources, true)
×
×
  • Create New...