SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 18/02/2017, 10:11 AM   #1
X337
Gangsta
 
X337's Avatar
 
Join Date: Sep 2014
Location: Indonesia
Posts: 855
Reputation: 213
Default Dynamic Server Signature Generator

Hei guys, today i make a simple tool that may help some server owners that don't have knowledge about php to make and customize their own dynamic server signature.

Link: http://samp.x337.us/sg/index.html

How to use?
  • First, you have to open the website in order to make a signature.
  • You will see a form to upload background image for your signature.
  • After it's uploaded, you can customize your server signature. You can press "New Text" button to add a text, or "New Data" button to add data from database or .ini file into your signature. You can press "Delete" in your keyboard to remove text/data.
    Example picture:
  • Then, click "Download Code" button to download source code of your signature if you're done customizing your signature.
  • After you have downloaded signature.zip, extract it and open signature.php
  • Edit the configuration to match with your MySQL credentials or .ini files path.
    PHP Code:
    $config = array(

        
    'mode' => ''// MySQL / ini

        /*
            MySQL
        */
        
    'database' => array(
            
    // Edit it if you are using mysql
            
    'host' => 'localhost'// mysql host
            
    'dbname' => ''// database name
            
    'user' => ''// mysql user
            
    'password' => ''// mysql password
            
    'port' => 3306 // port (Default: 3306)
        
    ),
        
    // Table where you save players' accounts
        // Edit it if you are using mysql
        
    'account_table' => '',
        
    // Name of the column that hold player's username
        // Edit it if you are using mysql
        
    'username_column' => '',

        
    /*
            INI
        */
        
    'ini' => array(
            
    /* 
                Edit it if you are using ini
                Path where players' .ini files located.
                No trailing slash.
                Example:
                Linux - /home/samp/samp03/scriptfiles/Accounts
                Windows - C:\\samp-server\\scriptfiles\\Accounts
            */
            
    'path' => ''
        
    ),

        
    'background_image' => 'background.png',
        
    // Type of the image (png/jpeg/gif)
        
    'output_type' => 'png'
    ); 
  • Put all files (incl. fonts and background image) into your localhost web directory or upload them into your webhost.
  • Done

You can view a player's signature by entering player username in "username" GET parameter.
Example:
Code:
http://your-host.tld/signature.php?username=X337


Source Code:
Download here

If anyone got a problem with this tool or signature code, you can PM me or post your problem here.
__________________
viva la sa-mp

Last edited by X337; 24/03/2017 at 04:34 PM.
X337 is online now   Reply With Quote
Old 18/02/2017, 10:23 AM   #2
Sumit4
Big Clucker
 
Join Date: Sep 2016
Posts: 112
Reputation: 18
Default Re: Dynamic Server Signature Generator

Wow Nice GG
Sumit4 is offline   Reply With Quote
Old 18/02/2017, 10:31 AM   #3
RyderX
Banned
 
Join Date: Oct 2016
Location: Lebanon,Beirut Rank: SA-MP Scripter
Posts: 603
Reputation: 53
Default Re: Dynamic Server Signature Generator

COOL! THANKS DUDE!
RyderX is offline   Reply With Quote
Old 18/02/2017, 12:20 PM   #4
Whyd
Huge Clucker
 
Whyd's Avatar
 
Join Date: Sep 2012
Location: /
Posts: 422
Reputation: 30
Default Respuesta: Dynamic Server Signature Generator

Very nice
Whyd is offline   Reply With Quote
Old 18/02/2017, 12:52 PM   #5
Roozevelt
Gangsta
 
Roozevelt's Avatar
 
Join Date: Jan 2016
Location: Tunsia
Posts: 604
Reputation: 118
Default Re: Dynamic Server Signature Generator

Nice one again x337
__________________
Left SA-MP.
Roosevelt's stunt map pack : Click here
SEF community
Join now

Roozevelt is offline   Reply With Quote
Old 18/02/2017, 12:53 PM   #6
iLearner
Guest
 
Posts: n/a
Default Re: Dynamic Server Signature Generator

+rep
  Reply With Quote
Old 18/02/2017, 12:58 PM   #7
Jelly23
Guest
 
Posts: n/a
Default Re: Dynamic Server Signature Generator

Really nice.

+rep
  Reply With Quote
Old 18/02/2017, 01:39 PM   #8
Sunehildeep
High-roller
 
Sunehildeep's Avatar
 
Join Date: Mar 2016
Posts: 1,002
Reputation: 89
Default Re: Dynamic Server Signature Generator

Cool
__________________
Sunehildeep is offline   Reply With Quote
Old 18/02/2017, 01:49 PM   #9
BroZeus
High-roller
 
BroZeus's Avatar
 
Join Date: Jan 2014
Location: India
Posts: 1,393
Reputation: 158
Default Re: Dynamic Server Signature Generator

Nice!
I made something similar for a server but with a lot more features. I am providing its source since you can use it. Here's how it worked
Starting :
https://i.gyazo.com/3601efba28db82db...8c52abdc4c.mp4

and editing text :


Source : https://github.com/xxxZeus/Custom-Si...t-s-Life-SA-MP

Oh and it only worked for firefox last time i checked it. You will need to edit javascript side to make it work for chrome, i was lazy back then so I was happy for it to be working in firefox only.

Since I am really busy with other stuff so you can look at source to see how I did all those things and use it in your project.
__________________


"Be the change that you wish to see in the world."

Check out my Github profile!
BroZeus is offline   Reply With Quote
Old 18/02/2017, 03:40 PM   #10
X337
Gangsta
 
X337's Avatar
 
Join Date: Sep 2014
Location: Indonesia
Posts: 855
Reputation: 213
Default Re: Dynamic Server Signature Generator

Thank you guys

Quote:
Originally Posted by BroZeus View Post
Nice!
I made something similar for a server but with a lot more features. I am providing its source since you can use it. Here's how it worked
Starting :
https://i.gyazo.com/3601efba28db82db...8c52abdc4c.mp4

and editing text :

Source : https://github.com/xxxZeus/Custom-Si...t-s-Life-SA-MP

Oh and it only worked for firefox last time i checked it. You will need to edit javascript side to make it work for chrome, i was lazy back then so I was happy for it to be working in firefox only.

Since I am really busy with other stuff so you can look at source to see how I did all those things and use it in your project.
I may check the source soon to improve this tool, it seems cool. Thank you so much
__________________
viva la sa-mp
X337 is online now   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
SA:MP (Dynamic) Server Signature RyDeR` Everything and Nothing 38 10/08/2012 11:10 AM
SA-MP Signature Generator Norn Everything and Nothing 12 02/04/2009 11:37 AM


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


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