Hey there, I'm trying to make an anti-cheat for Counter-Strike:Source for my clan league. What it needs to do: -People enter their username and password from the league website and program will check if account exists in the MYSQL database. -Then it scans every 2 minutes or more, while playing, for some folders, if they exist it will remove them. -Send logs with time/date to FTP server everytime a scan has been made so I can check if people did run the program while in a match. (estimated match time is 30minutes so if program scans once per 2 minutes thats 15logs/guy) --- So people paste it in a folder (materials) and the script will scan for folders and delete them, example of this folder: C:\Program Files\Steam\SteamApps\sylvershark\counter-strike source\cstrike\materials Problem 1: People have different folder names (SteamApps\SYLVERSHARK\....) Solution: Let people enter their username Problem 2: People will enter fake names Solution ? heLge- helped me a bit on this project, here is what I made yet, it ain't much but I do my best as beginner: ; Splits the string with the maps at the "|"-separator and puts it in an array
; $array[0] contains the number of maps in the array, and the following contains the mapnames
$array = StringSplit("de_dust|de_dust2|cs_office|de_prodigy", "|")
; Goes thru each element in the array, starting from 1 to the end
For $i = 1 To $array[0]
; Skips path if the path's attributes doesn't contain a D (as in Directory)
If NOT StringInStr(FileGetAttrib($array[$i]), "D") Then ContinueLoop
; Checks that the path exists, and if so deletes the directory
If FileExists($array[$i]) Then DirRemove($array[$i])
Next Help would be more than welcome, Thanks in advance ! Greetz