Liberty Unleashed

Scripting => Script Help => Topic started by: Mido_Pop on July 07, 2013, 10:44:59 am

Title: < Help In Gui >
Post by: Mido_Pop on July 07, 2013, 10:44:59 am
I'm Trying To make A Gui For The Score Of All Red Team And Blue Team By Hash >
> But The Hash Saves The Player Name Like This >>
Code: [Select]
Red.Inc( player.Name, 1 );
Red.Save( "Hashes/Red.hsh" );

What Should I Do To Make The Gui ?
i Tried To Make This But The Server Said Error
>>
Code: [Select]
Red.Inc( 1 );
Red.Save( "Hashes/Red.hsh" );
Title: Re: < Help In Gui >
Post by: sasha19323 on July 07, 2013, 09:30:28 pm
Write client-side function which will update your gui.
Example
Code: ("Server-side") [Select]
function IncScore(ammount)
{
    Red.Inc( player.Name, 1 );
    Red.Save( "Hashes/Red.hsh" );
    CallClientFunc(player, "*your direction here*", "Update", Red.Get( player.Name ));
}
Code: ("Client-side") [Select]
function Update(ammount)
{
    //Here you set scores
}

PS: I ain't understood your problem, but looks like that is solution of your problem
Title: Re: < Help In Gui >
Post by: Mido_Pop on July 07, 2013, 11:30:03 pm
Man I Mean Making Gui For Teams Score Not For Player Score
> Like This
< Red Team > VS < Blue Team >
        0                       0
Title: Re: < Help In Gui >
Post by: Mido_Pop on July 12, 2013, 02:44:26 pm
What's Up, No One Have Any Idea  >:( :o
Title: Re: < Help In Gui >
Post by: sasha19323 on July 12, 2013, 04:56:43 pm
I send you my solution on CTF Server if i will get access to my host
Title: Re: < Help In Gui >
Post by: Thijn on July 12, 2013, 10:20:41 pm
This script is outdated, and uses some functions that aren't available anymore (or changed).
But with some editing you should get an idea how to make your GUI.

Link: http://forum.liberty-unleashed.co.uk/index.php/topic,749.0.html (http://forum.liberty-unleashed.co.uk/index.php/topic,749.0.html)
Title: Re: < Help In Gui >
Post by: Mido_Pop on July 24, 2013, 11:11:16 am
This script is outdated, and uses some functions that aren't available anymore (or changed).
But with some editing you should get an idea how to make your GUI.

Link: [url]http://forum.liberty-unleashed.co.uk/index.php/topic,749.0.html[/url] ([url]http://forum.liberty-unleashed.co.uk/index.php/topic,749.0.html[/url])


Thanks Man, But I Didn't Get Any Idea  ;D