SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 24/04/2018, 03:01 PM   #1
Sejnur
Little Clucker
 
Sejnur's Avatar
 
Join Date: Nov 2016
Posts: 4
Reputation: 0
Default Universal SAMP launcher

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
Sejnur is offline   Reply With Quote
Old 24/04/2018, 03:23 PM   #2
CrystalGamer
Banned
 
Join Date: Apr 2018
Posts: 52
Reputation: 2
Default Re: Universal SAMP launcher

source please
CrystalGamer is offline   Reply With Quote
Old 24/04/2018, 03:27 PM   #3
Sejnur
Little Clucker
 
Sejnur's Avatar
 
Join Date: Nov 2016
Posts: 4
Reputation: 0
Default Re: Universal SAMP launcher

Quote:
Originally Posted by CrystalGamer View Post
source please
It's right here. - https://www.sendspace.com/file/fam9g9
Sejnur is offline   Reply With Quote
Old 24/04/2018, 03:32 PM   #4
CrystalGamer
Banned
 
Join Date: Apr 2018
Posts: 52
Reputation: 2
Default Re: Universal SAMP launcher

Quote:
Originally Posted by Sejnur View Post
that is the application not source code
CrystalGamer is offline   Reply With Quote
Old 24/04/2018, 03:34 PM   #5
Sejnur
Little Clucker
 
Sejnur's Avatar
 
Join Date: Nov 2016
Posts: 4
Reputation: 0
Default Re: Universal SAMP launcher

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);
    }
Sejnur is offline   Reply With Quote
Old 24/04/2018, 03:35 PM   #6
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: United Arab Emirates.
Posts: 1,690
Reputation: 235
Default Re: Universal SAMP launcher

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?
__________________

Hemilton County, Heavy RP community up coming soon!
Bingo is offline   Reply With Quote
Old 24/04/2018, 07:43 PM   #7
BigETI
Gangsta
 
BigETI's Avatar
 
Join Date: Mar 2010
Location: Germany
Posts: 975
Reputation: 270
Default Re: Universal SAMP launcher

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.
BigETI is offline   Reply With Quote
Old 25/04/2018, 07:28 PM   #8
Sejnur
Little Clucker
 
Sejnur's Avatar
 
Join Date: Nov 2016
Posts: 4
Reputation: 0
Default Re: Universal SAMP launcher

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.
Sejnur is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creative SAMP - Universal Bank #MAP xMaKi Screenshots and Videos 3 03/11/2015 11:51 PM
Samp Launcher Rudimental Scripting Help 2 04/12/2014 03:11 PM
SAMP launcher dipsnark Scripting Help 1 22/07/2013 12:28 AM


All times are GMT. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.