TwiX! Posted March 4, 2012 Posted March 4, 2012 yes, but it's impossible for .zip format, only for folders
drk Posted March 4, 2012 Posted March 4, 2012 Server-side: addCommandHandler('deletemap', function(player,cmd,...) local map = table.concat(...,' ') local search = getResourceFromName(map) if search then deleteResource(search) outputChatBox("Map sucessfully deleted!",player,255,255,255,false) else outputChatBox("Map not found!",player,255,255,255,false) end end ) Add to meta.xml: <min_mta_version server="1.1.1-9.03316" /> Not tested. Command: /deletemap MapResourceName
Kenix Posted March 4, 2012 Posted March 4, 2012 addCommandHandler( 'deletemap', function( uPlayer, _, ... ) local map = table.concat( { ... } ,' ' ) local search = getResourceFromName( map ) if search then deleteResource( search ) outputChatBox( 'Map sucessfully deleted!', uPlayer, 255, 255, 255, false ) else outputChatBox( 'Map not found!', uPlayer, 255, 255, 255, false ) end end ) Draken,Your code wrong, because 1 argument in function table.concat is table, but you use string.
BorderLine Posted March 4, 2012 Posted March 4, 2012 or you can use this https://community.multitheftauto.com/index.php?p= ... ils&id=861 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now