Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: cool5 on February 11, 2012, 11:19:07 am

Title: Need Help.
Post by: cool5 on February 11, 2012, 11:19:07 am
Hello,
         I'm totally new in scripting and I need help. I have just downloaded Windows server and I want to know how to add register, login and all other command that I need in server. How to add vehicles in server?
And most Important where to place these commands?
Title: Re: Need Help.
Post by: Innocent Heart on February 11, 2012, 11:22:43 am
Hello,
         I'm totally new in scripting and I need help. I have just downloaded Windows server and I want to know how to add register, login and all other command that I need in server. How to add vehicles in server?
And most Important where to place these commands?

Does u Are Using Gups Script ???
Title: Re: Need Help.
Post by: MaDKiLLeR on February 11, 2012, 11:58:02 am
I'll suggest you start scripting in squirrel:

Squirrel Scripting Forum:

http://vcmp.liberty-unleashed.co.uk/forum/


Wiki:

http://liberty-unleashed.co.uk/VCWiki/Scripting/squirrel
Title: Re: Need Help.
Post by: Fuzzy168 on February 11, 2012, 05:25:36 pm
Hello,
         I'm totally new in scripting and I need help. I have just downloaded Windows server and I want to know how to add register, login and all other command that I need in server. How to add vehicles in server?
And most Important where to place these commands?

Does u Are Using Gups Script ???
Don't listen to him!!! cool5, because your new to scripting, try studying script first.. It will give you a hint on making greater one's.. Register, Login and anything that has something to do with Accounts or Files should be ignored first because they are for advanced...

I'll suggest you start scripting in squirrel:

Mad, I really don't think that squirrel are for beginners.. Learning Pawn first have give them an extra boost when it comes to Squirrel...
Title: Re: Need Help.
Post by: cool5 on February 11, 2012, 06:11:10 pm
Where can I study it?
Title: Re: Need Help.
Post by: Fuzzy168 on February 11, 2012, 06:24:29 pm
http://forum.vicecitymultiplayer.com/index.php?board=29.0 (http://forum.vicecitymultiplayer.com/index.php?board=29.0)
Title: Re: Need Help.
Post by: Innocent Heart on February 11, 2012, 06:31:50 pm
This Topic will Also Help u Cool http://forum.vicecitymultiplayer.com/index.php?topic=2708.0 !
Title: Re: Need Help.
Post by: yazeen on February 13, 2012, 05:48:44 pm
Just because you are an Indian and your my friend i will give you a Step by Step instructions:

You can script your server in both ways:
1.Pawn server - PAWN is a scripting language created for VC:MP by VC:MP authors. You can compile your scripts using the software called Pawno. It will show you the errors and warning in your script if there is any.
2.Squirrel server- Squirrel server was created by the Liberty Unleashed team. Actually the remake of 0.3z PAWN server. It got more functions than in PAWN.

Alright. I recommend you use Pawn for a start so:

1.Download Pawn package (http://www.vicecitymultiplayer.com/downloads/03z_r2/server0.3zr2(pawn)(win)(updated2).zip)
2.Install it to a folder
3.Open up Server.CFG and set the server configurations
4.Start vcmp-svr.exe

Note: Make sure you have port forwarded if you want your server to be in the list. :P
Note: click here (http://www.wikihow.com/Create-a-Server-on-Vice-City-Multi-Player) to view a WIKIHOW guide on how to create a pawn server that i have written some months ago.

In order to edit or write your own Game modes you will need to download Pawno (http://solidfiles.com/d/01fe/). Download GUPS (General used pawn scripts) from scripts showroom and try editing it. once your done press F5 and your scripts will compile and paste the YOUGAMEMODENAME.pwn and YOUGAMEMODENAME.amx files in your gamemodes folder and then in the Server.CFG file
[pawn]gamemode0 YOUGAMEMODENAME 1[/pawn] and save it
Then open up your server and check the scripts. Once you have enough knowledge in pawn switch to squirrel. You got no compile on this level :P . But squirrel is awesome and got more functions than pawn.


I hope that helps, [FS]Rocky
Title: Re: Need Help.
Post by: cool5 on February 16, 2012, 11:19:25 am
Quote
   new ReasonText[ 32 ], szMsg[ 128 ];
      switch

      case 0: ReasonText = "Timeout";
      case 1: ReasonText = "Quit";
      case 2: ReasonText = "Kick/Ban";
   }
   format( szMsg, 128, "** [%d] %s has left the server. (%s)", playerid, gPlayers[ playerid ], ReasonText );
   print( szMsg );
   
   return 1;
}

Error : error 001: expected token: "(", but found "case"
Title: Re: Need Help.
Post by: yazeen on February 16, 2012, 12:10:04 pm
[pawn]    new ReasonText[ 32 ], szMsg[ 128 ];
     switch(ReasonText)
      {
      case 0: ReasonText = "Timeout";
      case 1: ReasonText = "Quit";
      case 2: ReasonText = "Kick/Ban";
   }
   format( szMsg, 128, "** [%d] %s has left the server. (%s)", playerid, gPlayers[ playerid ], ReasonText );
   print( szMsg );
   
   return 1;
}
[/pawn]
Title: Re: Need Help.
Post by: Fuzzy168 on February 17, 2012, 04:38:46 am
This should be at the mIRC/pawn Scripting (http://forum.vicecitymultiplayer.com/index.php?board=8.0) board.
Title: Re: Need Help.
Post by: manas on February 17, 2012, 03:24:36 pm
its just boring i thought the same and downloaded all and i got bored in seconds uninstalled it right away,but either way if you think to be it interesting but it isn't you will be more or less end up being a well known scripter.

But if you ask me i would say try to learn squirell cause pawn servers aren't stable and from what i have seen is that they have more crashes.Squirell in other side has many functions than the pawno and if you ask any decent scripter in vcmp i'm sure that they would say squirell.
Title: Re: Need Help.
Post by: Sephiroth on February 17, 2012, 05:26:25 pm
Between the two servers, Squirrel does have more functions than pawn at the moment, yes.

but just to be clear; pawn doesn't have "more crashes" just because of the language. If you utilize pawn correctly it can be a very powerful and reliable asset to your server.
Title: Re: Need Help.
Post by: yazeen on February 17, 2012, 05:44:23 pm
But if you ask me i would say try to learn squirrel cause pawn servers aren't stable and from what i have seen is that they have more crashes.Squirrel in other side has many functions than the pawn and if you ask any decent scripter in vcmp i'm sure that they would say squirrel.
I totally agree with you Manas but it is recommended to use pawn for a start since newbies can't figure out the errors/warnings in the script if they start scripting in squirrel.  most of the decent sripters use squirrel because they have gained enough experience in pawn.  Once everyone have enough experience in pawn, they switch to squirrel, thats why i recommend the same to you...
Title: Re: Need Help.
Post by: Ankur on February 18, 2012, 07:46:41 am
these will help you tu understand pawn language too http://www.compuphase.com/pawn/pawn.htm