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

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
Reply
#2

source please
Reply
#3

Quote:
Originally Posted by CrystalGamer
View Post
source please
It's right here. - https://www.sendspace.com/file/fam9g9
Reply
#4

Quote:
Originally Posted by Sejnur
View Post
that is the application not source code
Reply
#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
#6

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?
Reply
#7

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.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)