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]
1  Scripting / Script Help / Timer with seconds and minutes on: December 21, 2015, 06:22:32 pm
 :o I want to create timers like 'you have 50 seconds to return to vehicle' and a way to make it stop when i want, can some one help me to do it?  ::)?
2  Scripting / Script Releases / LUBS - My lu basic scripts + downlaod on: December 21, 2015, 06:18:31 pm
 8) Hi guys i'm leaving for all users to download my LUBS basic account script for your server!  ::)
hope you liiiiiiiiiiiiiiike  ;)

LUBS Alpha version!: http://www.mediafire.com/download/gy2e0jhdt5x65kb/LUBS.nut
3  Scripting / Script Help / Help me with Sprite on: December 21, 2015, 12:06:33 am
 ::) i have my own server logo and i want to add it to the server, so i tried this and didn't worked  :P

g_vlogoPos <- VectorScreen( 10, ScreenHeight - 60 );
g_logo <- GUISprite( "logo.png",  ::g_vlogoPos );
 
function onClientSpawn( pClass )
{
 
   g_logo.Visible = true;
   return 1;
}

i created an client file called: spriteclient.nut, and added these script in to then.
don't worked  :o

Please if someone can give me a full information to do this correctly i aprecciate, and sorry for my crap ensglish  8)
4  Scripting / Script Help / command in sphere on: August 22, 2015, 09:24:54 pm
I want to do a ammu-natium script, but I do not know how to make the buy command a gun works only if you are in a sphere with a specific id, please if anyone can tell me how I do it I appreciate
 ;D
5  Scripting / Script Help / how to save pos? on: August 13, 2015, 04:53:58 pm
i want to save the players pos wen the player move and reconnect to te server
 
    what is wrong?

//////////////////////////////////////////////////////////////////////////////////////////
   function onScriptLoad()
{
   LoadHashes();
}
function onScriptUnload()
{
   SaveHashes();
   CloseHashes();
}
function CreateHashes()
{
    Pos<- HashTable( "Pos" );
}
function SaveHashes()
{
   Pos.Save( "Accounts/Stats/Pos.hsh" );
}
function LoadHashes()
{
   CreateHashes();
   Pos.Load( "Accounts/Stats/Pos.hsh" );
}
function CloseHashes()
{
   Pos.Close();
   Pos<- null;
}

g_Positions <- array( GetMaxPlayers(), null ); // Storage for old positions
 
function HasPlayerMoved( v1, v2 )
{
     return ( ( fabs( v1.x - v2.x ) > 0.1 ) || ( fabs( v1.y - v2.y ) > 0.1 ) || ( fabs( v1.z - v2.z ) > 0.1 ) );
}
 
function onPlayerUpdate( player )
{
     local id = player.ID;
     
     // Grab the current and old positions and store values for future reference
     local oldpos = g_Positions[ id ];
     local newpos = player.Pos;     
 
     g_Positions[ id ] = newpos;
     
     // Do we have stored info about the previous position yet?
     if ( !oldpos ) return 1;
     
     if ( HasPlayerMoved( oldpos, newpos ) )
     {
          // Player has moved, trigger the event
          onPlayerMove( player, oldpos, newpos );
     }
 
     return 1;
}
function onPlayerMove( player, oldpos, newpos )
{
    local pos = pos.x, pos.y, pos.z;   

     Pos.Add( player.Name , pos );
     Pos.Save( "Accounts/Stats/Pos.hsh" );

   return 1;
}
function onPlayerSpawn( player, spawn )
{
    Pos.Load( "Accounts/Stats/Pos.hsh" );   
    local newpos = Pos.Get( player.Name );
    player.Pos = newpos;

   return 1;
}
//////////////////////////
if someone can help me I appreciate  :D!
Pages: [1]
© Liberty Unleashed Team.