SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 21/08/2011, 12:43 AM   #1
4ir-W4ys
Little Clucker
 
4ir-W4ys's Avatar
 
Join Date: Aug 2011
Location: Israel :D
Posts: 39
Reputation: 0
Default SCS.inc | The Most Usefull Include for Server Control

Server Controller
By 4ir-W4ys

Hey, I made a Include that Help You alot about your server Settings. It's Don't have alot functions becuase it's My first release. But it's Tested good. It have 3 very usefull functions
And Supportinf Dini.inc.

How to Use? (Functions)


pawn Code:
LoadServerSettings();
This function will load the Server files from the Dini File (scriptfiles/Server/ServerSettings.ini)
You need to Put it in
pawn Code:
public OnGameModeInit();
Note: As it's Controlling the Game Mode Text Delete the function
pawn Code:
SetGameModeText
Note!!!: Make Sure You got the 'ServerSettings.ini' in your scriptfiles/Server Directory Or the samp-server.exe will crash.
Note!!!: Make Sure You agree'd my License ( Go to the file SCS.inc, Search for 'new Agree = 0' and change it to 'new Agree = 1') Or the samp-server.exe will crash.
----------------------------------------------------------------------------------
pawn Code:
GetServerSourceValue(Source[]);
This command Will get the Saved Source of the Dini
Example:
pawn Code:
public OnPlayerConnect(playerid)
{
    new String[128];
    format(String, sizeof(String), "Welcome to %s", GetServerSourceValue("HostName"));
    SendClientMessage(playerid, White, String);
    return 1;
}
The Source 'HostName' Will get the Server Name from the Dini File.
There are 3 Sources That you can use in GetServerSourceValue:
pawn Code:
/* 1.*/ "HostName" // The Server Name Source
/* 2.*/ "Map" // The Server Map Name Source
/* 3.*/ "Mode" // The Server Mode name Source
-----------------------------------------------------------------------
pawn Code:
ChangeServerSetting(Source[], Setting[]);
That Function will Change the Setting You want In their Source.
Example:
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/WeAreInLasVenturas", cmdtext, true))
    {
        ChangeServerSetting("Map", "Las Venturas");
        SendClientMessageToAll(0xFFFFFFFF, "The Server Map Name Changed to {33FF33}Las Venturas");
        return 1;
    }
    return 0;
}
After that Command, The Map Name of the server In SAMP Server Lists will Automaticly Change to Las Venturas
Becuase After That Function Being Used Automaticly It will Use the Function
pawn Code:
LoadServerSettings
And it will be changed!
----------------------------------------------------------------------------------------
I had another thing you can control but For now you cannot cantrol it from the Functins, Just from the ini File.
It's The "InteriorDoors" If it 1 It Enable 0 Is Disable, cannot be used in GetserverSourceValue and SetServerSetting.

Download
Here are Some Mirrors:
2Shared
SendSpace
Uploading


Bugs
You really Think There are bugs in my work? Im Bleeding!!!
Feel Free to PM me or Post here found Bugs

Next Version Features
More Options to Control, Maybe fix a bugs if fund and more.

Peace Out!
__________________
Infinity RolePlayStaff


Quote:
Originally Posted by Y_Less View Post
Sup 4ir-W4ys Dude?
Quote:
Originally Posted by Kalcor View Post
Sa-mp Team to 4ir-W4ys, Over.
Sup Kalcor Bro.
4ir-W4ys is offline   Reply With Quote
Old 21/08/2011, 01:43 AM   #2
4ir-W4ys
Little Clucker
 
4ir-W4ys's Avatar
 
Join Date: Aug 2011
Location: Israel :D
Posts: 39
Reputation: 0
Default Re: SCS.inc | The Most Usefull Include for Server Control

40 Views 0 Replies? It was 2 Hours of Work.
__________________
Infinity RolePlayStaff


Quote:
Originally Posted by Y_Less View Post
Sup 4ir-W4ys Dude?
Quote:
Originally Posted by Kalcor View Post
Sa-mp Team to 4ir-W4ys, Over.
Sup Kalcor Bro.
4ir-W4ys is offline   Reply With Quote
Old 21/08/2011, 02:18 AM   #3
Zh3r0
Godfather
 
Join Date: Mar 2008
Posts: 5,438
Reputation: 398
Default Re: SCS.inc | The Most Usefull Include for Server Control

Because it doesn't seem to be useful...No offense, and don't double post.
__________________
Zh3r0 is offline   Reply With Quote
Old 21/08/2011, 02:21 AM   #4
iPLEOMAX
High-roller
 
iPLEOMAX's Avatar
 
Join Date: Mar 2011
Location: AE
Posts: 1,273
Reputation: 742
Default Re: SCS.inc | The Most Usefull Include for Server Control

