Author Topic: New VC:MP Server (With Squirrel!)  (Read 39478 times)

Javi

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #45 on: March 17, 2010, 03:19:11 pm »
mark, as far as I know the Hunter's and Sparrow's cannons don't fit as drive-by.

MexikanoS, I have noticed a couple of bugs in your script, and I felt free to code one for you.

Code: [Select]
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "s" )
{
WriteIniNumber( "Gotolocs.ini", text, "x", player.Pos.x );
WriteIniNumber( "Gotolocs.ini", text, "y", player.Pos.y );
WriteIniNumber( "Gotolocs.ini", text, "z", player.Pos.z );

PrivMessage( "Saved location: " + text, player );
}

else if ( cmd == "l" )
{
local x = ReadIniNumber( "Gotolocs.ini", text, "x" ),
 y = ReadIniNumber( "Gotolocs.ini", text, "y" ),
 z = ReadIniNumber( "Gotolocs.ini", text, "z" );

if ( x ) {
local pos = Vector( x, y, z );
player.Pos = pos;

PrivMessage( "Teleporting you to location: " + text, player );
}

else PrivMessage( "Location '" + text + "' does not exist.", player );
}
}

PS: I haven't tested the script, but it should work.
« Last Edit: March 17, 2010, 03:26:57 pm by Javi »

MexikanoS

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #46 on: March 17, 2010, 07:10:57 pm »
Nice that you get it from Wiki of Squirrel. Anyway it doesn't save angle, so gtfo.

Sephiroth

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #47 on: March 17, 2010, 07:33:23 pm »
mark, as far as I know the Hunter's and Sparrow's cannons don't fit as drive-by.

MexikanoS, I have noticed a couple of bugs in your script, and I felt free to code one for you.

Code: [Select]
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "s" )
{
WriteIniNumber( "Gotolocs.ini", text, "x", player.Pos.x );
WriteIniNumber( "Gotolocs.ini", text, "y", player.Pos.y );
WriteIniNumber( "Gotolocs.ini", text, "z", player.Pos.z );

PrivMessage( "Saved location: " + text, player );
}

else if ( cmd == "l" )
{
local x = ReadIniNumber( "Gotolocs.ini", text, "x" ),
  y = ReadIniNumber( "Gotolocs.ini", text, "y" ),
  z = ReadIniNumber( "Gotolocs.ini", text, "z" );

if ( x ) {
local pos = Vector( x, y, z );
player.Pos = pos;

PrivMessage( "Teleporting you to location: " + text, player );
}

else PrivMessage( "Location '" + text + "' does not exist.", player );
}
}

PS: I haven't tested the script, but it should work.

Nice that you get it from Wiki of Squirrel. Anyway it doesn't save angle, so gtfo.

quoting because rape occured.

Javi

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #48 on: March 17, 2010, 07:44:16 pm »
MexicanoS, just to let you know: I've scripted that command for you, I swear I haven't stolen it from anywhere. Also I noticed that the angle thing was kinda useless and had to take a closer look into it and I couldn't be arsed to include it, this was just a template so you could see the bugs in your past command. By the way, you are welcome :)

KTHXBAI

MexikanoS

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #49 on: March 27, 2010, 07:09:26 pm »
I already know, that Squirrel Makers, or VC:MP Company don't completely makes the Vehicle Angle function.

Sephiroth

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #50 on: March 29, 2010, 05:24:37 am »
I already know, that Squirrel Makers, or VC:MP Company don't completely makes the Vehicle Angle function.

lolwut

MexikanoS

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #51 on: April 06, 2010, 10:44:52 pm »
I already know, that Squirrel Makers, or VC:MP Company don't completely makes the Vehicle Angle function.

lolwut

Lolwut? Man, VC:MP Scripters already did angle setting (works -tested with server :D), and with squirrel it doesn't works, so squirrel company did something wrong.

Windlord

  • Guest
Re: New VC:MP Server (With Squirrel!)
« Reply #52 on: April 07, 2010, 12:07:18 am »
The vcmp devs didn't have to decipher unreadable code to create a func to fit into more unreadable code though.

There's a reason LU has vehicle angles before even releasing 0.1 and vcmp only has it now.

Remember, Juppi and VRocker are LU devs.
« Last Edit: April 07, 2010, 12:51:53 am by Windlord »

 

© Liberty Unleashed Team.