Liberty Unleashed
Off Topic
»
General Chat
»
New VC:MP Server (With Squirrel!)
Username :
Always stay logged in
Password :
Home
Help
Search
Search
Search
Close
Login
Register
Pages:
1
2
3
[
4
]
« previous
next »
Print
Author
Topic: New VC:MP Server (With Squirrel!) (Read 8770 times)
March 17, 2010, 08:19:11 am
#45
Javi
Newbie
Posts: 9
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
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
Logged
Re: New VC:MP Server (With Squirrel!)
Quote from: Javi on March 17, 2010, 08:19:11 am
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.
Quote from: MexikanoS on March 17, 2010, 12:10:57 pm
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
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
KTHXBAI
March 27, 2010, 12:09:26 pm
#49
MexikanoS
Newbie
Posts: 8
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
Logged
Re: New VC:MP Server (With Squirrel!)
Quote from: MexikanoS on March 27, 2010, 12:09:26 pm
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
Logged
Re: New VC:MP Server (With Squirrel!)
Quote from: Sephiroth on March 28, 2010, 09:24:37 pm
Quote from: MexikanoS on March 27, 2010, 12:09:26 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
), 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
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
News and Content
-----------------------------
=> Liberty Unleashed News
===> Site Content
=> Development Blog
-----------------------------
Liberty Unleashed
-----------------------------
=> Liberty Unleashed Chat
=> Suggestions
-----------------------------
Off Topic
-----------------------------
=> General Chat
=> Spam
-----------------------------
Archive
-----------------------------
=> Archived Items
Loading...