There is something like this already If I'm not mistaken.

GetServerVarAsString /Int /Bool And some rcon cmds.
__________________
Goodbye SA-MP.
iPLEOMAX is offline   Reply With Quote
Old 21/08/2011, 02:23 AM   #5
4ir-W4ys
Little Clucker
 
4ir-W4ys's Avatar
 
Join Date: Aug 2011
Location: Israel :D
Posts: 39
Reputation: 0
Default Re: SCS.inc | The Most Usefull Include for Server Control

wait For Version 2
__________________
Infinity RolePlayStaff


Quote:
Originally Posted by Y_Less View Post
Sup 4ir-W4ys Dude?
Quote:
Originally Posted by Kalcor View Post
Sa-mp Team to 4ir-W4ys, Over.
Sup Kalcor Bro.
4ir-W4ys is offline   Reply With Quote
Old 21/08/2011, 07:11 AM   #6
Deviant96
Big Clucker
 
Join Date: May 2011
Location: Indonesia
Posts: 51
Reputation: 2
Default Re: SCS.inc | The Most Usefull Include for Server Control

Is it no bugs?
__________________
"Even Earth tells us to learn from anything. Human race learned the basic survival on this planet. We are here for help if anyway we can. SAMP Wiki its just a guide with few instructions. You will never get the Advance Pawno Scripting with it. And You're not making your ancestors proud of yourself , Respect The Learners mate and the same goes for everyone." - Ballu Miaa
Deviant96 is offline   Reply With Quote
Old 21/08/2011, 08:38 AM   #7
Kaperstone
Banned
 
Join Date: May 2011
Location: Russia
Posts: 3,339
Reputation: 824
Default Re: SCS.inc | The Most Usefull Include for Server Control

Quote:
Originally Posted by Zh3r0 View Post
Because it doesn't seem to be useful...No offense, and don't double post.
argee with him :\

its not the most useful include for server control.
i suggest you to add some more fuctions/public's for the include,so it will be more useful
Kaperstone is offline   Reply With Quote
Old 21/08/2011, 08:50 AM   #8
4ir-W4ys
Little Clucker
 
4ir-W4ys's Avatar
 
Join Date: Aug 2011
Location: Israel :D
Posts: 39
Reputation: 0
Default Re: SCS.inc | The Most Usefull Include for Server Control

Quote:
Originally Posted by xkirill View Post
argee with him :\

its not the most useful include for server control.
i suggest you to add some more fuctions/public's for the include,so it will be more useful
Altight, So im Working On It, wait for Version 2.
__________________
Infinity RolePlayStaff


Quote:
Originally Posted by Y_Less View Post
Sup 4ir-W4ys Dude?
Quote:
Originally Posted by Kalcor View Post
Sa-mp Team to 4ir-W4ys, Over.
Sup Kalcor Bro.
4ir-W4ys is offline   Reply With Quote
Old 21/08/2011, 09:01 AM   #9
Kaperstone
Banned
 
Join Date: May 2011
Location: Russia
Posts: 3,339
Reputation: 824
Default Re: SCS.inc | The Most Usefull Include for Server Control

Quote:
Originally Posted by 4ir-W4ys View Post
Altight, So im Working On It, wait for Version 2.
ok
waiting for v2..
Kaperstone is offline   Reply With Quote
Old 21/08/2011, 02:38 PM   #10
4ir-W4ys
Little Clucker
 
4ir-W4ys's Avatar
 
Join Date: Aug 2011
Location: Israel :D
Posts: 39
Reputation: 0
Default Re: SCS.inc | The Most Usefull Include for Server Control

Quote:
Originally Posted by xkirill View Post
argee with him :\

its not the most useful include for server control.
i suggest you to add some more fuctions/public's for the include,so it will be more useful
Quote:
Originally Posted by xkirill View Post
ok
waiting for v2..
Working On It....
__________________
Infinity RolePlayStaff


Quote:
Originally Posted by Y_Less View Post
Sup 4ir-W4ys Dude?
Quote:
Originally Posted by Kalcor View Post
Sa-mp Team to 4ir-W4ys, Over.
Sup Kalcor Bro.
4ir-W4ys 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
Control server from mirc ColdIce Help Archive 2 03/06/2011 08:44 PM
how do i control my samp server? [EDT]AmanSingh123 Server Support 2 31/03/2011 07:30 PM
Control server from IRC G*Mafia Help Archive 3 26/03/2011 06:16 PM
Server Control Panel ON/OFF qwqwqw Help Archive 0 14/05/2010 06:24 PM
Control the server? aidiewright Server Support 2 02/02/2009 09:26 AM


All times are GMT. The time now is 09:24 PM.


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