Author Topic: < Help In Gui >  (Read 1694 times)

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
< Help In Gui >
« 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" );



sasha19323

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +25/-24
    • View Profile
Re: < Help In Gui >
« Reply #1 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
« Last Edit: July 07, 2013, 09:32:53 pm by sasha19323 »

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: < Help In Gui >
« Reply #2 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



Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: < Help In Gui >
« Reply #3 on: July 12, 2013, 02:44:26 pm »
What's Up, No One Have Any Idea  >:( :o



sasha19323

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +25/-24
    • View Profile
Re: < Help In Gui >
« Reply #4 on: July 12, 2013, 04:56:43 pm »
I send you my solution on CTF Server if i will get access to my host

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: < Help In Gui >
« Reply #5 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

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: < Help In Gui >
« Reply #6 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: http://forum.liberty-unleashed.co.uk/index.php/topic,749.0.html


Thanks Man, But I Didn't Get Any Idea  ;D
« Last Edit: July 24, 2013, 11:19:40 am by Mido_Pop »



 

© Liberty Unleashed Team.