Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


  Show Posts
Pages: 1 ... 3 4 [5] 6
61  Scripting / Script Help / Re: Player and vehicle on: December 27, 2013, 03:27:40 pm
Hi Slayer. After reviewing the code you posted, I noticed a problem. When spawning the vehicle, you assigned its instance to the local variable 'pVehicle'.

Afterwards, you used the FindVehicle with its argument being a vehicle pointer already.

Try this:
Remove the line where you used FindVehicle.
Then, change the player.EnterVehicle to pVehicle instead of Fv.


Please let us know if this helps.



-------
Sorry, I am typing this on my phone at the moment so I apologize for any spelling or grammar errors.

Thanks, but doesn't work.

Sorry for double posting but I couldn't find the edit button on my phone.

Anyway, Slayer, I want to give you a helpful tip. When retrieving a player position (via Player.Pos), it already returns a Vector. You don't have to use the Vector function again (as long as the position stays the same) when calling CreateVehicle(). You can also use Player.Pos directly inside of CreateVehicle as well.

Offtopic: @VRocker, is it possible to make a mobile compatible website? I cannot use my PC right now and it would be helpful on the go.

I know... lol.

Try This >>
Code: [Select]
function onPlayerCommand( plr, cmd, arguments )
{
       if ( cmd == "v" || cmd == "veh" || cmd == "car" )
{
if ( plr.Spawned )
{
if ( arguments )
{
if ( IsNum( arguments ) )
{
local pTemp = split( arguments, " " ), ID = 90;
if ( IsNum( pTemp[ 0 ] ) ) ID = pTemp[ 0 ].tointeger();

if ( ( ID >= 90 ) && ( ID <= 150 ) )
{
local v = plr.Pos;
local pVehicle = CreateVehicle( ID, Vector( v.x, v.y, v.z ), plr.Angle );

pVehicle.OneTime = true;

                                                local vehicle = GetClosestVehicle( plr );
                                                if ( vehicle )
                                                 {
                                                    plr.Vehicle = vehicle;
                                                 }

}
}
else MessagePlayer( "Invalid arguments. Usage: /" + cmd + " < ID >", plr, 250, 0, 0 );
}
else MessagePlayer( "Invalid arguments. Usage: /" + cmd + " < ID >", plr, 250, 0, 0 );
}
else MessagePlayer( "You first need spawn.", plr, 250, 0, 0 );

return true;
}
 


    return 1;
}

And, thanks Mido_Pop, work 100%   :o
62  Liberty Unleashed / Support / Re: A problem on: December 21, 2013, 10:49:54 pm
LU Limit FPS: 30
SP Limit FPS: 30 (too, but you can break this limit disabling "Frame Limiter")

