SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 28/06/2016, 01:22 PM   #1
ognyanov
Big Clucker
 
ognyanov's Avatar
 
Join Date: Apr 2015
Posts: 111
Reputation: 0
Default How to make applications

Hello, i want to import applications in my server. So when someone connects he must type answers, and then admin to review the applications IG. Or to post the applications in website and the admins to review them on the web, and accept them or decline them there.
ognyanov is offline   Reply With Quote
Old 28/06/2016, 01:46 PM   #2
AlonzoTorres
Gangsta
 
AlonzoTorres's Avatar
 
Join Date: Oct 2013
Location: warning 213: tag mismatch
Posts: 591
Reputation: 128
Default Re: How to make applications

How do you build a gamemode? Thats basically what you ask. There is no short answer here. It all depends on what you're looking for. I can point you in the right direction though.

1. You need to collect the answers. You can do this via dialogs
https://wiki.sa-mp.com/wiki/ShowPlayerDialog
https://wiki.sa-mp.com/wiki/OnDialogResponse
etc ...

2. You have to store the answers for an admin to look at. This would be best to do in a database or file. You can use a MySQL plugin or my personal favorite Y_INI. Alternatively you could store it in variables.

3. You need to make a function to look at these variables in-game.

4. You need to make a connection to the database via your website to your server. This requires knowledge in PHP.

You're asking for a lot.
__________________
Earn £10 per day without lifting a finger | SA-MP Scripting for Beginners Tutorial Series | The sky's the limit
AlonzoTorres is offline   Reply With Quote
Old 28/06/2016, 01:54 PM   #3
ognyanov
Big Clucker
 
ognyanov's Avatar
 
Join Date: Apr 2015
Posts: 111
Reputation: 0
Default Re: How to make applications

Quote:
Originally Posted by AlonzoTorres View Post
How do you build a gamemode? Thats basically what you ask. There is no short answer here. It all depends on what you're looking for. I can point you in the right direction though.

1. You need to collect the answers. You can do this via dialogs
https://wiki.sa-mp.com/wiki/ShowPlayerDialog
https://wiki.sa-mp.com/wiki/OnDialogResponse
etc ...

2. You have to store the answers for an admin to look at. This would be best to do in a database or file. You can use a MySQL plugin or my personal favorite Y_INI. Alternatively you could store it in variables.

3. You need to make a function to look at these variables in-game.

4. You need to make a connection to the database via your website to your server. This requires knowledge in PHP.

You're asking for a lot.
Is it going to be more easy trough website. Like they post their applications there, i accept them and that allows them to join the server ? Or i need to make again database connections ?
ognyanov is offline   Reply With Quote
Old 28/06/2016, 01:56 PM   #4
AlonzoTorres
Gangsta
 
AlonzoTorres's Avatar
 
Join Date: Oct 2013
Location: warning 213: tag mismatch
Posts: 591
Reputation: 128
Default Re: How to make applications

Quote:
Originally Posted by ognyanov View Post
Is it going to be more easy trough website. Like they post their applications there, i accept them and that allows them to join the server ? Or i need to make again database connections ?
You need to make a connection between the website and the server. You can do this by using PHP code to either query the server directly or use a database. These things are not for beginners. I would suggest that you first read a tutorial on how to save variables to a database or a file.
__________________
Earn £10 per day without lifting a finger | SA-MP Scripting for Beginners Tutorial Series | The sky's the limit
AlonzoTorres is offline   Reply With Quote
Old 28/06/2016, 02:05 PM   #5
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 830
Reputation: 79
Default Re: How to make applications

If you don't know how to develope a server, why even bothering hosting one then? We all know that servers that don't have a owner which can script wont succeed.
Luicy. is offline   Reply With Quote
Old 28/06/2016, 02:10 PM   #6
ognyanov
Big Clucker
 
ognyanov's Avatar
 
Join Date: Apr 2015
Posts: 111
Reputation: 0
Default Re: How to make applications

Quote:
Originally Posted by Meller View Post
If you don't know how to develope a server, why even bothering hosting one then? We all know that servers that don't have a owner which can script wont succeed.
This discussion is created for scripting help, you don't even know what is my idea. So if you're going to help me help me.
By the way i have the answers now.
ognyanov is offline   Reply With Quote
Old 28/06/2016, 02:15 PM   #7
AlonzoTorres
Gangsta
 
AlonzoTorres's Avatar
 
Join Date: Oct 2013
Location: warning 213: tag mismatch
Posts: 591
Reputation: 128
Default Re: How to make applications

Quote:
Originally Posted by ognyanov View Post
This discussion is created for scripting help, you don't even know what is my idea. So if you're going to help me help me.
By the way i have the answers now.
Yeah I would suggest that you look on different tutorials and if you have problems with any code post back each problem here under scripting help and we will help you. Its hard for us to help you without any code. Follow my steps and look under the tutorial section on how to create a login and registration system. That's a good start. If you are not familiar with SQL since before I would go with Y_INI or any other file based storage of data. Good luck!
__________________
Earn £10 per day without lifting a finger | SA-MP Scripting for Beginners Tutorial Series | The sky's the limit
AlonzoTorres is offline   Reply With Quote
Old 28/06/2016, 03:06 PM   #8
ognyanov
Big Clucker
 
ognyanov's Avatar
 
Join Date: Apr 2015
Posts: 111
Reputation: 0
Default Re: How to make applications

Quote:
Originally Posted by AlonzoTorres View Post
Yeah I would suggest that you look on different tutorials and if you have problems with any code post back each problem here under scripting help and we will help you. Its hard for us to help you without any code. Follow my steps and look under the tutorial section on how to create a login and registration system. That's a good start. If you are not familiar with SQL since before I would go with Y_INI or any other file based storage of data. Good luck!
Yeah thanks, i need someone to help me with the starting, i like SQLite because i use SQLite browser, which is very easy to use. What is the first gamemode which i must try to create, which is the most easiest ?
ognyanov is offline   Reply With Quote
Old 28/06/2016, 03:21 PM   #9
AlonzoTorres
Gangsta
 
AlonzoTorres's Avatar
 
Join Date: Oct 2013
Location: warning 213: tag mismatch
Posts: 591
Reputation: 128
Default Re: How to make applications

Quote:
Originally Posted by ognyanov View Post
Yeah thanks, i need someone to help me with the starting, i like SQLite because i use SQLite browser, which is very easy to use. What is the first gamemode which i must try to create, which is the most easiest ?
If you are familiar with SQL since before I would recommend that you take a look at BlueG's MySQL plugin;
http://forum.sa-mp.com/showthread.php?t=56564
__________________
Earn £10 per day without lifting a finger | SA-MP Scripting for Beginners Tutorial Series | The sky's the limit
AlonzoTorres 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
Mobile Applications Akira297 Everything and Nothing 4 20/05/2014 10:03 PM
Web based applications? or.. Dr.Einstein Everything and Nothing 2 23/11/2012 07:44 PM
Open sponsorship applications? 101 Everything and Nothing 3 26/02/2012 11:10 PM
Android applications Haydn Everything and Nothing 3 13/09/2011 12:44 PM


All times are GMT. The time now is 04:19 PM.


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