[Tool/Web/Other] Universal SAMP launcher
#5

Quote:
Originally Posted by CrystalGamer
View Post
that is the application not source code
That's the whole project, you can open it using the DeveltStudio.
Here is the code of the button 'Join'.
Code:
$ip = c("label_adress")->text;
if(c("label_adress")->text != "IP adresa"){
    $server = "@echo off
    cd $location
    samp.exe $ip";
    data::write($server, "samp.bat");
    Run("samp.bat", false);
    c("timer1")->enable = true;
    c("sqPlayer1")->stop();
    }else{
        messageDlg("Niste uneli IP adresu!", mtError, MB_OK);
    }
And here is the code of the button 'Save'
Code:
$nick = c("label_username")->text;
    if(c("label_username")->text != "Korisnicko ime"){
        writeRegKey(HKEY_USERS, "Software\SAMP\PlayerName", $nick, STRING);
        writeRegKey(HKEY_USERS, "S-1-5-21-1739866482-1348050454-3081657855-1001\Software\SAMP\PlayerName", $nick, STRING);
        hideForm(settings, SW_HIDE);
    }else{
        messageDlg("Niste uneli korisnicko ime!", mtError, MB_OK);
    }
Reply


Messages In This Thread
Universal SAMP launcher - by Sejnur - 24.04.2018, 15:01
Re: Universal SAMP launcher - by CrystalGamer - 24.04.2018, 15:23
Re: Universal SAMP launcher - by Sejnur - 24.04.2018, 15:27
Re: Universal SAMP launcher - by CrystalGamer - 24.04.2018, 15:32
Re: Universal SAMP launcher - by Sejnur - 24.04.2018, 15:34
Re: Universal SAMP launcher - by Bingo - 24.04.2018, 15:35
Re: Universal SAMP launcher - by BigETI - 24.04.2018, 19:43
Re: Universal SAMP launcher - by Sejnur - 25.04.2018, 19:28

Forum Jump:


Users browsing this thread: 2 Guest(s)