SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/05/2014, 06:58 PM   #1
Hwang
Huge Clucker
 
Hwang's Avatar
 
Join Date: Jul 2013
Location: Turkey
Posts: 215
Reputation: 33
Question Simple server.cfg Method


Simple server.cfg Method

With a simple method server.cfg 'I also want to make some of the essentials methods, we wanted to share the name of this topic.

pawn Code:
stock server_cfg(hostname[],weburl[],worldtime,mapname[],password[],filterscripts[],plugins[],announce,chatlogging,rcon_password[],gmodetext[])
{
    new
        hostn[500],webu[90],wtime[15],mname[100],passw[500],fsc[900], plg[900], ann[2], clog[2], rPass[500], gText[500]
    ;
    format(hostn, sizeof hostn, "hostname %s",hostname),format(webu, sizeof webu, "weburl %s",weburl),format(wtime, sizeof wtime, "worldtime %d", wtime);
    format(mname, sizeof mname, "mapname %s", mapname),format(passw, sizeof passw, "password %s", password),format(fsc, sizeof fsc, "filterscripts %s",filterscripts),format(plg, sizeof plg, "plugins %s",plugins);
    format(ann, sizeof ann, "ann %s",plugins),format(clog, sizeof clog, "chatlogging %s",chatlogging),format(rPass, sizeof rPass, "rcon_password %s",rcon_password), format(gText, sizeof gText, "gamemodetext %s", gmodetext);
    SendRconCommand(hostn),SendRconCommand(webu),SendRconCommand(wtime),SendRconCommand(mname),SendRconCommand(passw);
    SendRconCommand(fsc),SendRconCommand(plg),SendRconCommand(ann),SendRconCommand(clog),SendRconCommand(rPass),SendRconCommand(gText);
    return (1);
}

Section:
pawn Code:
server_cfg(hostname[],weburl[],worldtime,mapname[],password[],filterscripts[],plugins[],announce,chatlogging,rcon_password[],gmodetext[])

For example, I made one as an example:
pawn Code:
server_cfg("SA-MP 0.3z Server","www.sa-mp.com",12,"San Andreas","","xStreamer bla bla..","sscanf",1,1,"changeme","Simple Script");

Be careful, you do not want to set a password to the server "password []" portion blank.

Server cfg active method method to be able to completely fill in a form OnGameModeInit complete public can add or OnFilterScriptInit etc. Remember, password [] is not required to fill out.


Notepad + + is written in, your fault somehow inappropriate.
__________________


185.136.204.49:7777
Hwang is offline   Reply With Quote
Old 20/05/2014, 07:02 PM   #2
Luis-
High-roller
 
Luis-'s Avatar
 
Join Date: Jan 2010
Location: England
Posts: 3,917
Reputation: 391
Default Re: Simple server.cfg Metod

What's the use of this, when there's the server.cfg which is simple to use.
__________________
Luis- is offline   Reply With Quote
Old 20/05/2014, 07:03 PM   #3
Hwang
Huge Clucker
 
Hwang's Avatar
 
Join Date: Jul 2013
Location: Turkey
Posts: 215
Reputation: 33
Default Re: Simple server.cfg Metod

Quote:
Originally Posted by Luis- View Post
What's the use of this, when there's the server.cfg which is simple to use.
Through mode in use is possible, I use modes in order to facilitate such a method I applied.
__________________


185.136.204.49:7777
Hwang is offline   Reply With Quote
Old 28/09/2019, 03:48 PM   #4
TheMarioTR
Little Clucker
 
Join Date: Jun 2019
Location: pawno.exe // Turkey - TheMario#0683
Posts: 6
Reputation: 0
Default Re: Simple server.cfg Method

Thanks..
TheMarioTR is offline   Reply With Quote
Old 28/09/2019, 04:48 PM   #5
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,477
Reputation: 1632
Default Re: Simple server.cfg Method

Really glad those strings are not oversized at all.
Kwarde 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
[Tool/Web/Other] domPanel - Simple SA:MP Server CP woot Tools and Files 30 02/01/2014 07:40 PM
[FilterScript] Server Message [SERVER TIPS, SERVER MESSAGE OF THE DAY] - Simple, basic but editable! roar Filterscripts 10 28/02/2013 03:19 PM
[GameMode] Simple DM server themrchallenge Gamemode Scripts 18 29/05/2012 12:03 PM
[Tool/Web/Other] Simple Server Tracker norbud4 Tools and Files 8 08/06/2011 07:08 PM
can you help me make a simple server? sean_glover Server Support 2 28/08/2009 12:56 AM


All times are GMT. The time now is 01:42 PM.


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