ZenoS Posted November 11, 2011 Share Posted November 11, 2011 Hello, I am trying to make an auto voter for each new map. Now i was wondering if it is possible for mta to read the resource path and if the resource path = true then start zeh vote now the vote is no problem but reading the path is, asked some scripters i know and did some research but couldn't find something neither. so what i mean is if the mapresource is in one of the next filepaths: - [maps]/[race] - [maps]/[DM] then start the function please could someone help me further by telling me if it is possible / telling me how to do it? Big thanks ZenoS Link to comment
AGENT_STEELMEAT Posted November 11, 2011 Share Posted November 11, 2011 The MTA server ignores the directories, so it has no idea [maps] exists. It sees all the resources as if they are in one folder. The [folder] system is just to help with organizing things a bit. Link to comment
Al3grab Posted November 12, 2011 Share Posted November 12, 2011 You Can Use string.find getMapName() Link to comment
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