Heya, here i am with my first release!
It is a quite simple script, but hey atleast it's something.
What is it?
This script creates a extra file called config.ini in wich are a lot more options for you that you can change without having to touch pawno!
Download & Installation
You need to download the dini and dutils includes (credits to Dracoblue!) and put these in your pawn/includes folder.
Then you put this code at OnGameModeInit()
And then you're done!
Usage
All you have to do is run your server and you're done!
Altough you most likely want to change some things in the config, for the changes to change effect you need to restart your server.
Hope ya like it!
It is a quite simple script, but hey atleast it's something.
What is it?
This script creates a extra file called config.ini in wich are a lot more options for you that you can change without having to touch pawno!
Download & Installation
You need to download the dini and dutils includes (credits to Dracoblue!) and put these in your pawn/includes folder.
Then you put this code at OnGameModeInit()
Code Select
if(dini_Exists("config.ini"))
{
SetGameModeText(dini_Get("config.ini", "name"));
ShowPlayerMarkers(dini_Bool("config.ini", "playermarkers"));
SetWorldTime(dini_Int("config.ini", "time"));
SetGravity(dini_Int("config.ini", "gravity"));
SetGamespeed(dini_Int("config.ini", "gamespeed"));
SetWaterLevel(dini_Float("config.ini", "waterlevel"));
PerfectHandling(dini_Bool("config.ini", "perfecthandling"));
Flyingcars(dini_Bool("config.ini", "flycars"));
Taxiboostjump(dini_Bool("config.ini", "taxijump"));
}
else{
dini_Create("config.ini");
print("config.ini created");
dini_Set("config.ini", "name", "changeme");
SetGameModeText("changeme");
dini_BoolSet("config.ini", "playermarkers", 1);
ShowPlayerMarkers(1);
dini_IntSet("config.ini", "time", 12);
SetWorldTime(12);
dini_IntSet("config.ini", "gravity", 100);
SetGravity(100);
dini_IntSet("config.ini", "gamespeed", 100);
SetGamespeed(100);
dini_FloatSet("config.ini", "waterlevel", 6.0);
SetWaterLevel(6.0);
dini_BoolSet("config.ini", "perfecthandling", 0);
PerfectHandling(0);
dini_BoolSet("config.ini", "flycars", 0);
Flyingcars(0);
dini_BoolSet("config.ini", "taxijump", 0);
Taxiboostjump(0);
}
And then you're done!
Usage
All you have to do is run your server and you're done!
Altough you most likely want to change some things in the config, for the changes to change effect you need to restart your server.
Hope ya like it!