[Tool/Web/Other] Universal SAMP launcher - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (
https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] Universal SAMP launcher (
/showthread.php?tid=653031)
Universal SAMP launcher -
Sejnur - 24.04.2018
Hello guys, i made an Universal SAMP launcher in PHP using DevelStudio.
Once you open the launcher you will get one label and three buttons.
In the label where it says 'Unesite ip adresu' you need to write the ip address of the server you want to join.
Then you got a button 'Prijavi se' which means 'Join'.
Once you click on that button,
At the left bottom corner you got a gear icon, once you click on the gear icon.
You'll get one label and one button.
In the label where it says 'Unesite korisnicko ime' you need to write your own username.
Once you wrote the username, you need to click on the button 'Sacuvaj' which means 'Save'.
Settings tab looks like this.
That's it guys, thanks for reading this post.
You can download the tool right here. -
https://www.sendspace.com/file/a1vash
Source code -
https://www.sendspace.com/file/fam9g9
Re: Universal SAMP launcher -
CrystalGamer - 24.04.2018
source please
Re: Universal SAMP launcher -
Sejnur - 24.04.2018
Quote:
Originally Posted by CrystalGamer
source please
|
It's right here. -
https://www.sendspace.com/file/fam9g9
Re: Universal SAMP launcher -
CrystalGamer - 24.04.2018
Quote:
Originally Posted by Sejnur
|
that is the application not source code
Re: Universal SAMP launcher -
Sejnur - 24.04.2018
Quote:
Originally Posted by CrystalGamer
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);
}
Re: Universal SAMP launcher -
Bingo - 24.04.2018
Alright looks good and works well but a i got a question?
Why can’t we open SA-MP.exe directly through a pin app or via dekstop? Add the server to favorites and that’s all?
Re: Universal SAMP launcher -
BigETI - 24.04.2018
Your source code looks confusing and dodgy. There is no need to ship executables in a proprietary file format. Also those executables were detected as trojan.
Re: Universal SAMP launcher -
Sejnur - 25.04.2018
Btw i know that the program is useless, but i just started with programming, so i couldn't make anything better.
If anyone got any idea how can i improve my programming skill, fell free to post it right here.