• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - goudewup

#1
ShowRoom (pawn) / Extra config options!
February 17, 2010, 06:00:43 PM
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()

         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! ;)
#2
mIRC/pawn Scripting / [Pawn] Can't move when spawned?
February 17, 2010, 02:32:51 PM
Hey all, i got some wierd problems with my server...
(i downloaded the package yesterday from vicecitymultiplayer.com, so i run the newest & pawn-using one)

When i spawn i can only move my camera and rotate, i can't walk or move forward in any way...

I think this code will do for now:


public OnPlayerSpawn(playerid,classid,teamid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}


Did i forget something?
#3
Support / When i join a server singleplayer starts?
February 14, 2010, 10:59:55 AM
Hey there,

I got a little problem, when i join a server singleplayer starts.
I have the 1.0 exe, and i installed vc-mp in "D:/Program Files/Rockstar Games/GTA Vice City/" that's where my normal VC is installed also.

I have no idea what to do now, can anyone here help me?