Vice City Multiplayer

VC:MP => Support => Tutorials => Topic started by: thijn on February 25, 2010, 08:48:32 PM

Title: Setting up a R2 Server made with Pawn
Post by: thijn on February 25, 2010, 08:48:32 PM
As i've helped alot of people on the scripting section here at the forums,
I though I would make a tutorial where i could link to when I get basic question like even starting it, config, cars, skins and such things.

The tutorial is 16 pages long (with 1 small credits page) so, Please take your time.

Tutorial can be found here (http://thijn41.eu/Tutorial%20-%20Making%20a%20pawn%20R2%20Server.pdf)

It would be the best if there were no mirrors, as i will update it once there is something missing // mistakes were made.

Also, Please report any mistakes or things you would like to be added.

Hope you learn something with it ;)

- Thijn
Title: Re: Setting up a R2 Server made with Pawn
Post by: Mitchel on February 25, 2010, 09:49:49 PM
nice tutorial, will be very useful for new users.

I found one mistake:

You wrote:

So our final /hello command will be:
if(strcmp("/hoi", cmdtext, true) == 0)


I think 'hoi' has to be replaced with 'hello' :D
Title: Re: Setting up a R2 Server made with Pawn
Post by: Aaron on February 25, 2010, 10:25:21 PM
nice one thijn
Title: Re: Setting up a R2 Server made with Pawn
Post by: thijn on February 25, 2010, 10:30:42 PM
Quote from: Mitchel on February 25, 2010, 09:49:49 PM
nice tutorial, will be very useful for new users.

I found one mistake:

You wrote:

So our final /hello command will be:
if(strcmp("/hoi", cmdtext, true) == 0)


I think 'hoi' has to be replaced with 'hello' :D
hehe ye indeed, I've replaced it ;) Download is in the same place.
Title: Re: Setting up a R2 Server made with Pawn
Post by: Ettans on February 26, 2010, 09:53:00 AM
By the way, I noticed you have #define COLOR_RED 0xFF0000AA; in the tutorial, you don't need to end defines with a semi-colon. Other than that, nice job, must have taken a lot of time.  ;)
Title: Re: Setting up a R2 Server made with Pawn
Post by: [AoD]NC on February 26, 2010, 02:09:17 PM
Thijn great <3

But anyway i will use it, when a new server patch will be released.

Btw: VC-MP car limit is 254?
Title: Re: Setting up a R2 Server made with Pawn
Post by: Ettans on February 26, 2010, 03:26:58 PM
Seems so, although it's not recommended to have over 180.
Title: Re: Setting up a R2 Server made with Pawn
Post by: thijn on February 26, 2010, 04:23:34 PM
Quote from: Ettans on February 26, 2010, 09:53:00 AM
By the way, I noticed you have #define COLOR_RED 0xFF0000AA; in the tutorial, you don't need to end defines with a semi-colon. Other than that, nice job, must have taken a lot of time.  ;)
Thanks for noticing that, I fixed it.

Quote from: [AoD]NC on February 26, 2010, 02:09:17 PM
Btw: VC-MP car limit is 254?
Its defined in the include script, But indeed its the MAX so over 180 will be unstable too.
Title: Re: Setting up a R2 Server made with Pawn
Post by: [AoD]NC on March 06, 2010, 10:29:48 PM
Em...

"When you type a command /hello"

I thought its not possible to do / commands ;o
Title: Re: Setting up a R2 Server made with Pawn
Post by: maxorator on March 07, 2010, 04:50:49 PM
Quote from: thijn on February 26, 2010, 04:23:34 PM
Its defined in the include script, But indeed its the MAX so over 180 will be unstable too.
Not sure why the include gives that amount, but the real maximum is 200.
Title: Re: Setting up a R2 Server made with Pawn
Post by: thijn on March 07, 2010, 09:21:04 PM
Quote from: maxorator on March 07, 2010, 04:50:49 PM
Quote from: thijn on February 26, 2010, 04:23:34 PM
Its defined in the include script, But indeed its the MAX so over 180 will be unstable too.
Not sure why the include gives that amount, but the real maximum is 200.
Ah okies, Thanks for the info. Will edit it in my tut.

EDIT: Changed it in the tutorial, also changed the /hello typo. Download is at the same location again.
Title: Re: Setting up a R2 Server made with Pawn
Post by: BCKLUP on March 14, 2010, 10:09:06 AM
Could it really work as a command with a "/" prefix instead of a "/c" or "!"?
btw, Good job but next time tell them something difficult like "strtok" commands(commands with parameters like "/c ban <playerid>")
Title: Re: Setting up a R2 Server made with Pawn
Post by: thijn on March 14, 2010, 11:43:53 AM
Quote from: BCKLUP on March 14, 2010, 10:09:06 AM
Could it really work as a command with a "/" prefix instead of a "/c" or "!"?
Nope, Thats not possible it was a typo