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 / Re: Save Score on: May 23, 2014, 02:49:09 am
Why this is crash my server? What is wrong?

function onScriptLoad()
{
        LoadHashes();
}
function onScriptUnload()
{
   SaveHashes();
   CloseHashes();
}
function CreateHashes()
{
   Kills<- HashTable( "Kills" );
   Deaths<- HashTable( "Deaths" );
}   
function SaveHashes()
{
        Kills.Save( "Hashes/Kills.hsh" );
        Deaths.Save( "Hashes/Deaths.hsh" );   
}
function LoadHashes()
{
        CreateHashes();
        Kills.Load( "Hashes/Kills.hsh" );
        Deaths.Load( "Hashes/Deaths.hsh" );
}
function CloseHashes()
{
   Kills.Close();
   Deaths.Close();
   Kills<- null;
   Deaths<- null;
}
function onPlayerConnect( pPlayer )
{   
        pPlayer.Score = Kills.Get( pPlayer );
}
function onPlayerKill( pKiller, pKilled, iWeapon, iBodyPart )
{
   /* Get the weapon name and the body part name, putting in an offset for its Unknown */
   local szWeapon = GetWeaponName( iWeapon ), szBodyPart = GetBodyPartName( iBodyPart );
   
   if ( szBodyPart == "Unknown" ) szBodyPart = "Body";
   
   Message( "[#0080ff]" + pKiller + " killed " + pKilled + " (" + szWeapon + ") (" + szBodyPart + ")", Colour( 255, 0, 0 ) );
   pKiller.Score += 1;
    Kills.Inc( pKiller, 1 );
    Deaths.Inc( pKilled, 1 );
}
2  Scripting / Script Help / Save Score on: May 18, 2014, 02:07:27 am
Well, I need a script to save score, but I can't make this, because I can't make a scritp for Hashes, who can help me?
3  Scripting / Script Help / Help! Gui Progress Bar on: May 06, 2014, 01:59:31 am
I need create a progress bar in my server, but how I can make this?
4  Liberty Unleashed / LU Clans / The Fortune Kings Clan on: November 23, 2013, 08:43:50 pm
Jefes

1-Dan
2-Xan
3-Berzerk
4-Xamer

Otros Miembros

1-Skelleton
2-Axel
3-Wood

Es un clan en el cual su sueƱo es tener una fortuna asi como dice el nombre del clan la fortuna puede ser de dinero en algunos servers, este clan ahora tiene varios miembros.

Pages: [1]
© Liberty Unleashed Team.