+  Liberty Unleashed
|-+  Off Topic» General Chat» New VC:MP Server (With Squirrel!)
Username : Always stay logged in
Password :
Pages: 1 2 3 [4]
  Print  
Author Topic: New VC:MP Server (With Squirrel!)  (Read 8770 times)
March 17, 2010, 08:19:11 am #45
Javi
Newbie
*
Posts: 9


View Profile
Logged
Re: New VC:MP Server (With Squirrel!)

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:
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, 08:26:57 am by Javi »

March 17, 2010, 12:10:57 pm #46
MexikanoS
Newbie
*
Posts: 8



View Profile
Logged
Re: New VC:MP Server (With Squirrel!)

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


March 17, 2010, 12:33:23 pm #47
Sephiroth
Newbie
*
Posts: 7



View Profile
Logged
Re: New VC:MP Server (With Squirrel!)

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:
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.

March 17, 2010, 12:44:16 pm #48
Javi
Newbie
*
Posts: 9


View Profile
Logged
Re: New VC:MP Server (With Squirrel!)

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 Smiley

KTHXBAI

March 27, 2010, 12:09:26 pm #49
MexikanoS
Newbie
*
Posts: 8



View Profile
Logged
Re: New VC:MP Server (With Squirrel!)

I already know, that Squirrel Makers, or VC:MP Company don't completely makes the Vehicle Angle function.


March 28, 2010, 09:24:37 pm #50
Sephiroth
Newbie
*
Posts: 7



View Profile
Logged
Re: New VC:MP Server (With Squirrel!)

I already know, that Squirrel Makers, or VC:MP Company don't completely makes the Vehicle Angle function.

lolwut

April 06, 2010, 02:44:52 pm #51
MexikanoS
Newbie
*
Posts: 8



View Profile
Logged
Re: New VC:MP Server (With Squirrel!)

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 Cheesy), and with squirrel it doesn't works, so squirrel company did something wrong.


April 06, 2010, 04:07:18 pm #52
Windlord
I control the winds
Tester
Newbie
****
Posts: 42


Windlord.Net


View Profile WWW
Logged
Re: New VC:MP Server (With Squirrel!)

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 06, 2010, 04:51:53 pm by Windlord »




Pages: 1 2 3 [4]
  Print  
 
Jump to:  

Edited by G60.