Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoTrayIcon
- #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
- #AutoIt3Wrapper_icon=..\..\Zusatzfiles\4197-minibild.ico
- #AutoIt3Wrapper_outfile=samp.exe
- #AutoIt3Wrapper_Compression=0
- #AutoIt3Wrapper_UseUpx=n
- #AutoIt3Wrapper_Res_Description=(c) Trooper
- #AutoIt3Wrapper_Res_Fileversion=1.0.0.0
- #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
- If Not @Compiled Then
- MsgBox(16,"Error","Just compiled")
- Exit
- EndIf
- If Not FileExists(RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","Pfad") & "\samp.exe") Then
- If FileExists("gta_sa.exe") Then
- RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","Pfad","REG_SZ",@Scriptdir)
- Else
- Do
- $dir = FileSelectFolder("Choose GTA SA Folder","")
- If @error Then Exit
- If Not FileExists($dir & "\gta_sa.exe") Then MsgBox(16,"Error","The chosen folder isn�t the GTA folder !")
- If FileExists($dir & "\gta_sa.exe") Then ExitLoop
- Until 1=2
- RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","Pfad","REG_SZ",$dir)
- EndIf
- RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","","REG_SZ","(C) Trooper")
- Else
- $dir = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","Pfad")
- EndIf
- FileCopy($dir & "\USERDATA.DAT",@Scriptdir & "\USERDATA.DAT",1)
- If Not ProcessExists("GCS.exe") Then ShellExecute("GCS.exe")
- ShellExecute($dir & "\samp.exe")
Advertisement
Add Comment
Please, Sign In to add comment