LU have the limit of FPS for avoid the bad synchronization with the server.
63  Scripting / Script Help / Re: Help :p Fucking sql i hate you :p on: December 09, 2013, 11:10:29 pm
Try FBS (Force's Beginner Scripts) is for newbies in Squirrel, but is very bugged.

-_- if is for newbies how i learn well squirrel if this server is very bugged?

Read...
64  Scripting / Script Help / Player and vehicle on: December 09, 2013, 10:50:47 pm
How I can put the player in the vehicle when I spawn the vehicle?

I tried this:

Code: [Select]
else if ( cmd == "v" || cmd == "veh" || cmd == "car" )
{
if ( plr.Spawned )
{
if ( arguments )
{
if ( IsNum( arguments ) )
{
local pTemp = split( arguments, " " ), ID = 90;
if ( IsNum( pTemp[ 0 ] ) ) ID = pTemp[ 0 ].tointeger();

if ( ( ID >= 90 ) && ( ID <= 150 ) )
{
local v = plr.Pos;
local pVehicle = CreateVehicle( ID, Vector( v.x, v.y, v.z ), plr.Angle );

pVehicle.OneTime = true;

local Fv = FindVehicle( pVehicle );
plr.Pos = Fv.Pos;
plr.EnterVehicle( DOOR_DRIVER, Fv );
}
}
else MessagePlayer( "Invalid arguments. Usage: /" + cmd + " < ID >", plr, 250, 0, 0 );
}
else MessagePlayer( "Invalid arguments. Usage: /" + cmd + " < ID >", plr, 250, 0, 0 );
}
else MessagePlayer( "You first need spawn.", plr, 250, 0, 0 );

return true;
}

But doesn't work.
65  Scripting / Script Help / Re: Help :p Fucking sql i hate you :p on: December 09, 2013, 10:38:12 pm
Try FBS (Force's Beginner Scripts) is for newbies in Squirrel, but is very bugged.
66  Scripting / Script Help / Re: [Request] GetFileList() on: November 03, 2013, 10:58:24 pm
Thank you Thijn, but the "MSVCR110D.dll" is missing. Did you compile it as debug or release?


MSVCR110D = MicroSoft Visual C++ Release 11 0D

Download: http://www.dll-files.com/msvcr110d.zip?0WKfS0YKfS

Put "MSVCR110D.dll" in your Server dir.
67  Servers / General Server Chat / Re: Help RPG on: October 19, 2013, 12:56:36 am
Hello, I would like to work on a RPG server, but not well as do some things, so I ask if anyone wanted to help me create a RPG server.


Sorry for my bad english

-_-

Quote
Why don't you make it?
We don't have all time of the world and most of the scripters are pro lazy *hides*
68  Liberty Unleashed / Liberty Unleashed Chat / Liberty Unleashed Server Browser in Spanish! Yeah on: September 18, 2013, 04:57:08 pm
Photo 1: http://i858.photobucket.com/albums/ab147/Dark605/Photo1_zps1b2fdfff.png

Photo 2: http://i858.photobucket.com/albums/ab147/Dark605/Photo2_zpsd8ebc710.png

Photo 3: http://i858.photobucket.com/albums/ab147/Dark605/Photo3_zps2f0479cc.png

Photo 4: http://i858.photobucket.com/albums/ab147/Dark605/Photo4_zps47055cdc.png
69  Off Topic / General Chat / Re: MESI: Survival, help the LU devs create a virtual reality game on: September 06, 2013, 02:50:22 pm
Voted! xD
70  Scripting / Script Help / Re: Save Pos. on: September 03, 2013, 08:13:27 pm
Thank Thijn.
And, the pos is not save?
And, how I save the weapons?

Sorry by many questions xD
71  Scripting / Script Help / Re: Save Pos. on: September 02, 2013, 05:40:06 pm
Code: [Select]
zPosition <- HashTable( "Position" );

function LoadStatHashes()
{
zPosition.Load( "Hashes/DSS/PlayerStats/Position.hsh" );
}

function SaveStatHashes()
{
zPosition.Save( "Hashes/DSS/PlayerStats/Position.hsh" );
}

function CloseStatHashes()
{
zPosition.Close();

zPosition <- null;
}

L0L
72  Scripting / Script Help / Re: Save Pos. on: September 02, 2013, 04:43:43 pm
Code: [Select]
function GetPosition( name )
{
local pos = zPosition.Get( name.tolower() );
if ( pos != null )
return pos;
}
73  Scripting / Script Help / Save Pos. on: September 02, 2013, 01:57:40 pm
What is wrong ?

Code: [Select]
function InitStatsTimer( plr )
{
local pos = plr.Pos;
local health = plr.Health;
local armour = plr.Armour;
local FormatPos = format( pos.x + "," + pos.y + "," + pos.z );
local FormatWeapon = format( plr.Weapon + "," + plr.WeaponAmmo );

SetHealth( plr.Name, health );
SetArmour( plr.Name, armour );
SetWeapon( plr.Name, FormatWeapon );
SetPosition( plr.Name, FormatPos );

SaveStatHashes();
}

function ProcessPlayerStatsLog( plr )
{
plr.Health = GetHealth( plr.Name );
plr.Armour = GetArmour( plr.Name );
plr.SetWeapon( GetWeapon( plr.Name ) );
plr.Pos = Vector( GetPosition( plr.Name ) );
if ( !plr.Spawned ) plr.Spawn();
}

Say error in

Code: [Select]
plr.Pos = Vector( GetPosition( plr.Name ) );

Lol.
74  Liberty Unleashed / Liberty Unleashed Chat / New LoadImage on: September 02, 2013, 12:56:51 pm
I created a new load image for Liberty Unleashed.



Download link: www.mediafire.com/?ixihcba31ziedcz
75  Scripting / Script Releases / Public Command with ! (VC for LU) on: June 13, 2013, 07:04:10 pm
Public Commands with ! from Vice City Multiplayer

I like VCMP and I created a script with ! for Fans of Vice city (xD)

Download:

http://adf.ly/QTU9i

Errors:

In the Console say: "ERROR WRONG NUMBER OF PARAMETERS"
And work! L0L
Pages: 1 ... 3 4 [5] 6
© Liberty Unleashed Team.